|
[Sponsors] |
June 5, 2013, 02:37 |
help
|
#1 |
New Member
mohamed salim
Join Date: Jun 2013
Posts: 2
Rep Power: 0 |
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 |
|
June 5, 2013, 14:07 |
|
#2 |
New Member
Join Date: Mar 2013
Posts: 3
Rep Power: 13 |
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.
|
|
June 5, 2013, 22:21 |
|
#3 |
New Member
mohamed salim
Join Date: Jun 2013
Posts: 2
Rep Power: 0 |
thanks for your replay but i can not find the error in code and the case is 2d
can you find it thanks again |
|
|
|