33 namespace populationBalance
68 modelType = modelDictPtr->
lookup<
word>(
"type");
73 modelDictPtr = &
dict.optionalTypeDict(modelType);
79 dictionaryConstructorTable::iterator cstrIter =
80 dictionaryConstructorTablePtr_->find(modelType);
82 if (cstrIter == dictionaryConstructorTablePtr_->end())
85 <<
"Unknown " <<
typeName <<
" type "
88 << dictionaryConstructorTablePtr_->sortedToc()
94 return cstrIter()(modelDict, popBal);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
Base class for modelling the shape of the particles belonging to a size class through alternative dia...
static autoPtr< shapeModel > New(const dictionary &dict, const populationBalanceModel &popBal)
virtual void correct()
Correct the shape.
virtual void addCoalescence(const volScalarField::Internal &Su, const label i, const label j, const label k)
Add coalescence contribution to secondary property source.
shapeModel(const populationBalanceModel &popBal)
Construct from a population balance model.
const populationBalanceModel & popBal() const
Return reference to the population balance model.
virtual void reset()
Reset secondary property source.
virtual void addBreakup(const volScalarField::Internal &Su, const label i, const label j)
Add breakup contribution to secondary property source.
virtual ~shapeModel()
Destructor.
virtual void solve()
Solve equations.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
defineTypeNameAndDebug(breakupModel, 0)
defineRunTimeSelectionTable(breakupModel, dictionary)
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.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.