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