41 fluctuationScale_(Zero),
42 referenceField_(
p.size()),
58 fluctuationScale_(
dict.get<Type>(
"fluctuationScale")),
59 referenceField_(
"referenceField",
dict,
p.size()),
60 alpha_(
dict.getOrDefault<scalar>(
"alpha", 0.1)),
88 fluctuationScale_(ptf.fluctuationScale_),
89 referenceField_(ptf.referenceField_, mapper),
102 ranGen_(ptf.ranGen_),
103 fluctuationScale_(ptf.fluctuationScale_),
104 referenceField_(ptf.referenceField_),
118 ranGen_(ptf.ranGen_),
119 fluctuationScale_(ptf.fluctuationScale_),
120 referenceField_(ptf.referenceField_),
135 referenceField_.autoMap(m);
149 refCast<const turbulentInletFvPatchField<Type>>(ptf);
151 referenceField_.
rmap(tiptf.referenceField_, addr);
163 if (curTimeIndex_ != this->db().time().
timeIndex())
171 ranGen_.randomise01<Type>(randomField[facei]);
176 scalar rmsCorr =
sqrt(12*(2*alpha_ -
sqr(alpha_)))/alpha_;
179 (1 - alpha_)*patchField
187 )*
mag(referenceField_)
190 curTimeIndex_ = this->db().time().timeIndex();
204 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
This boundary condition produces spatiotemporal-variant field by summing a set of pseudo-random numbe...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
OBJstream os(runTime.globalPath()/outputName)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
#define forAll(list, i)
Loop across all elements in list.