|July 5, 2012, 06:00||
Running a UDF only once per timestep
Join Date: Jun 2012
Posts: 1,098Rep Power: 19
Is there any possibility to tun a UDF (like DEFINE_SOURCE for example) only ONCE every timestep and not on every iteration?
|July 6, 2012, 04:03||
Join Date: Apr 2009
Posts: 54Rep Power: 8
if ( first_iteration )
enter your calculations here
I got this from:
Let me know how it goes.
|July 6, 2012, 07:57||
Join Date: Jan 2010
Location: United Kingdom
Posts: 27Rep Power: 7
Either what Daniel suggested or you can use the macro EXECUTE_AT_END. Depends on your need, whether you want to execute at beginning or at the end of a time-step.
DEFINE_EXECUTE_AT_END is a general-purpose macro that is executed at the end of an iteration in a steady state run, or at the end of a time step in a transient run.
|Thread||Thread Starter||Forum||Replies||Last Post|
|parse error while interpreting udf||Kristin||Fluent UDF and Scheme Programming||3||March 15, 2012 07:43|
|fluent UDF external library lapack problem||Rick||FLUENT||0||May 7, 2008 10:16|
|I need UDF help.||S.Whitney||FLUENT||0||October 15, 2007 11:29|
|UDF, UDF, UDF, UDF||Luc SEMINEL||Main CFD Forum||0||November 25, 2002 05:01|
|UDF using c_face_loop(c,t,i)||frederic||FLUENT||2||April 1, 2000 22:42|