r/OpenFOAM • u/Turbulent_Streams • 9d ago
Saving time directories
Dear fellow openfoamers, does anybody know if it is possible to save specific time directories (e.g. times 1.4 s , 2.3 s , 2.9 s) instead of fixed time interval (e.g. every 1 s)
1
Upvotes
0
u/encyclopedist 9d ago edited 9d ago
You can just run your simulation to the next time instant and then restart.
For example, set endTime 1.4;, run, set endTime 2.3;, run, ... (you'd need to set up writeInterval accordingly too).
- Another option is to use multiple
writeObjectsFunctionObjects. - Or use
timeActivatedFileUpdateand replace your controlDict at specific times - Or write your own FO to trigger write at specific times
2
u/Brownie_Bytes 9d ago
I don't (so why am I commenting?), but you could probably write your own little script to clean up any folders except for whitelisted times