50 inletOutletFvPatchScalarField(
p, iF),
55 this->refValue() =
Zero;
56 this->refGrad() =
Zero;
57 this->valueFraction() = 0.0;
70 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
72 mixingLength_(ptf.mixingLength_),
85 inletOutletFvPatchScalarField(
p, iF),
86 kName_(
dict.getOrDefault<
word>(
"k",
"k")),
93 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
97 this->refValue() =
Zero;
98 this->refGrad() =
Zero;
99 this->valueFraction() = 0.0;
109 inletOutletFvPatchScalarField(ptf),
111 mixingLength_(ptf.mixingLength_),
123 inletOutletFvPatchScalarField(ptf, iF),
125 mixingLength_(ptf.mixingLength_),
140 const turbulenceModel& turbModel = db().lookupObject<turbulenceModel>
145 internalField().group()
149 Cmu_ = turbModel.coeffDict().getOrDefault<scalar>(
"Cmu", Cmu_);
151 const scalar Cmu75 =
pow(Cmu_, 0.75);
159 this->refValue() = (Cmu75/mixingLength_)*
pow(kp, 1.5);
160 this->valueFraction() =
neg(phip);
162 inletOutletFvPatchScalarField::updateCoeffs();
172 os.writeEntry(
"mixingLength", mixingLength_);
173 os.writeEntry(
"phi", this->phiName_);
174 os.writeEntry(
"k", kName_);
184 turbulentMixingLengthDissipationRateInletFvPatchScalarField
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...
@ MUST_READ
Reading required.
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,...
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
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
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 write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
turbulentMixingLengthDissipationRateInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
MinMax< scalar > scalarMinMax
A scalar min/max range.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar neg(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField