CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

help

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 5, 2013, 01:37
Default help
  #1
New Member
 
mohamed salim
Join Date: Jun 2013
Posts: 2
Rep Power: 0
mohamed salim is on a distinguished road
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
mohamed salim is offline   Reply With Quote

Old   June 5, 2013, 13:07
Default
  #2
PJT
New Member
 
Join Date: Mar 2013
Posts: 3
Rep Power: 4
PJT is on a distinguished road
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.
PJT is offline   Reply With Quote

Old   June 5, 2013, 21:21
Default
  #3
New Member
 
mohamed salim
Join Date: Jun 2013
Posts: 2
Rep Power: 0
mohamed salim is on a distinguished road
thanks for your replay but i can not find the error in code and the case is 2d
can you find it thanks again
mohamed salim is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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