|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Pranjal Singh
Join Date: Sep 2015
Posts: 34
Rep Power: 12 ![]() |
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). |
|
|
|
|
|
|
|
|
#2 |
|
Member
Pranjal Singh
Join Date: Sep 2015
Posts: 34
Rep Power: 12 ![]() |
Got it! have to use 'first_iteration' or EXECUTE_AT_END.
|
|
|
|
|
|
![]() |
| Tags |
| execution control, udf and programming, udm |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |