diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C index 6e686a10f5..c5a47ca61e 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C @@ -46,6 +46,7 @@ void Foam::solutionControl::read(const bool absTolOnly) solutionDict.lookupOrDefault("momentumPredictor", true); transonic_ = solutionDict.lookupOrDefault("transonic", false); consistent_ = solutionDict.lookupOrDefault("consistent", false); + frozenFlow_ = solutionDict.lookupOrDefault("frozenFlow", false); // Read residual information const dictionary residualDict @@ -228,6 +229,7 @@ Foam::solutionControl::solutionControl(fvMesh& mesh, const word& algorithmName) momentumPredictor_(true), transonic_(false), consistent_(false), + frozenFlow_(false), corr_(0), corrNonOrtho_(0) {} diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H index c9c7b87633..19b45f724b 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.H @@ -87,6 +87,10 @@ protected: // "consistent" approach of SIMPLEC bool consistent_; + //- Flag to indicate that the flow system of equations should not + // be evolved + bool frozenFlow_; + // Evolution @@ -199,6 +203,10 @@ public: // "consistent" approach of SIMPLEC inline bool consistent() const; + //- Flag to indicate that the flow system of equations should not + // be evolved + inline bool frozenFlow() const; + // Evolution diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlI.H b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlI.H index 61a647e408..d2316407c0 100644 --- a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlI.H +++ b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControlI.H @@ -73,6 +73,12 @@ inline bool Foam::solutionControl::consistent() const } +inline bool Foam::solutionControl::frozenFlow() const +{ + return frozenFlow_; +} + + inline bool Foam::solutionControl::correctNonOrthogonal() { corrNonOrtho_++;