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

View File

@ -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

View File

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