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

Ensure UDF runs only once a time step

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By PranjalNewton

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2015, 07:04
Default Ensure UDF runs only once a time step
  #1
Member
 
PranjalNewton's Avatar
 
Pranjal Singh
Join Date: Sep 2015
Posts: 34
Rep Power: 11
PranjalNewton is on a distinguished road
Hi there!

How do I ensure that a part of the UDF executes only once (at the beginning of) a time step and not at every time?

The UDF I've written is for unsteady pressure. Since it includes saving current time data to a UDM, how do I ensure this doesn't happen every iteration within the time step?

I'm using the UDM so that I can get (P_current-P_old).
PranjalNewton is offline   Reply With Quote

Old   October 18, 2015, 07:06
Default
  #2
Member
 
PranjalNewton's Avatar
 
Pranjal Singh
Join Date: Sep 2015
Posts: 34
Rep Power: 11
PranjalNewton is on a distinguished road
Got it! have to use 'first_iteration' or EXECUTE_AT_END.
pakk likes this.
PranjalNewton is offline   Reply With Quote

Reply

Tags
execution control, udf and programming, udm


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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 05:35
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 18:07.