From c0f9781a61cb06c2a962323188a74babe10f0138 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 9 Feb 2016 20:09:45 +0000 Subject: [PATCH] surfaceNormalFixedValueFvPatchVectorField: Corrected mapping constructor --- ...urfaceNormalFixedValueFvPatchVectorField.C | 34 +++++++++---------- ...urfaceNormalFixedValueFvPatchVectorField.H | 3 +- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C index bc6cc097d..478600608 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -42,6 +42,21 @@ surfaceNormalFixedValueFvPatchVectorField {} +Foam::surfaceNormalFixedValueFvPatchVectorField:: +surfaceNormalFixedValueFvPatchVectorField +( + const fvPatch& p, + const DimensionedField& iF, + const dictionary& dict +) +: + fixedValueFvPatchVectorField(p, iF), + refValue_("refValue", dict, p.size()) +{ + fvPatchVectorField::operator=(refValue_*patch().nf()); +} + + Foam::surfaceNormalFixedValueFvPatchVectorField:: surfaceNormalFixedValueFvPatchVectorField ( @@ -56,7 +71,7 @@ surfaceNormalFixedValueFvPatchVectorField { // Note: calculate product only on ptf to avoid multiplication on // unset values in reconstructPar. - fixedValueFvPatchVectorField::operator= + fvPatchVectorField::operator= ( vectorField ( @@ -67,21 +82,6 @@ surfaceNormalFixedValueFvPatchVectorField } -Foam::surfaceNormalFixedValueFvPatchVectorField:: -surfaceNormalFixedValueFvPatchVectorField -( - const fvPatch& p, - const DimensionedField& iF, - const dictionary& dict -) -: - fixedValueFvPatchVectorField(p, iF), - refValue_("refValue", dict, p.size()) -{ - fvPatchVectorField::operator=(refValue_*patch().nf()); -} - - Foam::surfaceNormalFixedValueFvPatchVectorField:: surfaceNormalFixedValueFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H index d57dbee5b..30a7464e2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -156,7 +156,6 @@ public: } - // Member functions // Mapping functions