55 this->refValue() =
Zero;
57 this->valueFraction() = 0.0;
64 const this_bctype& ptf,
70 parent_bctype(ptf,
p, iF, mapper),
72 mixingLength_(ptf.mixingLength_),
86 kName_(
dict.getOrDefault<
word>(
"k",
"k")),
93 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
97 this->refValue() =
Zero;
99 this->valueFraction() = 0.0;
106 const this_bctype& ptf,
110 parent_bctype(ptf, iF),
112 mixingLength_(ptf.mixingLength_),
132 internalField().
group()
136 Cmu_ = turbModel.coeffDict().getOrDefault<scalar>(
"Cmu", Cmu_);
138 const scalar Cmu75 =
pow(Cmu_, 0.75);
146 this->refValue() = (Cmu75/mixingLength_)*
pow(kp, 1.5);
147 this->valueFraction() =
neg(phip);
149 this->parent_bctype::updateCoeffs();
171 turbulentMixingLengthDissipationRateInletFvPatchScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void write(Ostream &) const
Write.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
constexpr const char *const group
Group name for atomic constants.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
turbulentMixingLengthDissipationRateInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)