diff --git a/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C b/src/finiteVolume/cfdTools/general/solutionControl/solutionControl/solutionControl.C index 6e686a10f58f5eea6e1942c6ba194fd12e9e8215..c5a47ca61ed3516ccd8b4054d8abe405370374d8 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 c9c7b876336e1f447024da426b8fd19b5491fa1f..19b45f724bd50e4acfb4a05183b3c6f49175496f 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 61a647e40827304bc0a07e8482bcaf24f183d40e..d2316407c07e538f0bf264293369d94c56a4a6ca 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_++;