surfaceNormalFixedValueFvPatchVectorField: Corrected mapping constructor
This commit is contained in:
parent
28006ee0a5
commit
c0f9781a61
2 changed files with 18 additions and 19 deletions
|
|
@ -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<vector, volMesh>& 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<vector, volMesh>& iF,
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF),
|
||||
refValue_("refValue", dict, p.size())
|
||||
{
|
||||
fvPatchVectorField::operator=(refValue_*patch().nf());
|
||||
}
|
||||
|
||||
|
||||
Foam::surfaceNormalFixedValueFvPatchVectorField::
|
||||
surfaceNormalFixedValueFvPatchVectorField
|
||||
(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue