43turbulentMixingLengthDissipationRateInletFvPatchScalarField::
44turbulentMixingLengthDissipationRateInletFvPatchScalarField
50 inletOutletFvPatchScalarField(
p, iF),
55 this->refValue() = 0.0;
56 this->refGrad() = 0.0;
57 this->valueFraction() = 0.0;
61turbulentMixingLengthDissipationRateInletFvPatchScalarField::
62turbulentMixingLengthDissipationRateInletFvPatchScalarField
70 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
72 mixingLength_(ptf.mixingLength_),
77turbulentMixingLengthDissipationRateInletFvPatchScalarField::
78turbulentMixingLengthDissipationRateInletFvPatchScalarField
85 inletOutletFvPatchScalarField(
p, iF),
86 kName_(
dict.getOrDefault<
word>(
"k",
"k")),
97 this->refValue() = 0.0;
98 this->refGrad() = 0.0;
99 this->valueFraction() = 0.0;
103turbulentMixingLengthDissipationRateInletFvPatchScalarField::
104turbulentMixingLengthDissipationRateInletFvPatchScalarField
109 inletOutletFvPatchScalarField(ptf),
111 mixingLength_(ptf.mixingLength_),
116turbulentMixingLengthDissipationRateInletFvPatchScalarField::
117turbulentMixingLengthDissipationRateInletFvPatchScalarField
123 inletOutletFvPatchScalarField(ptf, iF),
125 mixingLength_(ptf.mixingLength_),
145 internalField().group()
151 const scalar Cmu75 =
pow(Cmu_, 0.75);
159 this->refValue() = (Cmu75/mixingLength_)*
pow(kp, 1.5);
160 this->valueFraction() = 1.0 -
pos0(phip);
162 inletOutletFvPatchScalarField::updateCoeffs();
175 writeEntry(
"value",
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class for turbulence models (RAS, LES and laminar).
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
This boundary condition provides an inlet condition for turbulent kinetic energy dissipation rate,...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
dimensionedScalar pos0(const dimensionedScalar &ds)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)