Residual Control and InitialResidual: How does it exactly work?
Dear all,
Could someone please clarify to me how residualControl in fvSolution works? As far as I know, residualControl helps you control the flow of the simulation based on the InitialResidual. If the initialResidual during successive corrector steps falls below the level as specified in the residualControl, then the corrector should stop, irrespective of number of corrector steps specified in nCorrectors specified. Is my interpretation correct? Regards, Hrushi |
Hi,
in each variable Code:
U Then the residualControl is working with the InitialResidual, as you said. I think this is what you were asking. |
Hi Augstin,
Thank you for the reply. I understand the tolerance and how it works. And if I understand what you are saying, then the residualControl in fvSolution specifies the control on the initialResidual. In my solver, I tried to set residualControl for pressure at 0.1. But I could see that even after such a relaxed residualControl, my simulations ran for 15 correctors that I had specified earlier. I do not understand why this is happening. Any suggestions? Regards, Hrushikesh |
Hi,
resildualControl limits number of outer correctors (nOuterCorrectors). Just take a look at pimpleFoam source: Code:
// --- Pressure-velocity PIMPLE corrector loop pimpleControl.C Code:
void Foam::pimpleControl::read() Code:
inline bool Foam::pimpleControl::correct() Code:
bool Foam::pimpleControl::loop() Code:
converged_ || criteriaSatisfied() Code:
bool Foam::pimpleControl::criteriaSatisfied() |
Hi Alexey,
Thank you very much for your response. It is pretty clear to me now. Regards, Hrushi |
Also see http://www.cfd-online.com/Forums/blo...hm-part-i.html and http://www.cfd-online.com/Forums/blo...m-part-ii.html for a good explanation.
|
All times are GMT -4. The time now is 10:28. |