|
[Sponsors] |
June 18, 2015, 10:14 |
pimple corr reset
|
#1 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Hello
Pimple.loop() is a flag that is true as long the pimple loops runs. If have added additional booleans to it to improve some stuff like stopping the loop if there is no convergence. The problem now is that corr_ is not reset to zero. I have tried something like: Code:
pimple.corr() = 0; Thanks if somebody could give me a hint. Regards, Daniel |
|
June 19, 2015, 12:24 |
|
#2 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Since nobody seems to be interested on this topic, I found a solution myself, however not that elegant. I just copied the loop() object in pimpleControl.C and created a new one like this:
Code:
bool Foam::pimpleControl::resetcorr() { read(); corr_=0; return false; } I do not check if the read statement is really necessary, but at least it does not hurt. If there is a better way, please post it. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error while running modified pimple solver | R_21 | OpenFOAM Programming & Development | 0 | May 28, 2015 07:59 |
A question on the PIMPLE algorithm | GerhardHolzinger | OpenFOAM Running, Solving & CFD | 4 | February 13, 2015 07:49 |
questions about pimple !! | 1988 | OpenFOAM Pre-Processing | 4 | July 1, 2014 03:57 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
why PIMPLE doesn't converge at each time step but no diverging? | immortality | OpenFOAM Running, Solving & CFD | 7 | May 19, 2013 15:16 |