47 inletOutletFvPatchScalarField(p, iF),
51 this->refValue() = 0.0;
52 this->refGrad() = 0.0;
53 this->valueFraction() = 0.0;
65 inletOutletFvPatchScalarField(p, iF),
66 mixingLength_(dict.
lookup<scalar>(
"mixingLength")),
73 this->refValue() = 0.0;
74 this->refGrad() = 0.0;
75 this->valueFraction() = 0.0;
88 inletOutletFvPatchScalarField(ptf, p, iF, mapper),
89 mixingLength_(ptf.mixingLength_),
101 inletOutletFvPatchScalarField(ptf, iF),
102 mixingLength_(ptf.mixingLength_),
122 momentumTransportModel::typeName,
123 internalField().
group()
130 const scalar Cmu75 =
pow(Cmu, 0.75);
138 this->refValue() = Cmu75*kp*
sqrt(kp)/mixingLength_;
139 this->valueFraction() = 1.0 -
pos0(phip);
141 inletOutletFvPatchScalarField::updateCoeffs();
151 writeEntry(os,
"mixingLength", mixingLength_);
const char *const group
Group name for atomic constants.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
This boundary condition provides a turbulence dissipation, (epsilon) inlet condition based on a spec...
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
turbulentMixingLengthDissipationRateInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void write(Ostream &) const
Write.
Abstract base class for turbulence models (RAS, LES and laminar).
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.