Go to the documentation of this file.
35 namespace regionModels
37 namespace pyrolysisModels
48 namespace regionModels
50 namespace pyrolysisModels
55 pyrolysisModelCollection::pyrolysisModelCollection(
const fvMesh&
mesh)
64 mesh.time().constant(),
75 for (label i = 0; i < regions.size(); i++)
83 pyrolysisZonesDict.
subDict(regions[i]),
104 this->operator[](i).preEvolveRegion();
113 this->operator[](i).evolveRegion();
129 <<
"Currently not possible to apply "
156 this->operator[](i).info();
175 scalar totalDiNum = GREAT;
Base class for pyrolysis models.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Switch active() const
Return the active flag.
virtual scalar solidRegionDiffNo() const
Mean diffusion number of the solid regions.
virtual void evolveRegion()
Evolve the region.
virtual void info()
Provide some feedback.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const pyrolysisModel * set(const label i) const
Return const pointer to element (can be nullptr),.
virtual void evolve()
Evolve regions.
virtual ~pyrolysisModelCollection()
Destructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
const word & modelName() const
Return the model name.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual void preEvolveRegion()
Pre-evolve regions.
#define forAll(list, i)
Loop across all elements in list.
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
defineTypeNameAndDebug(noPyrolysis, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
void setSize(const label newLen)
Same as resize()
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.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
virtual scalar maxDiff() const
Return max diffusivity allowed in the solid.
Mesh data needed to do the Finite Volume discretisation.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
errorManip< error > abort(error &err)
Switch infoOutput() const
Return the information flag.
virtual void info()
Provide some feedback from pyrolysis regions.
bool changing() const noexcept
Is mesh changing (topology changing and/or moving)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
wordList toc() const
Return the table of contents.
virtual void evolveRegion()
Evolve the pyrolysis equation regions.