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

Problem with a compiled ADJUST

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 17, 2009, 01:57
Default Problem with a compiled ADJUST
  #1
New Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
kash is on a distinguished road
Dear all,
Using DEFINE_ADJUST, I am trying to limit the solution value of UDS(0) below a certain value. But the macro (listed below) is not adjusting the UDS as requested. Please lend me your experience on how to solve the problem

DEFINE_ADJUST(adjust1,d)
{
Thread* tc;
face_t f;
cell_t c;
Thread* tf;
real c_max=0.0;
c_max=24.00;
thread_loop_c(tc,d)
{
{
begin_c_loop(c,tc)
{
if(C_UDSI(c,tc,0) > c_max) {C_UDSI(c,tc,0)=c_max;}
}
end_c_loop(c,tc);
}
}

thread_loop_f(tf,d)
{
if (THREAD_TYPE(tf)==THREAD_F_WALL)
{
begin_f_loop(f,tf)
{
if(F_UDSI(f,tf,0)> c_max) {F_UDSI(f,tf,0)=c_max;}
}
end_f_loop(f,tf);
}
}
}
kash is offline   Reply With Quote

Old   November 25, 2009, 07:47
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
What error do you get?
dmoroian 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 02:32
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
PROBLEM WItH COMPILED UDF. Nia FLUENT 5 November 6, 2007 12:53
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 09:57


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