33 namespace diameterModels
50 word daughterSizeDistributionModelType
52 dict.lookup(
"daughterSizeDistributionModel")
55 Info<<
"Selecting daughter size distribution model for "
57 << daughterSizeDistributionModelType <<
endl;
59 dictionaryConstructorTable::iterator cstrIter =
60 dictionaryConstructorTablePtr_->find(daughterSizeDistributionModelType);
62 if (cstrIter == dictionaryConstructorTablePtr_->end())
65 <<
"Unknown daughter size distribution model type "
66 << daughterSizeDistributionModelType <<
endl <<
endl
67 <<
"Valid daughter size distribution model types are : " <<
endl
68 << dictionaryConstructorTablePtr_->sortedToc()
72 return cstrIter()(breakup,
dict);
113 if (nik_.size() == 0)
115 forAll(breakup_.popBal().sizeGroups(),
k)
119 for (
label i = 0; i <=
k; i++)
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Base class for breakup models which provide a total breakup rate and a separate daughter size distrib...
const populationBalanceModel & popBal() const
Return reference to the populationBalanceModel.
Base class for daughter size distribution models. Currently only supports field-independent formulati...
void precompute()
Precompute field independent expressions.
const dimensionedScalar & nik(const label i, const label k) const
Return contribution to sizeGroup i due to breakup in sizeGroup k.
static autoPtr< daughterSizeDistributionModel > New(const breakupModel &breakup, const dictionary &dict)
virtual ~daughterSizeDistributionModel()
Destructor.
daughterSizeDistributionModel(const breakupModel &breakup, const dictionary &dict)
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineRunTimeSelectionTable(IATEsource, dictionary)
defineTypeNameAndDebug(constant, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.