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_);
|
const fvMesh& mesh = refCast<const fvMesh>(obr_);
|
||||||
|
|
||||||
dict.lookup("fields") >> fieldSet_;
|
dict.lookup("fields") >> fieldSet_;
|
||||||
patchSet_ = mesh.boundaryMesh().patchSet
|
patchSet_ =
|
||||||
(
|
mesh.boundaryMesh().patchSet(wordReList(dict.lookup("patches")));
|
||||||
wordReList(dict.lookup("patches"))
|
|
||||||
);
|
|
||||||
distance_ = readScalar(dict.lookup("distance"));
|
distance_ = readScalar(dict.lookup("distance"));
|
||||||
|
|
||||||
|
|
||||||
@ -99,7 +97,7 @@ void Foam::nearWallFields::read(const dictionary& dict)
|
|||||||
reverseFieldMap_.clear();
|
reverseFieldMap_.clear();
|
||||||
|
|
||||||
|
|
||||||
// Generate fields with selfContainedMapped bc.
|
// Generate fields with mappedField boundary condition
|
||||||
|
|
||||||
// Convert field to map
|
// Convert field to map
|
||||||
fieldMap_.resize(2*fieldSet_.size());
|
fieldMap_.resize(2*fieldSet_.size());
|
||||||
|
|||||||
@ -136,6 +136,7 @@ protected:
|
|||||||
PtrList<GeometricField<Type, fvPatchField, volMesh> >&
|
PtrList<GeometricField<Type, fvPatchField, volMesh> >&
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nearWallFields.H"
|
#include "nearWallFields.H"
|
||||||
#include "selfContainedMappedFixedValueFvPatchFields.H"
|
#include "mappedFieldFvPatchFields.H"
|
||||||
#include "interpolationCellPoint.H"
|
#include "interpolationCellPoint.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -74,7 +74,7 @@ void Foam::nearWallFields::createFields
|
|||||||
sampleFld.boundaryField().set
|
sampleFld.boundaryField().set
|
||||||
(
|
(
|
||||||
patchI,
|
patchI,
|
||||||
new selfContainedMappedFixedValueFvPatchField<Type>
|
new mappedFieldFvPatchField<Type>
|
||||||
(
|
(
|
||||||
sampleFld.mesh().boundary()[patchI],
|
sampleFld.mesh().boundary()[patchI],
|
||||||
sampleFld.dimensionedInternalField(),
|
sampleFld.dimensionedInternalField(),
|
||||||
|
|||||||
Reference in New Issue
Block a user