A centralized pyrolysis collection. More...
#include <pyrolysisModelCollection.H>


Public Member Functions | |
| TypeName ("pyrolysisModelCollection") | |
| pyrolysisModelCollection (const fvMesh &) | |
| Construct from mesh. | |
| virtual | ~pyrolysisModelCollection () |
| Destructor. | |
| virtual void | preEvolveRegion () |
| Pre-evolve regions. | |
| virtual void | evolveRegion () |
| Evolve the pyrolysis equation regions. | |
| virtual void | evolve () |
| Evolve regions. | |
| virtual void | info () |
| Provide some feedback from pyrolysis regions. | |
| virtual scalar | maxDiff () const |
| Return max diffusivity allowed in the solid. | |
| virtual scalar | solidRegionDiffNo () const |
| Mean diffusion number of the solid regions. | |
| Public Member Functions inherited from PtrList< pyrolysisModel > | |
| Foam::PtrList< pyrolysisModel > | clone (Args &&... args) const |
| constexpr | PtrList () noexcept |
| Default construct. | |
| ~PtrList () | |
| Destructor. Frees all pointers. | |
| const pyrolysisModel * | set (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| void | clear () |
| Clear the PtrList. Delete allocated entries and set size to zero. | |
| void | free () |
| Free memory and nullify all entries. Does not change the list size. | |
| void | resize (const label newLen) |
| Adjust size of PtrList. | |
| void | resize_null (const label newLen) |
Set the addressed list to the given size, deleting all existing entries. Afterwards the list contains all nullptr entries. | |
| pyrolysisModel & | emplace_back (Args &&... args) |
| Construct and append an element to the end of the list, return reference to the new list element. | |
| void | push_back (pyrolysisModel *ptr) |
| Append an element to the end of the list. | |
| pyrolysisModel & | emplace_set (const label i, Args &&... args) |
| Construct and set a new element at given position, (discard old element at that location). | |
| pyrolysisModel & | emplace (const label i, Args &&... args) |
| Same as emplace_set(). | |
| pyrolysisModel & | try_emplace (const label i, Args &&... args) |
| Like emplace_set() but will not overwrite an occupied (non-null) location. | |
| autoPtr< pyrolysisModel > | release (const label i) |
| Release ownership of the pointer at the given position. | |
| void | transfer (PtrList< pyrolysisModel > &list) |
| Transfer into this list and annul the argument list. | |
| void | operator= (const UPtrList< pyrolysisModel > &list) |
| Copy assignment. | |
| void | setSize (const label n) |
| Same as resize(). | |
| void | append (autoPtr< pyrolysisModel > &ptr) |
| Move append an element to the end of the list. | |
| Public Member Functions inherited from UPtrList< pyrolysisModel > | |
| bool | empty () const noexcept |
| True if the list is empty (ie, size() is zero). | |
| label | size () const noexcept |
| The number of entries in the list. | |
| label | capacity () const noexcept |
| Size of the underlying storage. | |
| label | count_nonnull () const noexcept |
| The number of non-nullptr entries in the list. | |
| pyrolysisModel & | front () |
| Reference to the first element of the list. | |
| pyrolysisModel & | back () |
| Reference to the last element of the list. | |
| const pyrolysisModel * | test (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| const pyrolysisModel * | get (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| const pyrolysisModel * | set (const label i) const |
| Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie, with bounds checking). | |
| void | clear () |
| Set list size to zero. | |
| void | free () |
| Nullify all entries. Does not change the list size. | |
| void | resize (const label newLen) |
Change the size of the list. Any new entries are nullptr. | |
| void | resize_null (const label newLen) |
Set the list to the given size and set all entries to nullptr. | |
| label | squeezeNull () |
| Squeeze out nullptr entries in the list of pointers after which any null pointers will be at the end of the list. | |
| void | push_back (pyrolysisModel *ptr) |
| Append an element to the end of the list. | |
| void | swap (UPtrList< pyrolysisModel > &list) noexcept |
| Swap content. | |
| void | transfer (UPtrList< pyrolysisModel > &list) |
| Transfer contents into this list and annul the argument. | |
| void | reorder (const labelUList &oldToNew, const bool check=false) |
| Reorder elements. Reordering must be unique (ie, shuffle). | |
| void | sortOrder (const labelUList &order, const bool check=false) |
| Reorder elements according to new order mapping (newToOld). Reordering must be unique (ie, shuffle). | |
| void | checkNonNull () const |
| Check and raise FatalError if any nullptr exists in the list. | |
| const pyrolysisModel & | at (const label i) const |
| Return const reference to the element at given position. FatalError for bounds problem or nullptr. | |
| const pyrolysisModel & | operator[] (const label i) const |
| Return const reference to the element at given position. FatalError for bounds problem or nullptr. Same as at(). | |
| FOAM_DEPRECATED_FOR (2022-09, "get(), set() or test() methods") const pyrolysisModel *operator()(const label i) const | |
| Deprecated(2022-09) - same as get(). | |
| void | operator= (const UPtrList< pyrolysisModel > &list) |
| Copy assignment (shallow copies addresses). | |
| Ostream & | printAddresses (Ostream &os) const |
| Print pointer addresses to Ostream (debugging only). | |
| Ostream & | writeList (Ostream &os, const bool trimNull=false) const |
| Write UPtrList to Ostream, optionally ignoring null entries. | |
| pyrolysisModel ** | begin_ptr () noexcept |
| Iterator to begin of raw pointers traversal (use with caution). | |
| pyrolysisModel ** | end_ptr () noexcept |
| Iterator beyond end of raw pointers traversal (use with caution). | |
| iterator | begin () |
| Return iterator to begin traversal of non-nullptr entries. | |
| iterator | end () noexcept |
| Return iterator beyond end of UPtrList traversal. | |
| const_iterator | cbegin () const |
| Return const_iterator to begin traversal of non-nullptr entries. | |
| const_iterator | cend () const noexcept |
| Return const_iterator beyond end of UPtrList traversal. | |
| void | setSize (const label n) |
| Alias for resize(). | |
| pyrolysisModel & | first () |
| Reference to the first element of the list. | |
| pyrolysisModel & | last () |
| Return reference to the last element of the list. | |
| void | append (pyrolysisModel *ptr) |
| Append an element to the end of the list. | |
| label | count () const noexcept |
| The number of non-nullptr entries in the list. | |
Additional Inherited Members | |
| Public Types inherited from UPtrList< pyrolysisModel > | |
| typedef pyrolysisModel | value_type |
| Type of values the list contains. | |
| typedef pyrolysisModel & | reference |
| A non-const reference to the value_type. | |
| typedef const pyrolysisModel & | const_reference |
| A const reference to the value_type. | |
| Protected Member Functions inherited from PtrList< pyrolysisModel > | |
| void | readIstream (Istream &is, const INew &inew) |
| Read from Istream using Istream constructor class. | |
| Protected Member Functions inherited from UPtrList< pyrolysisModel > | |
| void | setAddressableSize (const label n) noexcept |
| Adjust addressable size. | |
| label | find_next (label pos) const |
| The next non-null entry after the specified position. | |
| UPtrList (Detail::PtrListDetail< pyrolysisModel > &&ptrs) noexcept | |
| Low-level move construct. | |
| Protected Attributes inherited from UPtrList< pyrolysisModel > | |
| Detail::PtrListDetail< pyrolysisModel > | ptrs_ |
| The list of pointers. | |
A centralized pyrolysis collection.
Container class for a set of pyrolysis with functions implemented to loop over the functions for each type.
Definition at line 58 of file pyrolysisModelCollection.H.
| pyrolysisModelCollection | ( | const fvMesh & | mesh | ) |
Construct from mesh.
Definition at line 48 of file pyrolysisModelCollection.C.
References mesh, IOobjectOption::MUST_READ, pyrolysisModel::New(), IOobjectOption::NO_WRITE, PtrList< pyrolysisModel >::PtrList(), PtrList< pyrolysisModel >::set(), PtrList< pyrolysisModel >::setSize(), UList< T >::size(), dictionary::subDict(), and dictionary::toc().

|
virtual |
Destructor.
Definition at line 86 of file pyrolysisModelCollection.C.
| TypeName | ( | "pyrolysisModelCollection" | ) |
|
virtual |
Pre-evolve regions.
Definition at line 93 of file pyrolysisModelCollection.C.
References forAll, and UPtrList< pyrolysisModel >::operator[]().

|
virtual |
Evolve the pyrolysis equation regions.
Definition at line 102 of file pyrolysisModelCollection.C.
References forAll, and UPtrList< pyrolysisModel >::operator[]().

|
virtual |
Evolve regions.
Definition at line 111 of file pyrolysisModelCollection.C.
References Foam::abort(), regionModel::active(), polyMesh::changing(), Foam::decrIndent(), Foam::endl(), regionModel::evolveRegion(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::incrIndent(), Foam::Info, regionModel::info(), regionModel::infoOutput(), regionModel::modelName(), Foam::nl, UPtrList< pyrolysisModel >::operator[](), regionModel::preEvolveRegion(), and regionModel::primaryMesh().

|
virtual |
Provide some feedback from pyrolysis regions.
Definition at line 145 of file pyrolysisModelCollection.C.
References forAll, and UPtrList< pyrolysisModel >::operator[]().

|
virtual |
Return max diffusivity allowed in the solid.
Definition at line 154 of file pyrolysisModelCollection.C.
References forAll, Foam::max(), and maxDiff().
Referenced by maxDiff().


|
virtual |
Mean diffusion number of the solid regions.
Definition at line 167 of file pyrolysisModelCollection.C.
References forAll, Foam::min(), and solidRegionDiffNo().
Referenced by solidRegionDiffNo().

