48 inletOutletFvPatchScalarField(
p, iF),
49 mixingLength_(
dict.lookup<scalar>(
"mixingLength",
dimLength)),
50 kName_(
dict.lookupOrDefault<
word>(
"k",
"k"))
52 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
59 this->refValue() = 0.0;
60 this->refGrad() = 0.0;
61 this->valueFraction() = 0.0;
74 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
75 mixingLength_(ptf.mixingLength_),
87 inletOutletFvPatchScalarField(ptf, iF),
88 mixingLength_(ptf.mixingLength_),
110 const scalar Cmu25 =
pow(Cmu, 0.25);
118 this->refValue() =
sqrt(kp)/(Cmu25*mixingLength_);
119 this->valueFraction() =
neg(phip);
121 inletOutletFvPatchScalarField::updateCoeffs();
131 writeEntry(os,
"mixingLength", mixingLength_);
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...
const dimensionSet & dimensions() const
Return dimensions.
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 any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Abstract base class for turbulence models (RAS, LES and laminar).
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
This boundary condition provides a turbulence specific dissipation, (omega) inlet condition based on...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
turbulentMixingLengthFrequencyInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
VolField< scalar > volScalarField
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)