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/)
-   -   Parallel UDF for viscous resistance for porous media (http://www.cfd-online.com/Forums/fluent-udf/114349-parallel-udf-viscous-resistance-porous-media.html)

CfdMirco March 9, 2013 15:31

Parallel UDF for viscous resistance for porous media
 
Hello,
I'm having problem with a parallel udf for viscous resistance for porous media.
During the compiling process, when i load the udf, fluent give me this error: Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).
I do not understand what I'm doing wrong, someone can help me?
Thank you!!:)
Here is the code:
#include "udf.h"
#include "mem.h"
#include "unsteady.h"
#include "metric.h"

DEFINE_PROFILE(vres_pro10,thread,nv)
{
cell_t c;
#if !RP_HOST
real time=RP_Get_Real("flow-time");
begin_c_loop(c,thread)
{
C_PROFILE(c,thread,nv)=-(0.6632*exp(-1*((time+4-4.216)/0.3303)*((time+4-4.216)/0.3303))+2.384*exp(-1*((time+4-3.812)/0.6343)*((time+4-3.812)/0.6343))+0.02211*exp(-1*((time+4-7.055)/0.3902)*((time+4-7.055)/0.3902))+1.062*exp(-1*((time+4-6.428)/1.673)*((time+4-6.428)/1.673))+(-4.059)*exp(-1*((time+4-440)/2032)*((time+4-440)/2032))+(-0.02729)*exp(-1*((time+4-8.068)/0.01501)*((time+4-8.068)/0.01501))+0.5449*exp(-1*((time+4-8.327)/2.103)*((time+4-8.327)/2.103))+3.839*exp(-1*((time+4-12.16)/7.86)*((time+4-12.16)/7.86)))*(((3.14*(6.25*(10e-6)))/4)/(7.12*10e-5));
}
end_c_loop(f,thread)
#endif
}

vasava March 15, 2013 09:49

Can you compile your UDF for serial process?

If yes: Your UDF need modification in order to make it 'compilable' for parallel process.

If No: Your compiler is not set right.


All times are GMT -4. The time now is 23:42.