Skip to content
Snippets Groups Projects
Commit 88dd3a18 authored by Andrew Heather's avatar Andrew Heather Committed by Andrew Heather
Browse files

ENH: pimpleControl - added ddtCorr flag

parent 11ed7a0e
No related branches found
No related tags found
1 merge request!367AMI code enhancements
...@@ -52,6 +52,7 @@ bool Foam::pimpleControl::read() ...@@ -52,6 +52,7 @@ bool Foam::pimpleControl::read()
pimpleDict.getOrDefault("turbOnFinalIterOnly", true); pimpleDict.getOrDefault("turbOnFinalIterOnly", true);
finalOnLastPimpleIterOnly_ = finalOnLastPimpleIterOnly_ =
pimpleDict.getOrDefault("finalOnLastPimpleIterOnly", false); pimpleDict.getOrDefault("finalOnLastPimpleIterOnly", false);
ddtCorr_ = pimpleDict.getOrDefault("ddtCorr", true);
return true; return true;
} }
...@@ -155,8 +156,9 @@ Foam::pimpleControl::pimpleControl ...@@ -155,8 +156,9 @@ Foam::pimpleControl::pimpleControl
corrPISO_(0), corrPISO_(0),
SIMPLErho_(false), SIMPLErho_(false),
turbOnFinalIterOnly_(true), turbOnFinalIterOnly_(true),
converged_(false), finalOnLastPimpleIterOnly_(false),
finalOnLastPimpleIterOnly_(false) ddtCorr_(true),
converged_(false)
{ {
read(); read();
......
...@@ -85,19 +85,22 @@ protected: ...@@ -85,19 +85,22 @@ protected:
label corrPISO_; label corrPISO_;
//- Flag to indicate whether to update density in SIMPLE //- Flag to indicate whether to update density in SIMPLE
// rather than PISO mode //- rather than PISO mode
bool SIMPLErho_; bool SIMPLErho_;
//- Flag to indicate whether to only solve turbulence on final iter //- Flag to indicate whether to only solve turbulence on final iter
bool turbOnFinalIterOnly_; bool turbOnFinalIterOnly_;
//- Converged flag
bool converged_;
//- Flag to indicate wheter the final solver is used only on the //- Flag to indicate wheter the final solver is used only on the
// final pimple iter //- final pimple iter
bool finalOnLastPimpleIterOnly_; bool finalOnLastPimpleIterOnly_;
//- Flag to indicate that ddtCorr should be applied; default = yes
bool ddtCorr_;
//- Converged flag
bool converged_;
// Protected Member Functions // Protected Member Functions
...@@ -181,6 +184,9 @@ public: ...@@ -181,6 +184,9 @@ public:
//- Return true to solve for turbulence //- Return true to solve for turbulence
inline bool turbCorr(); inline bool turbCorr();
//- Return true to apply ddtCorr
inline bool ddtCorr() const;
}; };
......
...@@ -143,4 +143,10 @@ inline bool Foam::pimpleControl::turbCorr() ...@@ -143,4 +143,10 @@ inline bool Foam::pimpleControl::turbCorr()
} }
inline bool Foam::pimpleControl::ddtCorr() const
{
return ddtCorr_;
}
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment