From 5546fe444d5480a6986725fa3bc9115f3777c98e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 3 Mar 2017 22:05:24 +0000 Subject: [PATCH] CorrectPhi: only use the "Final" tolerance for the last non-orthogonal iteration --- .../cfdTools/general/CorrectPhi/CorrectPhi.C | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C b/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C index f0fd91f4b..fa4164c1b 100644 --- a/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C +++ b/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C @@ -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()) {