41 fvScalarFieldSource(iF,
dict),
42 mixingLength_(
dict.lookup<scalar>(
"mixingLength",
dimLength)),
43 kName_(
dict.lookupOrDefault<
word>(
"k",
"k")),
44 Cmu_(
dict.lookupOrDefault<scalar>(
"Cmu", 0.09))
55 fvScalarFieldSource(field, iF),
56 mixingLength_(field.mixingLength_),
80 this->value<scalar>(kName_, model, source)
83 return sqrt(ks)/(
pow(Cmu_, 0.25)*mixingLength_);
97 return sqrt(ks)/(
pow(Cmu_, 0.25)*mixingLength_);
130 writeEntry(os,
"mixingLength", mixingLength_);
131 writeEntryIfDifferent<word>(os,
"k",
"k", kName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Base class for finite volume sources.
A class for managing temporary objects.
This source condition provides a turbulence specific dissipation, (omega), based on a specified mixi...
virtual ~turbulentMixingLengthFrequencyFvScalarFieldSource()
Destructor.
virtual void write(Ostream &) const
Write.
virtual tmp< DimensionedField< scalar, volMesh > > sourceValue(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the source value.
turbulentMixingLengthFrequencyFvScalarFieldSource(const DimensionedField< scalar, volMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
virtual tmp< DimensionedField< scalar, volMesh > > internalCoeff(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the internal coefficient.
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
makeTypeFieldSource(fvScalarFieldSource, turbulentIntensityKineticEnergyFvScalarFieldSource)
const dimensionSet dimLength
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar neg0(const dimensionedScalar &ds)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)