33 namespace regionModels
35 namespace pyrolysisModels
46 namespace regionModels
48 namespace pyrolysisModels
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();
bool changing() const
Is mesh changing (topology changing and/or moving)
virtual scalar solidRegionDiffNo() const
Mean diffusion number of the solid regions.
#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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(noPyrolysis, 0)
const T & operator[](const label) const
Return element const reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return the top-level database.
wordList toc() const
Return the table of contents.
pyrolysisModelCollection(const fvMesh &)
Construct from mesh.
virtual ~pyrolysisModelCollection()
Destructor.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const word & modelName() const
Return the model name.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual void evolveRegion()
Evolve the pyrolysis equation regions.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
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 & 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.
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 Switch & infoOutput() const
Return the information flag.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void preEvolveRegion()
Pre-evolve regions.
const Switch & active() const
Return the active flag.