Commit 2faf0b3d authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: solutionControl - added frozenFlow option

parent f714c9c5
......@@ -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)
{}
......
......@@ -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
......
......@@ -73,6 +73,12 @@ inline bool Foam::solutionControl::consistent() const
}
inline bool Foam::solutionControl::frozenFlow() const
{
return frozenFlow_;
}
inline bool Foam::solutionControl::correctNonOrthogonal()
{
corrNonOrtho_++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment