CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF Interpretation Error (https://www.cfd-online.com/Forums/fluent/90682-udf-interpretation-error.html)

levonlarson July 18, 2011 11:57

UDF Interpretation Error
 
Hi, I am trying to impose a time-dependent boundary condition on a face with a UDF. I am using a monitor to verify that my input function is being read properly and I see that Fluent is interpreting a function other than the one that I am inputting. My UDF is as follows:

#include "udf.h"
DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, position) = (912199393440*t)*t + (1260098450)*t;
}
end_f_loop(f, thread)
}

The problem is that Fluent is reading the above function and reading back the following function with an area-weighted average monitor:
p = 2348190783*t*t + 1259645132*t

Notice that the linear term is interpreted properly but the squared term is not. I have also verified that this is not an issue with choosing to use an area-weighted average monitor instead of something else like an integral or max or whatever.

Has anyone else seen this before?
Thanks.


All times are GMT -4. The time now is 15:03.