fvMeshTopoChangers::meshToMesh: Added support for changes in decomposition between meshes

If the sequence of meshes are decomposed independently the number, order and
potentially type of processor patches is likely to change.  Thus the processor
patches and patch fields must be replaced with those of the new mesh.
This commit is contained in:
Henry Weller
2022-07-10 16:06:17 +01:00
parent c70a7b83d6
commit f0e693176d
165 changed files with 1948 additions and 233 deletions

View File

@ -169,6 +169,21 @@ void Foam::CLASS::rmap
}
template<class Type>
void Foam::CLASS::reset
(
const FVPATCHF& ptf
)
{
PARENT::reset(ptf);
const CLASS& tiptf =
refCast<const CLASS>(ptf);
fieldData_.reset(tiptf.fieldData_);
}
template<class Type>
void Foam::CLASS::updateCoeffs()
{

View File

@ -199,6 +199,10 @@ public:
// Used to reconstruct fields
virtual void rmap(const FVPATCHF&, const labelList&);
//- Reset the fvPatchField to the given fvPatchField
// Used for mesh to mesh mapping
virtual void reset(const FVPATCHF&);
// Evaluation functions