pimpleNoLoopControl: added moveMeshOuterCorrectors
This commit is contained in:
@ -53,19 +53,13 @@ void Foam::solvers::isothermalFluid::read()
|
||||
correctPhi = pimple.dict().lookupOrDefault
|
||||
(
|
||||
"correctPhi",
|
||||
correctPhi
|
||||
mesh.dynamic()
|
||||
);
|
||||
|
||||
checkMeshCourantNo = pimple.dict().lookupOrDefault
|
||||
(
|
||||
"checkMeshCourantNo",
|
||||
checkMeshCourantNo
|
||||
);
|
||||
|
||||
moveMeshOuterCorrectors = pimple.dict().lookupOrDefault
|
||||
(
|
||||
"moveMeshOuterCorrectors",
|
||||
moveMeshOuterCorrectors
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -84,10 +84,6 @@ protected:
|
||||
//- Switch to check the mesh Courant number after mesh change
|
||||
bool checkMeshCourantNo;
|
||||
|
||||
//- Switch to move the mesh at the start of every PIMPLE outer corrected
|
||||
// rather than the first corrector only which is the default
|
||||
bool moveMeshOuterCorrectors;
|
||||
|
||||
|
||||
// Thermophysical properties
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ void Foam::solvers::isothermalFluid::meshCourantNo() const
|
||||
|
||||
bool Foam::solvers::isothermalFluid::moveMesh()
|
||||
{
|
||||
if (pimple.firstIter() || moveMeshOuterCorrectors)
|
||||
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
|
||||
{
|
||||
// Move the mesh
|
||||
mesh.move();
|
||||
|
||||
@ -24,7 +24,6 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "isothermalFluid.H"
|
||||
#include "CorrectPhi.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user