50 inletOutletFvPatchScalarField(
p, iF),
55 this->refGrad() =
Zero;
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")),
83 kName_(
dict.getOrDefault<
word>(
"k",
"k"))
85 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
90 this->refGrad() =
Zero;
91 this->valueFraction() = 0.0;
100 inletOutletFvPatchScalarField(ptf),
101 mixingLength_(ptf.mixingLength_),
112 inletOutletFvPatchScalarField(ptf, iF),
113 mixingLength_(ptf.mixingLength_),
133 internalField().
group()
138 turbModel.coeffDict().getOrDefault<scalar>(
"Cmu", 0.09);
140 const scalar Cmu25 =
pow(Cmu, 0.25);
148 this->refValue() =
sqrt(kp)/(Cmu25*mixingLength_);
149 this->valueFraction() =
neg(phip);
151 inletOutletFvPatchScalarField::updateCoeffs();
161 os.writeEntry(
"mixingLength", mixingLength_);
162 os.writeEntry(
"phi", this->phiName_);
163 os.writeEntry(
"k", kName_);
173 turbulentMixingLengthFrequencyInletFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
This boundary condition provides a turbulence specific dissipation, (omega) inlet condition based on...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write.
constexpr const char *const group
Group name for atomic constants.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
turbulentMixingLengthFrequencyInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)