CorrectPhi: only use the "Final" tolerance for the last non-orthogonal iteration

This commit is contained in:
Henry Weller
2017-03-03 22:05:24 +00:00
parent 9b7a4accda
commit 093ede5d32

View File

@ -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())
{