Moved constructor from dictionary

This commit is contained in:
Hrvoje Jasak 2012-08-11 18:38:38 +01:00
parent 842fb27fef
commit 2cda84cf2a

View file

@ -129,6 +129,23 @@ nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
} }
nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
const dictionary& dict
)
:
fixedValueFvPatchScalarField(p, iF, dict),
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
E_(dict.lookupOrDefault<scalar>("E", 9.8)),
yPlusLam_(calcYPlusLam(kappa_, E_))
{
checkType();
}
nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
( (
const nutWallFunctionFvPatchScalarField& ptf, const nutWallFunctionFvPatchScalarField& ptf,
@ -147,23 +164,6 @@ nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
} }
nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
const dictionary& dict
)
:
fixedValueFvPatchScalarField(p, iF, dict),
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
E_(dict.lookupOrDefault<scalar>("E", 9.8)),
yPlusLam_(calcYPlusLam(kappa_, E_))
{
checkType();
}
nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
( (
const nutWallFunctionFvPatchScalarField& wfpsf const nutWallFunctionFvPatchScalarField& wfpsf