CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF in Re stress model (http://www.cfd-online.com/Forums/fluent/43935-udf-re-stress-model.html)

Jihwan February 28, 2007 04:49

UDF in Re stress model
 
Hi

I wanna analyze by k-e and Re stress model also.

I used UDF for temp gradient.

But my UDF file has a problem.

That didn't work at Re stress model.

But that did work at k-e model.

What is problem. I don't know about that.

I need your help.

The UDF file is given below.

************************************************** *********

#include "udf.h"

DEFINE_PROFILE(temp_profile,t,i) {

real x [ND_ND];

real a,y;

face_t f;

begin_f_loop(f,t)

{

F_CENTROID(x,f,t);

a=x[0];

F_PROFILE(f,t,i)=322.5-(15.*a);

}

end_f_loop(f,t) }

************************************************** *********


All times are GMT -4. The time now is 21:22.