48 inletOutletFvPatchScalarField(
p, iF),
49 mixingLength_(
dict.lookup<scalar>(
"mixingLength",
dimLength)),
50 kName_(
dict.lookupOrDefault<
word>(
"k",
"k")),
51 Cmu_(
dict.lookupOrDefault<scalar>(
"Cmu", 0.09))
53 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
60 this->refValue() = 0.0;
61 this->refGrad() = 0.0;
62 this->valueFraction() = 0.0;
75 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
76 mixingLength_(ptf.mixingLength_),
89 inletOutletFvPatchScalarField(ptf, iF),
90 mixingLength_(ptf.mixingLength_),
105 const scalar Cmu75 =
pow(Cmu_, 0.75);
113 this->refValue() = Cmu75*kp*
sqrt(kp)/mixingLength_;
114 this->valueFraction() =
neg(phip);
116 inletOutletFvPatchScalarField::updateCoeffs();
126 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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...
This boundary condition provides a turbulence dissipation, (epsilon) inlet condition based on a spec...
virtual void write(Ostream &) const
Write.
turbulentMixingLengthDissipationRateInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
VolField< scalar > volScalarField
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)