|
[Sponsors] |
August 20, 2021, 16:04 |
table format writeInterval in controlDict?
|
#1 |
Member
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 7 |
Dear FOAMers,
Sometimes I feel the need to change the writeInterval from prior knowledge & in stead of modifying the controlDict every time, I wonder if it's possible to do like this: PHP Code:
I find two similar examples, but applicable for other objects
Anyone knows if it's possible, or how to implement? thanks. |
|
August 23, 2021, 11:31 |
|
#2 |
Member
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 7 |
Thanks to MartinB, who provided this working example of using functionObject in controlDict.
PHP Code:
Last edited by sourav90; August 26, 2021 at 13:59. |
|
August 15, 2022, 03:37 |
|
#3 |
Senior Member
M
Join Date: Dec 2017
Posts: 700
Rep Power: 12 |
Thanks for providing the solution here.
Just one question, as I am not very skilled at understanding c++: it seems from my test, that the writeInterval set here does act on the iteration number and not the physical time. How can I make sure, that output is written at fixed physical time intervals? Example: with the current setting lets say I provided writeInterval of 100. The solver dt varies between 0.0012 and 0.0018. This causes output in the physical interval of 0.12 - 0.18 s depending on the intermediate time steps. What do I have to change, that the provided writeInterval is interpreted as the physical interval? |
|
September 23, 2022, 13:34 |
|
#4 |
New Member
Join Date: Sep 2019
Posts: 17
Rep Power: 7 |
You could change "writeInterval" to "runTime" in the code above, and adjust the if statement switches as you wish.
writeControl can write based on several criteria, see below for 2112. https://www.openfoam.com/documentati...n-objects.html |
|
Tags |
dictionary, table, table data |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run time Selection Mechanism - Some help required to understand | jaswi | OpenFOAM Programming & Development | 3 | October 29, 2015 14:42 |
Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
cannot find file constant/boundaryData/outlet/points | assert | OpenFOAM Running, Solving & CFD | 1 | April 25, 2014 10:36 |
NASTRAN Data format | Srinivasan Arunajatesan | Main CFD Forum | 1 | January 2, 2014 07:20 |
Table Manipulation | furkan | Siemens | 0 | April 4, 2006 11:23 |