growthSecondaryPropertyFvScalarFieldSource Class Referenceabstract

Base class for source conditions which create a growth source terms for secondary properties of the size-groups of a population balance model. More...

Inheritance diagram for growthSecondaryPropertyFvScalarFieldSource:
Collaboration diagram for growthSecondaryPropertyFvScalarFieldSource:

Public Member Functions

 growthSecondaryPropertyFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 growthSecondaryPropertyFvScalarFieldSource (const growthSecondaryPropertyFvScalarFieldSource &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< DimensionedField< scalar, volMesh > > value (const label i, const fvSource &model) const =0
 Return the value transported from the adjacent group. More...
 
virtual tmp< DimensionedField< scalar, volMesh > > internalCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
 Return the internal coefficient. More...
 
virtual Pair< tmp< DimensionedField< scalar, volMesh > > > sourceCoeffs (const fvSource &model) const
 Return the source coefficients for exchange with the groups below. More...
 
virtual tmp< DimensionedField< scalar, volMesh > > sourceCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
 Return the combined source coefficient. More...
 
- Public Member Functions inherited from growthFvScalarFieldSource
virtual tmp< DimensionedField< scalar, volMesh > > sourceValue (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
 Return the source value. Not Implemented. More...
 
- Public Member Functions inherited from secondaryPropertyFvScalarFieldSource
 secondaryPropertyFvScalarFieldSource (const DimensionedField< scalar, volMesh > &)
 Construct from internal field. More...
 
const UPtrList< diameterModels::sizeGroup > & fis () const
 Return the list of size-groups. More...
 
label i () const
 Return the index of this group. More...
 
const diameterModels::sizeGroupfi (const label deltai=0) const
 Return a size-group. More...
 
template<class ModelType >
const volScalarFieldfld (const label deltai=0) const
 Return a secondary property field. More...
 
template<class ModelType >
const ModelType & model (const label deltai=0) const
 Return a secondary property model. More...
 
template<class ModelType >
const Foam::volScalarFieldfld (const label deltai) const
 

Detailed Description

Base class for source conditions which create a growth source terms for secondary properties of the size-groups of a population balance model.

Source files

Definition at line 50 of file growthSecondaryPropertyFvScalarFieldSource.H.

Constructor & Destructor Documentation

◆ growthSecondaryPropertyFvScalarFieldSource() [1/2]

growthSecondaryPropertyFvScalarFieldSource ( const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from internal field and dictionary.

Definition at line 31 of file growthSecondaryPropertyFvScalarFieldSource.C.

◆ growthSecondaryPropertyFvScalarFieldSource() [2/2]

Copy constructor setting internal field reference.

Definition at line 43 of file growthSecondaryPropertyFvScalarFieldSource.C.

Member Function Documentation

◆ value()

virtual tmp<DimensionedField<scalar, volMesh> > value ( const label  i,
const fvSource model 
) const
pure virtual

◆ internalCoeff()

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > internalCoeff ( const fvSource model,
const DimensionedField< scalar, volMesh > &  source 
) const
virtual

Return the internal coefficient.

Definition at line 58 of file growthSecondaryPropertyFvScalarFieldSource.C.

References fvModel::name(), and GeometricField< Type, GeoMesh, PrimitiveField >::sources().

Here is the call graph for this function:

◆ sourceCoeffs()

Foam::Pair< Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > > sourceCoeffs ( const fvSource model) const
virtual

Return the source coefficients for exchange with the groups below.

and above this group

Implements growthFvScalarFieldSource.

Definition at line 71 of file growthSecondaryPropertyFvScalarFieldSource.C.

References Pair< Type >::first(), sizeGroup::group(), sizeGroup::i(), fvModel::name(), velocityGroup::popBal(), Pair< Type >::second(), UPtrList< T >::size(), populationBalanceModel::sizeGroups(), and GeometricField< Type, GeoMesh, PrimitiveField >::sources().

Here is the call graph for this function:

◆ sourceCoeff()

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > sourceCoeff ( const fvSource model,
const DimensionedField< scalar, volMesh > &  source 
) const
virtual

Return the combined source coefficient.

Definition at line 103 of file growthSecondaryPropertyFvScalarFieldSource.C.

References UPtrList< T >::first(), Pair< Type >::first(), sizeGroup::group(), sizeGroup::i(), UPtrList< T >::last(), Foam::neg(), Foam::pos(), Pair< Type >::second(), and velocityGroup::sizeGroups().

Here is the call graph for this function:

The documentation for this class was generated from the following files: