Skip to content
Snippets Groups Projects
Commit 093ede5d authored by Henry Weller's avatar Henry Weller
Browse files

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

parent 9b7a4acc
Branches
Tags
No related merge requests found
......@@ -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())
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment