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:
@ -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;
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user