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/)
-   -   Paralleling UDF for shared memory machines (http://www.cfd-online.com/Forums/fluent-udf/123717-paralleling-udf-shared-memory-machines.html)

honeychem September 19, 2013 09:35

Paralleling UDF for shared memory machines
 
Hi fellows,
I am trying to run UDF on a linux based machine with shared memory by parallel processing (16 processors).but i got the following error,

Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (lnia64).

No such file or directory
/data1/home/mehmood/fluent/3dAbid/libudf/lnia64/3ddp_host/libudf.so
Error Object: #f


Error: CAR: invalid argument [1]: wrong type [not a pair]
Error Object: ()

my UDF is as under,

#include "udf.h"

DEFINE_PROFILE(velocityinletw , thread, position)
{

float t, velocityw;
face_t f;

t = RP_Get_Real("flow-time");

velocityw = (3.14*0.01*1.4*0.496*cos(2*3.14*1.4*t));
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, position) = velocityw;
}
end_f_loop(f, thread)

}

can any one help me in sorting out this problem.
est Regards
:):):)

El Veneno September 23, 2013 21:48

Your program a UDF for paralell use, and I see your defining a profile, you can run the UDF in serial processing and then write the profile on the section your applying the UDF. Then open a new fluent case and you can read the profile instead of using the UDF. Ive done that but my profile was on stedy state and dont change. Good look.

honeychem September 24, 2013 10:05

Thanks El Veneno. I welcome your suggestion. will inform you about the progress.


All times are GMT -4. The time now is 17:28.