mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated nearWallFields to use mappedField
This commit is contained in:
@ -82,10 +82,8 @@ void Foam::nearWallFields::read(const dictionary& dict)
|
||||
const fvMesh& mesh = refCast<const fvMesh>(obr_);
|
||||
|
||||
dict.lookup("fields") >> fieldSet_;
|
||||
patchSet_ = mesh.boundaryMesh().patchSet
|
||||
(
|
||||
wordReList(dict.lookup("patches"))
|
||||
);
|
||||
patchSet_ =
|
||||
mesh.boundaryMesh().patchSet(wordReList(dict.lookup("patches")));
|
||||
distance_ = readScalar(dict.lookup("distance"));
|
||||
|
||||
|
||||
@ -99,7 +97,7 @@ void Foam::nearWallFields::read(const dictionary& dict)
|
||||
reverseFieldMap_.clear();
|
||||
|
||||
|
||||
// Generate fields with selfContainedMapped bc.
|
||||
// Generate fields with mappedField boundary condition
|
||||
|
||||
// Convert field to map
|
||||
fieldMap_.resize(2*fieldSet_.size());
|
||||
|
||||
@ -136,6 +136,7 @@ protected:
|
||||
PtrList<GeometricField<Type, fvPatchField, volMesh> >&
|
||||
) const;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
|
||||
@ -24,7 +24,7 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "nearWallFields.H"
|
||||
#include "selfContainedMappedFixedValueFvPatchFields.H"
|
||||
#include "mappedFieldFvPatchFields.H"
|
||||
#include "interpolationCellPoint.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -74,7 +74,7 @@ void Foam::nearWallFields::createFields
|
||||
sampleFld.boundaryField().set
|
||||
(
|
||||
patchI,
|
||||
new selfContainedMappedFixedValueFvPatchField<Type>
|
||||
new mappedFieldFvPatchField<Type>
|
||||
(
|
||||
sampleFld.mesh().boundary()[patchI],
|
||||
sampleFld.dimensionedInternalField(),
|
||||
|
||||
Reference in New Issue
Block a user