From b5392488852d3c28062cbd998f2afd0accb45281 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 29 Nov 2011 15:09:19 +0000 Subject: [PATCH] ENH: Updated nearWallFields to use mappedField --- .../functionObjects/field/nearWallFields/nearWallFields.C | 8 +++----- .../functionObjects/field/nearWallFields/nearWallFields.H | 1 + .../field/nearWallFields/nearWallFieldsTemplates.C | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C index 5f8e4a7b21..2be79c30cc 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C @@ -82,10 +82,8 @@ void Foam::nearWallFields::read(const dictionary& dict) const fvMesh& mesh = refCast(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()); diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.H b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.H index 6f9a3dd3fd..11feb11041 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.H +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.H @@ -136,6 +136,7 @@ protected: PtrList >& ) const; + public: //- Runtime type information diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C index 96d86b310f..2541b6fefc 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C @@ -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 + new mappedFieldFvPatchField ( sampleFld.mesh().boundary()[patchI], sampleFld.dimensionedInternalField(),