Commit 14df9bde authored by Henry Weller's avatar Henry Weller
Browse files

fixedNormalInletOutletVelocity: Minor reorganization

parent 7b39ea3c
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -55,43 +55,43 @@ fixedNormalInletOutletVelocityFvPatchVectorField
Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
fixedNormalInletOutletVelocityFvPatchVectorField
(
const fixedNormalInletOutletVelocityFvPatchVectorField& ptf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const fvPatchFieldMapper& mapper
const dictionary& dict
)
:
directionMixedFvPatchVectorField(ptf, p, iF, mapper),
phiName_(ptf.phiName_),
fixTangentialInflow_(ptf.fixTangentialInflow_),
directionMixedFvPatchVectorField(p, iF),
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
fixTangentialInflow_(dict.lookup("fixTangentialInflow")),
normalVelocity_
(
fvPatchVectorField::New(ptf.normalVelocity(), p, iF, mapper)
fvPatchVectorField::New(p, iF, dict.subDict("normalVelocity"))
)
{}
{
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
refValue() = normalVelocity();
refGrad() = vector::zero;
valueFraction() = symmTensor::zero;
}
Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
fixedNormalInletOutletVelocityFvPatchVectorField
(
const fixedNormalInletOutletVelocityFvPatchVectorField& ptf,
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
const dictionary& dict
const fvPatchFieldMapper& mapper
)
:
directionMixedFvPatchVectorField(p, iF),
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
fixTangentialInflow_(dict.lookup("fixTangentialInflow")),
directionMixedFvPatchVectorField(ptf, p, iF, mapper),
phiName_(ptf.phiName_),
fixTangentialInflow_(ptf.fixTangentialInflow_),
normalVelocity_
(
fvPatchVectorField::New(p, iF, dict.subDict("normalVelocity"))
fvPatchVectorField::New(ptf.normalVelocity(), p, iF, mapper)
)
{
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
refValue() = normalVelocity();
refGrad() = vector::zero;
valueFraction() = symmTensor::zero;
}
{}
Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment