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/)
-   -   How at add multiple udf in fluent? (http://www.cfd-online.com/Forums/fluent-udf/116102-how-add-multiple-udf-fluent.html)

Amir1 April 12, 2013 18:13

How at add multiple udf in fluent?
 
Hey guys,

I have been trying to add multiple udf in FLUENT but I couln,t do it.
Can you please help me out?

I have my xvelocity and y velocity which are functon of y. I was able to write only fir one of them.
here is my code for x velocity. I would like to have amost the same profile for y velocity.


#include "udf.h"

DEFINE_PROFILE(xvelocity,t,i)
{
face_t f;
real y;
real x[ND_ND];
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y=x[1];
F_PROFILE(f,t,i)=(0.707/0.141 )*sqrt(y-0.035);
}
end_f_loop(f,t)
}

cric92 April 14, 2013 06:00

If you are writing them separately then try to write both of the them in one file, use different names for both functions


All times are GMT -4. The time now is 04:06.