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:
@ -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),
|
||||
|
||||
@ -87,7 +87,7 @@ public:
|
||||
const hydrostaticDisplacementFvPatchVectorField&,
|
||||
const fvPatch&,
|
||||
const DimensionedField<vector, volMesh>&,
|
||||
const fvPatchFieldMapper&
|
||||
const fieldMapper&
|
||||
);
|
||||
|
||||
//- Disallow copy without setting internal field reference
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user