40 fvScalarFieldSource(iF,
dict),
42 UName_(
dict.lookupOrDefault<
word>(
"U",
"U"))
53 fvScalarFieldSource(field, iF),
54 intensity_(field.intensity_),
78 *
magSqr(this->value<vector>(UName_, model, source));
93 *
magSqr(this->value<vector>(UName_, model, source,
cells));
127 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
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 turbulent kinetic energy based on user-supplied turbulence intensity...
turbulentIntensityKineticEnergyFvScalarFieldSource(const DimensionedField< scalar, volMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
virtual void write(Ostream &) const
Write.
virtual ~turbulentIntensityKineticEnergyFvScalarFieldSource()
Destructor.
virtual tmp< DimensionedField< scalar, volMesh > > sourceValue(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the source value.
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)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar neg0(const dimensionedScalar &ds)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
const unitConversion unitFraction