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

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -122,6 +122,20 @@ void Foam::alphaFixedPressureFvPatchScalarField::rmap
}
void Foam::alphaFixedPressureFvPatchScalarField::reset
(
const fvPatchScalarField& ptf
)
{
fixedValueFvPatchScalarField::reset(ptf);
const alphaFixedPressureFvPatchScalarField& tiptf =
refCast<const alphaFixedPressureFvPatchScalarField>(ptf);
p_.reset(tiptf.p_);
}
void Foam::alphaFixedPressureFvPatchScalarField::updateCoeffs()
{
if (updated())

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -142,6 +142,10 @@ public:
// Used to reconstruct fields
virtual void rmap(const fvPatchScalarField&, const labelList&);
//- Reset the fvPatchField to the given fvPatchField
// Used for mesh to mesh mapping
virtual void reset(const fvPatchScalarField&);
// Evaluation functions