From aa2a54f36d2fb23ef50f3a8f45a6bf86faa863fe Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 14 Apr 2011 14:52:41 +0100 Subject: [PATCH] ENH: refactored pimpleControl class --- .../general/pimpleControl/pimpleControl.C | 65 ++------ .../general/pimpleControl/pimpleControl.H | 82 ++++----- .../general/pimpleControl/pimpleControlI.H | 38 ++++- .../general/solutionControl/solutionControl.C | 124 ++++++++++++++ .../general/solutionControl/solutionControl.H | 155 ++++++++++++++++++ .../solutionControl/solutionControlI.H | 52 ++++++ 6 files changed, 422 insertions(+), 94 deletions(-) create mode 100644 src/finiteVolume/cfdTools/general/solutionControl/solutionControl.C create mode 100644 src/finiteVolume/cfdTools/general/solutionControl/solutionControl.H create mode 100644 src/finiteVolume/cfdTools/general/solutionControl/solutionControlI.H diff --git a/src/finiteVolume/cfdTools/general/pimpleControl/pimpleControl.C b/src/finiteVolume/cfdTools/general/pimpleControl/pimpleControl.C index 77ae648eac..b5a03156ed 100644 --- a/src/finiteVolume/cfdTools/general/pimpleControl/pimpleControl.C +++ b/src/finiteVolume/cfdTools/general/pimpleControl/pimpleControl.C @@ -33,19 +33,16 @@ namespace Foam } -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // +// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // -Foam::label Foam::pimpleControl::applyToField(const word& fieldName) const +void Foam::pimpleControl::read() { - forAll(residualControl_, i) - { - if (residualControl_[i].name.match(fieldName)) - { - return i; - } - } + solutionControl::read(false); - return -1; + // Read solution controls + const dictionary& pimpleDict = dict(); + nOuterCorr_ = pimpleDict.lookupOrDefault