45 if (
dict.found(
"value"))
70 fluctuationScale_(ptf.fluctuationScale_),
71 referenceField_(mapper(ptf.referenceField_)),
86 fluctuationScale_(ptf.fluctuationScale_),
87 referenceField_(ptf.referenceField_),
105 refCast<const turbulentInletFvPatchField<Type>>(ptf);
107 mapper(referenceField_, tiptf.referenceField_);
120 refCast<const turbulentInletFvPatchField<Type>>(ptf);
122 referenceField_.
reset(tiptf.referenceField_);
134 if (curTimeIndex_ != this->db().time().
timeIndex())
142 randomField[facei] = ranGen_.sample01<Type>();
147 scalar rmsCorr =
sqrt(12*(2*alpha_ -
sqr(alpha_)))/alpha_;
150 (1 - alpha_)*patchField
158 )*
mag(referenceField_)
161 curTimeIndex_ = this->db().time().timeIndex();
172 writeEntry(os,
"fluctuationScale", fluctuationScale_);
173 writeEntry(os,
"referenceField", referenceField_);
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Pre-declare SubField and related Field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator==(const fvPatchField< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Traits class for primitives.
This boundary condition generates a fluctuating inlet condition by adding a random component to a ref...
virtual void write(Ostream &) const
Write.
turbulentInletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
const unitConversion unitFraction