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

Timestep UDF not work

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2011, 13:10
Default Timestep UDF not work
  #1
New Member
 
Join Date: Apr 2011
Posts: 9
Rep Power: 15
peaker007 is on a distinguished road
Hi,all
I have met a problem in timestep UDF.The following is my UDF code.
DEFINE_DELTAT(mytimestep,d)
{
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)
time_step=0.0005;
else if(flow_time<1.175)
time_step=0.001;
else if(flow_time<5.675)
time_step=0.003;
else if(flow_time<10.675)
time_step=0.005;
else
time_step=0.01;
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

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
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 04:33.