CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF problem in 2 CPU machine (https://www.cfd-online.com/Forums/fluent/33507-udf-problem-2-cpu-machine.html)

David April 17, 2004 11:18

UDF problem in 2 CPU machine
 
This is a simple UDF used to define the inlet velocity profile. It is compliled and linked correctly both in single CPU Windows machine and SGI 8 CPU Irix workstation. But when it is used in 2 CPU Windows server, it could not linked properly after being passed the compilation. Fluent prompts could not find the path of the UDF library. Who can tell me how to solve this proplem? Thanks in andvace.

#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity,thread,index)

{

real x[ND_ND];

real z;

face_t f;

begin_f_loop(f,thread)

{

F_CENTROID(x,f,thread);

z=x[2];

F_PROFILE(f,thread,index)=0.511*log((z+0.000225)/0.000225)/0.42;

}

end_f_loop(f,thread)

}

thomas April 18, 2004 08:34

Re: UDF problem in 2 CPU machine
 
You have to build your library with your case already running in paralell. So launch your case in paralell, cmpiled and save and it will work. Thomas

David April 18, 2004 10:02

Re: UDF problem in 2 CPU machine
 
I find where the prolblem occurs. In the process of compiling UDF, it should specify the full path of the UDF library,not just the default libray name. Thank you for your reply.


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