CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF-transient temperature profile boundary condition (http://www.cfd-online.com/Forums/fluent-udf/115561-udf-transient-temperature-profile-boundary-condition.html)

ahvz April 2, 2013 10:30

UDF-transient temperature profile boundary condition
 
Hi,
how can I be sure that, if the UDF is true and work or not?

regards,


start the UDF:




/************************************************** *********************
udfexample.c
UDF for specifying transient temperature profile boundary condition
************************************************** **********************/

#include "udf.h"

DEFINE_PROFILE(Temp_Profile, thread, position)
{
face_t f;
real x[ND_ND]; /* this will hold the position vector */
real y;

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[0];
F_PROFILE(f, thread, position) = (-1e-26*x*x*x*x*x*x)+(3e-21*x*x*x*x*x)-(3e-16*x*x*x*x)+(1e-11*x*x*x)-(2e-7*x*x)+((1/1000)*x)+13;

}
end_f_loop(f,t)
}


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