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