48 inletOutletFvPatchScalarField(
p, iF),
49 mixingLength_(
dict.lookup<scalar>(
"mixingLength")),
50 kName_(
dict.lookupOrDefault<
word>(
"k",
"k"))
52 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
56 this->refValue() = 0.0;
57 this->refGrad() = 0.0;
58 this->valueFraction() = 0.0;
71 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
72 mixingLength_(ptf.mixingLength_),
84 inletOutletFvPatchScalarField(ptf, iF),
85 mixingLength_(ptf.mixingLength_),
107 const scalar Cmu25 =
pow(Cmu, 0.25);
115 this->refValue() =
sqrt(kp)/(Cmu25*mixingLength_);
116 this->valueFraction() =
neg(phip);
118 inletOutletFvPatchScalarField::updateCoeffs();
128 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...
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,.
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< 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
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)