41 fvScalarFieldSource(iF,
dict),
42 mixingLength_(
dict.lookup<scalar>(
"mixingLength",
dimLength)),
43 kName_(
dict.lookupOrDefault<
word>(
"k",
"k"))
54 fvScalarFieldSource(field, iF),
55 mixingLength_(field.mixingLength_),
75 const scalarField ks(this->value<scalar>(kName_, source));
83 const scalar Cmu25 =
pow(Cmu, 0.25);
85 return sqrt(ks)/(Cmu25*mixingLength_);
107 writeEntry(os,
"mixingLength", mixingLength_);
108 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 keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
Base class for finite volume sources.
virtual tmp< scalarField > source(const word &fieldName) const =0
Return the source value.
virtual label nCells() const
Return the number of cells that the source applies to.
Abstract base class for turbulence models (RAS, LES and laminar).
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
A class for managing temporary objects.
This source condition provides a turbulence specific dissipation, (omega), based on a specified mixi...
virtual tmp< scalarField > internalCoeff(const fvSource &) const
Return the internal coefficient.
virtual ~turbulentMixingLengthFrequencyFvScalarFieldSource()
Destructor.
virtual void write(Ostream &) const
Write.
virtual tmp< scalarField > sourceValue(const fvSource &) const
Return the source value.
turbulentMixingLengthFrequencyFvScalarFieldSource(const DimensionedField< scalar, volMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
word name(const bool)
Return a word representation of a bool.
makeTypeFieldSource(fvScalarFieldSource, turbulentIntensityKineticEnergyFvScalarFieldSource)
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)