CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   help (https://www.cfd-online.com/Forums/fluent-udf/118815-help.html)

mohamed salim June 5, 2013 01:37

help
 
i use fluent 13 in my simulation and use udf to define boundary condition and when i made step of compile udf and make load step fluent give an error massage which is " The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (ntx86).
The system cannot find the file specified."

my udf code is
/************************************************** ********************
Concatenated UDFs for fully-developed turbulent inlet profiles
************************************************** *********************/
#include "udf.h"
/* profile for x-velocity */
DEFINE_PROFILE(x_velocity,t,i)
{
real y,x[ND_ND];
face_t f;
begin_f_loop(f, t)
{
F_CENTROID(x,f,t);
y=x[1];
if
F_PROFILE(f,t,i)=(5/8)*log((y-.057)/.00025);
}
end_f_loop(f, t)
}

/* profile for kinetic energy */
DEFINE_PROFILE(k_profile,t,i)
{
real y,x[ND_ND];
face_t f;
begin_f_loop(f, t)
{
F_CENTROID(x,f,t);
y=x[1];

F_PROFILE(f,t,i)=.006956*pow(y,9)-0.01794*pow(y,8)+0.01984*pow(y,7)-3729*pow(y,6)+6297*pow(y,5)-4204*pow(y,4)+1408*pow(y,3)-247.4*pow(y,2)+21.14*y-.4399;
}
end_f_loop(f, t)
}
/* profile for dissipation rate */


DEFINE_PROFILE(dissip_profile,t,i)
{
real y, x[ND_ND];
face_t f;
begin_f_loop(f, t)
{
F_CENTROID(x,f, t);
y=x[1];

F_PROFILE(f,t,i)=0.0390625/y;
}
end_f_loop(f, t)
}

i want to understand the message and how to fix it

PJT June 5, 2013 13:07

I had the same problem. It was a problem in a DEFINE_PROFILE that I write wrong. I submit a calculation that was impossible... When I fixed, it begans to build and load normaly.

mohamed salim June 5, 2013 21:21

thanks for your replay but i can not find the error in code and the case is 2d
can you find it thanks again


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