47 inletOutletFvPatchScalarField(p, iF),
51 this->refValue() = 0.0;
52 this->refGrad() = 0.0;
53 this->valueFraction() = 0.0;
66 inletOutletFvPatchScalarField(ptf, p, iF, mapper),
67 mixingLength_(ptf.mixingLength_),
80 inletOutletFvPatchScalarField(p, iF),
88 this->refValue() = 0.0;
89 this->refGrad() = 0.0;
90 this->valueFraction() = 0.0;
100 inletOutletFvPatchScalarField(ptf),
101 mixingLength_(ptf.mixingLength_),
113 inletOutletFvPatchScalarField(ptf, iF),
114 mixingLength_(ptf.mixingLength_),
141 const scalar Cmu75 =
pow(Cmu, 0.75);
149 this->refValue() = Cmu75*kp*
sqrt(kp)/mixingLength_;
150 this->valueFraction() = 1.0 -
pos(phip);
152 inletOutletFvPatchScalarField::updateCoeffs();
166 writeEntry(
"value", os);
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual void operator=(const UList< Type > &)
This boundary condition provides a turbulence dissipation, (epsilon) inlet condition based on a spec...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const char *const group
Group name for atomic constants.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
turbulentMixingLengthDissipationRateInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Macros for easy insertion into run-time selection tables.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
rDeltaT dimensionedInternalField()
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word propertiesName
Default name of the turbulence properties dictionary.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pos(const dimensionedScalar &ds)
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual label size() const
Return size.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.