postProcess: Stitch non-conformal couples on first time

This has required implementation of finer control of stitching in the
fvMesh read constructor and readUpdate methods. Stitching is now
controlled independently of the mesh changers. Full-geometric stitching
is now always the default unless explicitly overridden in the calls to
fvMesh's read methods.
This commit is contained in:
Will Bainbridge
2022-07-28 15:45:21 +01:00
parent d675aabccd
commit fbd6702697
5 changed files with 61 additions and 18 deletions

View File

@ -144,7 +144,11 @@ int Foam::vtkPVFoam::setTime(int nRequest, const double requestTimes[])
if (meshPtr_)
{
if (meshPtr_->readUpdate(false) != polyMesh::UNCHANGED)
if
(
meshPtr_->readUpdate(fvMesh::stitchType::nonGeometric)
!= polyMesh::UNCHANGED
)
{
meshChanged_ = true;
}
@ -474,7 +478,8 @@ void Foam::vtkPVFoam::updateFoamMesh()
dbPtr_(),
IOobject::MUST_READ
),
false
false,
fvMesh::stitchType::nonGeometric
);
meshChanged_ = true;