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

Problem with a compiled ADJUST

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 648
Rep Power: 20
dmoroian is on a distinguished road
What error do you get?
dmoroian is offline   Reply With Quote

Reply


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 Off
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 03:32
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 11: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 20:13
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 10:57


All times are GMT -4. The time now is 17:49.