|
[Sponsors] |
April 28, 2011, 13:10 |
Timestep UDF not work
|
#1 |
New Member
Join Date: Apr 2011
Posts: 9
Rep Power: 15 |
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. |
|
|
|
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 |