How to write a field at time when converged?
I am working on a custom fvOption that is writing a field at normal outputTimes using
Code:
if (mesh_.time().outputTime()) |
Hi Pete,
If you have residualControls defined in the fvSolution file, simpleFoam should write and stop as soon as all of the criteria are satisfied. Is this different than what you are trying to do with the function object? Cheers! Kyle Quote:
|
Kyle,
This is indeed what I'm trying to do. What I gather is the final time is not an outputTime, so my field is not writing, but all the other OpenFOAM fields write. |
Right.
The issue is likely this: The convergence check is performed within the simple.loop() call at the beginning of the simple loop. If its satisfied, then it writes and stops. If you look at ::loop() Code:
/src/finiteVolume/lnInclude/simpleControls.C |
All times are GMT -4. The time now is 12:39. |