From aa0e39703fb0a317e478e52e4322479af395f331 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 19 Aug 2014 20:27:04 +0100 Subject: [PATCH] Update of surface normal evaluation, write and mapping --- .../surfaceNormalFixedValueFvPatchVectorField.C | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C index 710852e06..67bdc5bc2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C @@ -56,11 +56,9 @@ surfaceNormalFixedValueFvPatchVectorField const fvPatchFieldMapper& mapper ) : - fixedValueFvPatchVectorField(p, iF), + fixedValueFvPatchVectorField(ptf, p, iF, mapper), refValue_(ptf.refValue_, mapper) -{ - fvPatchVectorField::operator=(refValue_*patch().nf()); -} +{} surfaceNormalFixedValueFvPatchVectorField:: @@ -71,11 +69,9 @@ surfaceNormalFixedValueFvPatchVectorField const dictionary& dict ) : - fixedValueFvPatchVectorField(p, iF), + fixedValueFvPatchVectorField(p, iF, dict), refValue_("refValue", dict, p.size()) -{ - fvPatchVectorField::operator=(refValue_*patch().nf()); -} +{} surfaceNormalFixedValueFvPatchVectorField:: @@ -142,9 +138,8 @@ void surfaceNormalFixedValueFvPatchVectorField::updateCoeffs() void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const { - fvPatchVectorField::write(os); + fixedValueFvPatchVectorField::write(os); refValue_.writeEntry("refValue", os); - writeEntry("value", os); }