41 fvScalarFieldSource(iF,
dict),
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 tmp< DimensionedField< scalar, fvMesh > > sourceValue(const fvSource &model, const DimensionedField< scalar, fvMesh > &source) const
Return the source value.
virtual tmp< DimensionedField< scalar, fvMesh > > internalCoeff(const fvSource &model, const DimensionedField< scalar, fvMesh > &source) const
Return the internal coefficient.
virtual ~turbulentOmegaFvScalarFieldSource()
Destructor.
virtual void write(Ostream &) const
Write.
turbulentOmegaFvScalarFieldSource(const DimensionedField< scalar, fvMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
A class for handling words, derived from string.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
const dimensionSet & dimLength
makeTypeFieldSource(fvScalarFieldSource, turbulentKineticEnergyFvScalarFieldSource)
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
dimensionedScalar neg0(const dimensionedScalar &ds)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)