CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF post processing (https://www.cfd-online.com/Forums/fluent-udf/83506-udf-post-processing.html)

nuengao January 1, 2011 04:31

UDF post processing
 
Dear all

I need your help about how to post the result as function of time.
If the codes are the following



DEFINE_PROFILE(velocity_magnitude, t, i)
{
real velocity;
real the_current_time;
face_t f;
the_current_time = CURRENT_TIME;
if ((the_current_time>=0) && (the_current_time<10))
{
velocity=100;
}
if ((the_current_time>=10) && (the_current_time<15))
{
velocity=20;
}
if ((the_current_time>=15))
{
velocity=10;
}

begin_f_loop(f,t)
{
F_PROFILE(f,t,i) = velocity;
}
end_f_loop(f,t)
}


If I'd like to post the result at the some time such as t=20s how can I do this pleas help me

sincerely your
nuengao

ComputerGuy January 1, 2011 13:29

Nuengao,

What do you mean by "post the result?"
Do you mean output the value of velocity at a time of exactly 20s to the screen?

ComputerGuy

nuengao January 2, 2011 01:01

Dear computerGuy
I mean how can I use CFD post at the time that I want?

such as temperature , velocity after 10 s

Vitaly January 21, 2012 16:17

You can set when to write the .dat files (kind of restricting, but I think you can also include a write .dat file in a UDF if you are using linux) . You can also assign variable monitors, if there are just some specific variables values you want to track as a function of time (or times step).

Look into: Solution -> monitors...and just play around with the different monitors you can assign.


All times are GMT -4. The time now is 00:33.