mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CorrectPhi: only use the "Final" tolerance for the last non-orthogonal iteration
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -102,7 +102,11 @@ void Foam::CorrectPhi
|
||||
);
|
||||
|
||||
pcorrEqn.setReference(0, 0);
|
||||
pcorrEqn.solve();
|
||||
|
||||
pcorrEqn.solve
|
||||
(
|
||||
mesh.solver(pcorr.select(pimple.finalNonOrthogonalIter()))
|
||||
);
|
||||
|
||||
if (pimple.finalNonOrthogonalIter())
|
||||
{
|
||||
@ -174,7 +178,10 @@ void Foam::CorrectPhi
|
||||
divRhoU
|
||||
);
|
||||
|
||||
pcorrEqn.solve();
|
||||
pcorrEqn.solve
|
||||
(
|
||||
mesh.solver(pcorr.select(pimple.finalNonOrthogonalIter()))
|
||||
);
|
||||
|
||||
if (pimple.finalNonOrthogonalIter())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user