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

@ -118,7 +118,7 @@ int main(int argc, char *argv[])
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
if (correctPhi && !divU.valid())
{

View File

@ -128,7 +128,7 @@ int main(int argc, char *argv[])
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
if
(

View File

@ -100,7 +100,7 @@ int main(int argc, char *argv[])
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
// Move the mesh
mesh.move();

View File

@ -152,7 +152,11 @@ int main(int argc, char *argv[])
}
else
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if
(
pimple.firstPimpleIter()
|| pimple.moveMeshOuterCorrectors()
)
{
if (correctPhi && !divU.valid())
{

View File

@ -87,7 +87,7 @@ int main(int argc, char *argv[])
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();

View File

@ -111,7 +111,7 @@ int main(int argc, char *argv[])
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
// Move the mesh
mesh.move();