|
[Sponsors] |
Write control with conditional bool in source code. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2021, 06:48 |
Write control with conditional bool in source code.
|
#1 |
New Member
Join Date: May 2016
Posts: 11
Rep Power: 10 |
hi everyone,
I defined a bool variable to store some calculation conditions. I want to store all my variable just like controlDict does (at every writeTime) whenever the bool variable changes. But I don't know how to implement it in to my code. I guess there is some member function of Time class like Time.setDeltaT(dt) to control the output, but I just can't find a correct one. Any help would be appreciated. Thank you |
|
March 8, 2021, 05:44 |
|
#2 |
New Member
Join Date: May 2016
Posts: 11
Rep Power: 10 |
Just reply to my own question if anyone have the same question and didnt go through Time.H carefully.
runTime.writeNow() declared in Time.H write immediately and solves my problem. |
|
Tags |
write control |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 04:50 |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |