CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   loading udf in parallel sytem (https://www.cfd-online.com/Forums/fluent/49991-loading-udf-parallel-sytem.html)

tahere December 6, 2008 07:03

loading udf in parallel sytem
 
hello my friends i have a problem in loading my udf. my project is dynamic mesh and i should compile my udf. in serial systems,i dont have any problem. in parallel system with 3 nodes i can build my libudf but when i want to load it,the computer hangs and i cant do anything more! i am sure that my directory is shared.

my udf is as follow:

#include "udf.h" static real v_prev; DEFINE_CG_MOTION(tnewback,dt,vel,omega,time,dtime) { Thread *t = DT_THREAD(dt); real dv;

/* reset velocities */ NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P())

return;

if ( time <= 2)

{ dv = time ;

v_prev = dv;

/* set x-component of velocity */

vel[2] =10* v_prev;}

/************************************************** **********/

if ( time > 2 && time <= 5.1)

{ v_prev =20;

/* set x-component of velocity */

vel[2] = v_prev;}

/************************************************** **********/

if ( time > 5.1 && time <= 7.1)

{ dv = -10* time + 51 ;

v_prev = dv + 20;

/* set x-component of velocity */

vel[2] = v_prev;}

if ( time > 7.1 )

{ vel[2] = 0;

} }

bohis December 6, 2008 11:41

Re: loading udf in parallel sytem
 
Hi mate!

I have completely the same problem. I can build the udf library without any problem. Despite the working directory is shared, compute nodes on different machine cannot read it. It is very confusing, because there is report in fluent console like "the working directory is not shared! " and in real, it is shared. I am trying to cope with this. If I work it out, I will put it here. I would appretiate if you do the same, thanks! good luck! jack

CDE December 7, 2008 18:37

Re: loading udf in parallel sytem
 
Have you used a netwrok path to load the udf?

eg: \\computer\fluent\udf

bohis December 8, 2008 02:59

Re: loading udf in parallel sytem
 
thanks, I will try today! Then I let you know!


bohis December 8, 2008 09:16

Re: loading udf in parallel sytem
 
CDE was right, I forgot to use full the path to my udf library. For others: if you fail to load UDF in parallel, it could be because your UDF was compiled in serial Fluent.

thanks, bye!!


tahereh December 13, 2008 01:17

Re: loading udf in parallel sytem
 
hi friends! please explain more. where should i use the network full path? while i am compiling my udf i can't find anywhere to write fullpath!



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