40 fvScalarFieldSource(iF,
dict),
42 UName_(
dict.lookupOrDefault<
word>(
"U",
"U"))
53 fvScalarFieldSource(field, iF),
54 intensity_(field.intensity_),
74 const vectorField Us(this->value<vector>(UName_, source));
98 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 keyword definitions, which are a keyword followed by any number of values (e....
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.
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 tmp< scalarField > internalCoeff(const fvSource &) const
Return the internal coefficient.
virtual void write(Ostream &) const
Write.
virtual tmp< scalarField > sourceValue(const fvSource &) const
Return the source value.
virtual ~turbulentIntensityKineticEnergyFvScalarFieldSource()
Destructor.
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
word name(const bool)
Return a word representation of a bool.
makeTypeFieldSource(fvScalarFieldSource, turbulentIntensityKineticEnergyFvScalarFieldSource)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar neg0(const dimensionedScalar &ds)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const unitConversion unitFraction