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]),
122 pyrolysisModel& pyrolysis = this->
operator[](i);
124 if (pyrolysis.active())
126 if (pyrolysis.primaryMesh().changing())
129 <<
"Currently not possible to apply " 130 << pyrolysis.modelName()
135 pyrolysis.preEvolveRegion();
138 pyrolysis.evolveRegion();
141 if (pyrolysis.infoOutput())
175 scalar totalDiNum = GREAT;
const T & operator[](const label i) const
Return const reference to the element at given position. FatalError for bounds problem or nullptr...
virtual scalar solidRegionDiffNo() const
Mean diffusion number of the solid regions.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(noPyrolysis, 0)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
InfoProxy< IOstream > info() const noexcept
Return info proxy, used to print IOstream information to a stream.
Ignore writing from objectRegistry::writeObject()
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
wordList toc() const
Return the table of contents.
virtual ~pyrolysisModelCollection()
Destructor.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
#define forAll(list, i)
Loop across all elements in list.
virtual void evolveRegion()
Evolve the pyrolysis equation regions.
points setSize(newPointi)
virtual scalar maxDiff() const
Return max diffusivity allowed in the solid.
static autoPtr< pyrolysisModel > New(const fvMesh &mesh, const word ®ionType="pyrolysis")
Return a reference to the selected pyrolysis model.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
virtual void evolve()
Evolve regions.
virtual void info()
Provide some feedback from pyrolysis regions.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual void preEvolveRegion()
Pre-evolve regions.