31 Foam::scalar Foam::singleGroupFractionFvScalarFieldSource::eta()
const
33 return i() == index_ ? scalar(1) : scalar(0);
46 fvScalarFieldSource(iF,
dict),
59 fvScalarFieldSource(field, iF),
84 model.
name() +
":" + this->internalField().name() +
"SourceValue",
85 this->internalField().mesh(),
113 model.
name() +
":" + this->internalField().name() +
"InternalCoeff",
114 this->internalField().mesh(),
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...
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
void size(const label)
Override size to be inconsistent with allocated storage.
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.
const word & name() const
Return const access to the source name.
Base class for finite volume sources.
Base class for source conditions of properties of the groups in a population balance model.
label i() const
Return the index of this group.
Source condition for group fractions of a population balance model that sets a value of one in a sing...
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 void write(Ostream &) const
Write.
singleGroupFractionFvScalarFieldSource(const DimensionedField< scalar, fvMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
virtual ~singleGroupFractionFvScalarFieldSource()
Destructor.
A class for managing temporary objects.
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 & dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addNamedToRunTimeSelectionTable(fvPatchScalarField, turbulentKineticEnergyFvPatchScalarField, dictionary, turbulentIntensityKineticEnergyInlet)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
makeTypeFieldSource(fvScalarFieldSource, turbulentKineticEnergyFvScalarFieldSource)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)