CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Problem with a compiled ADJUST

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

LinkBack Thread Tools Display Modes
Old   November 17, 2009, 01:57
Default Problem with a compiled ADJUST
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

Thread* tc;
face_t f;
cell_t c;
Thread* tf;
real c_max=0.0;
if(C_UDSI(c,tc,0) > c_max) {C_UDSI(c,tc,0)=c_max;}

if(F_UDSI(f,tf,0)> c_max) {F_UDSI(f,tf,0)=c_max;}
kash is offline   Reply With Quote

Old   November 25, 2009, 07:47
Senior Member
dmoroian's Avatar
Join Date: Mar 2009
Posts: 649
Rep Power: 13
dmoroian is on a distinguished road
What error do you get?
dmoroian is offline   Reply With Quote


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 13:17.