Go to the documentation of this file.
50 inletOutletFvPatchScalarField(
p, iF),
54 this->refValue() = 0.0;
55 this->refGrad() = 0.0;
56 this->valueFraction() = 0.0;
68 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
69 mixingLength_(ptf.mixingLength_),
81 inletOutletFvPatchScalarField(
p, iF),
82 mixingLength_(
dict.
get<scalar>(
"mixingLength")),
89 this->refValue() = 0.0;
90 this->refGrad() = 0.0;
91 this->valueFraction() = 0.0;
100 inletOutletFvPatchScalarField(ptf),
101 mixingLength_(ptf.mixingLength_),
112 inletOutletFvPatchScalarField(ptf, iF),
113 mixingLength_(ptf.mixingLength_),
133 internalField().
group()
140 const scalar Cmu25 =
pow(Cmu, 0.25);
148 this->refValue() =
sqrt(kp)/(Cmu25*mixingLength_);
149 this->valueFraction() = 1.0 -
pos0(phip);
151 inletOutletFvPatchScalarField::updateCoeffs();
164 writeEntry(
"value", os);
virtual void write(Ostream &) const
Write.
virtual void write(Ostream &) const
Write.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
constexpr const char *const group
Group name for atomic constants.
turbulentMixingLengthFrequencyInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
static const word propertiesName
Default name of the turbulence properties dictionary.
dimensionedScalar pos0(const dimensionedScalar &ds)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
This boundary condition provides a turbulence specific dissipation, (omega) inlet condition based on...
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
virtual void operator=(const UList< scalar > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...