33 namespace regionModels
35 namespace pyrolysisModels
46 namespace regionModels
48 namespace pyrolysisModels
53 pyrolysisModelCollection::pyrolysisModelCollection(
const fvMesh&
mesh)
74 for (
label i = 0; i < regions.size(); i++)
82 pyrolysisZonesDict.
subDict(regions[i]),
128 <<
"Currently not possible to apply " 165 if (maxDiff < this->
operator[](i).
maxDiff())
177 scalar totalDiNum = GREAT;
186 totalDiNum = this->
operator[](i).solidRegionDiffNo();
wordList toc() const
Return the table of contents.
#define forAll(list, i)
Loop across all elements in list.
Base class for pyrolysis models.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void evolveRegion()
Evolve the region.
virtual void info()
Provide some feedback.
const Switch & active() const
Return the active flag.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(noPyrolysis, 0)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~pyrolysisModelCollection()
Destructor.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void evolveRegion()
Evolve the pyrolysis equation regions.
virtual scalar maxDiff() const
Return max diffusivity allowed in the solid.
virtual void preEvolveRegion()
Pre-evolve region.
static autoPtr< pyrolysisModel > New(const fvMesh &mesh, const word ®ionType="pyrolysis")
Return a reference to the selected pyrolysis model.
const word & modelName() const
Return the model name.
bool changing() const
Is mesh changing (topology changing and/or moving)
const word & constant() const
Return constant name.
errorManip< error > abort(error &err)
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
virtual void evolve()
Evolve regions.
virtual void info()
Provide some feedback from pyrolysis regions.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
const T & operator[](const label) const
Return element const reference.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const Switch & infoOutput() const
Return the information flag.
virtual scalar solidRegionDiffNo() const
Mean diffusion number of the solid regions.
virtual void preEvolveRegion()
Pre-evolve regions.
const Time & time() const
Return the top-level database.