65 const label i = this->i();
68 return fi.
sources()[model.
name()].internalCoeff(model, source)*fi;
79 const label i = this->i();
83 refCast<const growthFvScalarFieldSource>
86 ).sourceCoeffs(model);
92 tsourceCoeffs.
first() = fiSourceCoeffs.
first()*value(i - 1, model);
97 tsourceCoeffs.
second() = fiSourceCoeffs.
second()*value(i + 1, model);
100 return tsourceCoeffs;
112 const label i = this->i();
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
const Sources & sources() const
Return const-reference to the sources.
An ordered pair of two objects of type <Type> with first() and second() elements.
const Type & second() const
Return second.
const Type & first() const
Return first.
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.
Base class for source conditions which create a growth source terms in the group fraction equations o...
Base class for source conditions which create a growth source terms for secondary properties of the g...
growthSecondaryPropertyFvScalarFieldSource(const DimensionedField< scalar, fvMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
virtual tmp< DimensionedField< scalar, fvMesh > > internalCoeff(const fvSource &model, const DimensionedField< scalar, fvMesh > &source) const
Return the internal coefficient.
virtual tmp< DimensionedField< scalar, fvMesh > > sourceCoeff(const fvSource &model, const DimensionedField< scalar, fvMesh > &source) const
Return the combined source coefficient.
virtual Pair< tmp< DimensionedField< scalar, fvMesh > > > sourceCoeffs(const fvSource &model) const
Return the source coefficients for exchange with the groups below.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
const volScalarField & f(const label i) const
Access a group fraction.
const UPtrList< const diameterModels::populationBalance > & diameters() const
Access the list of diameter models associated with each group.
label nGroups() const
Return the number of groups in the population balance.
A class for managing temporary objects.
dimensionedScalar pos(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar neg(const dimensionedScalar &ds)