CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Timestep UDF not work

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2011, 13:10
Default Timestep UDF not work
New Member
Join Date: Apr 2011
Posts: 9
Rep Power: 11
peaker007 is on a distinguished road
I have met a problem in timestep UDF.The following is my UDF code.
real time_step;
real flow_time = CURRENT_TIME;

if (flow_time < 0.005)
time_step = 0.00005;
else if(flow_time < 0.025)
time_step = 0.0001;
else if(flow_time<0.175)
else if(flow_time<1.175)
else if(flow_time<5.675)
else if(flow_time<10.675)
return time_step;
After i hook my UDF to Fluent and start up the iteration,but only one time step can be run, then iteration was stopped and can not work continue.Who can help me to find out the reason.Thanks.
peaker007 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 07:43
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 13:03
udf - c++ compiler does not work Matthias FLUENT 1 January 9, 2009 01:44
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 11:55
Will the UDF work?? H.S.Fang FLUENT 0 December 27, 2001 22:21

All times are GMT -4. The time now is 16:51.