solvers: Split moveMesh from motionCorrector

This is so that stitching is complete across all regions before any FV
operations are attempted.
This commit is contained in:
Will Bainbridge
2024-01-30 08:26:43 +00:00
parent 5d008bf093
commit f1ab9882c7
21 changed files with 95 additions and 1 deletions

View File

@ -241,6 +241,9 @@ public:
//- Called at the start of the PIMPLE loop to move the mesh
virtual void moveMesh();
//- Corrections that follow mesh motion
virtual void motionCorrector();
//- Called at the start of the PIMPLE loop
virtual void prePredictor() = 0;

View File

@ -51,7 +51,14 @@ void Foam::solvers::VoFSolver::moveMesh()
// Move the mesh
mesh_.move();
}
}
void Foam::solvers::VoFSolver::motionCorrector()
{
if (pimple.firstIter() || pimple.moveMeshOuterCorrectors())
{
if (mesh.changing())
{
buoyancy.moveMesh();