fieldMapper: Simplification

The patch-specific mapper interfaces, fvPatchFieldMapper and
pointPatchFieldMapper, have been removed as they did not do anything.
Patch mapping constructors and functions now take a basic fieldMapper
reference.

An fvPatchFieldMapper.H header has been provided to aid backwards
compatability so that existing custom boundary conditions continue to
compile.
This commit is contained in:
Will Bainbridge
2023-11-10 10:20:52 +00:00
parent 02c28dda6a
commit cef86f598a
552 changed files with 1408 additions and 2530 deletions

View File

@ -50,7 +50,7 @@ hydrostaticDisplacementFvPatchVectorField
const hydrostaticDisplacementFvPatchVectorField& tdpvf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const fvPatchFieldMapper& mapper
const fieldMapper& mapper
)
:
tractionDisplacementFvPatchVectorField(tdpvf, p, iF, mapper),

View File

@ -87,7 +87,7 @@ public:
const hydrostaticDisplacementFvPatchVectorField&,
const fvPatch&,
const DimensionedField<vector, volMesh>&,
const fvPatchFieldMapper&
const fieldMapper&
);
//- Disallow copy without setting internal field reference

View File

@ -67,7 +67,7 @@ tractionDisplacementFvPatchVectorField
const tractionDisplacementFvPatchVectorField& tdpvf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const fvPatchFieldMapper& mapper
const fieldMapper& mapper
)
:
fixedGradientFvPatchVectorField(tdpvf, p, iF, mapper),
@ -94,7 +94,7 @@ tractionDisplacementFvPatchVectorField
void Foam::tractionDisplacementFvPatchVectorField::map
(
const fvPatchVectorField& ptf,
const fvPatchFieldMapper& mapper
const fieldMapper& mapper
)
{
fixedGradientFvPatchVectorField::map(ptf, mapper);

View File

@ -95,7 +95,7 @@ public:
const tractionDisplacementFvPatchVectorField&,
const fvPatch&,
const DimensionedField<vector, volMesh>&,
const fvPatchFieldMapper&
const fieldMapper&
);
//- Disallow copy without setting internal field reference
@ -142,11 +142,7 @@ public:
// Mapping functions
//- Map the given fvPatchField onto this fvPatchField
virtual void map
(
const fvPatchVectorField&,
const fvPatchFieldMapper&
);
virtual void map(const fvPatchVectorField&, const fieldMapper&);
//- Reset the fvPatchField to the given fvPatchField
// Used for mesh to mesh mapping