|
[Sponsors] |
writeTimeIndex_ (or equivalent) possibly not updated for function objects |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 11, 2021, 21:02 |
writeTimeIndex_ (or equivalent) possibly not updated for function objects
|
#1 |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7 |
Version: v2012
I was running a simulation with the setting Code:
writeControl adjustableRunTime; adjustTimeStep yes; writeInterval .001; runTimeModifiable yes; Code:
writeControl adjustableRunTime; writeInterval .001; executeControl adjustableRunTime; executeInterval .001; I was expecting another write at 0.02, but this occurred at 0.018=0.008+0.01. So I decided to take a look at the code, and surely enough, I found the following in TimeIO.C Code:
if (oldWriteInterval != writeInterval_) { switch (writeControl_) { case wcRunTime: case wcAdjustableRunTime: // Recalculate writeTimeIndex_ to be in units of current // writeInterval. writeTimeIndex_ = label ( writeTimeIndex_ * oldWriteInterval / writeInterval_ ); break; default: break; } } |
|
Tags |
functionobjects, io functions, update, writetimeindex |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run function objects on final time | b.simpson | OpenFOAM Post-Processing | 3 | September 19, 2022 21:09 |