From c2aebc2ef16ab0e6675fd90321aab4c38dcab741 Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 3 May 2015 11:51:42 +0100 Subject: [PATCH] pimpleControl: Support field relaxation when the number of PIMPLE iterations = 1 This allows PIMPLE solvers to operate in SIMPLE mode --- .../solutionControl/pimpleControl/pimpleControl.C | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C b/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C index 8329580b..fb4d9213 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C +++ b/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -226,12 +226,8 @@ bool Foam::pimpleControl::loop() if (corr_ <= nCorrPIMPLE_) { - if (nCorrPIMPLE_ != 1) - { - Info<< algorithmName_ << ": iteration " << corr_ << endl; - storePrevIterFields(); - } - + Info<< algorithmName_ << ": iteration " << corr_ << endl; + storePrevIterFields(); completed = false; } }