ENH: Updated nearWallFields to use mappedField

This commit is contained in:
andy
2011-11-29 15:09:19 +00:00
parent b78d9ee24a
commit b539248885
3 changed files with 6 additions and 7 deletions

View File

@ -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());

View File

@ -136,6 +136,7 @@ protected:
PtrList<GeometricField<Type, fvPatchField, volMesh> >&
) const;
public:
//- Runtime type information

View File

@ -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(),