pimpleNoLoopControl: added moveMeshOuterCorrectors

This commit is contained in:
Henry Weller
2022-08-07 14:54:00 +01:00
parent 4b2c27b709
commit 73ad954f78
19 changed files with 42 additions and 44 deletions

View File

@ -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
);
}

View File

@ -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

View File

@ -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();

View File

@ -24,7 +24,6 @@ License
\*---------------------------------------------------------------------------*/
#include "isothermalFluid.H"
#include "CorrectPhi.H"
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //