49 const breakupModel& breakup,
55 dict.get<
word>(
"daughterSizeDistributionModel")
58 auto* ctorPtr = dictionaryConstructorTable(modelType);
65 "daughterSizeDistributionModel",
67 *dictionaryConstructorTablePtr_
71 return ctorPtr(breakup,
dict);
112 if (nik_.size() == 0)
114 forAll(breakup_.popBal().sizeGroups(),
k)
118 for (label i = 0; i <=
k; i++)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for breakup models which give a total breakup rate and a separate daughter size distributi...
Base class for daughter size distribution models.
const breakupModel & breakup_
Reference to the breakupModel.
const dimensionedScalar & nik(const label i, const label k) const
Return total number of particles assigned to class i when a particle.
void correct()
Correct field independent expressions.
virtual dimensionedScalar calcNik(const label i, const label k) const =0
Calculate and return total number of particles assigned to class i.
static autoPtr< daughterSizeDistributionModel > New(const breakupModel &breakup, const dictionary &dict)
virtual ~daughterSizeDistributionModel()
Destructor.
PtrList< PtrList< dimensionedScalar > > nik_
nik
daughterSizeDistributionModel(const breakupModel &breakup, const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.