From dfd09a886472186848a6259101c0906bf930bb47 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 3 Jan 2018 17:04:21 +0000 Subject: [PATCH] solutionControl: Rationalized, simplified and registered to the database --- .../pimpleControl/pimpleControl.C | 25 +++-- .../pimpleControl/pimpleControl.H | 4 +- .../simpleControl/simpleControl.C | 52 ++++++++- .../simpleControl/simpleControl.H | 6 +- .../solutionControl/solutionControl.C | 104 +++++++++--------- .../solutionControl/solutionControl.H | 13 ++- 6 files changed, 129 insertions(+), 75 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C b/src/finiteVolume/cfdTools/general/solutionControl/pimpleControl/pimpleControl.C index 6d031f05b..4c2ac3f19 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-2017 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,18 +36,23 @@ namespace Foam // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // -void Foam::pimpleControl::read() +bool Foam::pimpleControl::read() { - solutionControl::read(false); + bool ok = solutionControl::read(); - const dictionary& pimpleDict = dict(); + if (ok) + { + const dictionary& pimpleDict = dict(); - solveFlow_ = pimpleDict.lookupOrDefault("solveFlow", true); - nCorrPIMPLE_ = pimpleDict.lookupOrDefault