GEOSX
|
#include <CellElementStencilMPFA.hpp>
Public Member Functions | |
CellElementStencilMPFA () | |
Default constructor. | |
virtual void | reserve (localIndex const size) override final |
Reserve the size of the stencil. More... | |
virtual void | add (localIndex const numPts, localIndex const *const elementRegionIndices, localIndex const *const elementSubRegionIndices, localIndex const *const elementIndices, real64 const *const weights, localIndex const connectorIndex) override final |
Add an entry to the stencil. More... | |
virtual localIndex | size () const override final |
Return the stencil size. More... | |
localIndex | stencilSize (localIndex index) const |
Give the number of points in a stencil entry. More... | |
constexpr localIndex | numPointsInFlux (localIndex index) const |
Give the number of points between which the flux is. More... | |
Public Member Functions inherited from geosx::StencilBase< CellElementStencilMPFA_Traits, CellElementStencilMPFA > | |
StencilBase (StencilBase const &)=default | |
Constructor. | |
StencilBase (StencilBase &&)=default | |
Move constructor. | |
virtual | ~StencilBase ()=default |
Destructor. | |
virtual void | move (LvArray::MemorySpace const space) |
Move the data arrays associated with the stencil to a specified memory space. More... | |
virtual bool | zero (localIndex const connectorIndex) |
Zero weights for a stencil entry. More... | |
void | setName (string const &name) |
Set the name used in data movement logging callbacks. More... | |
CellElementStencilMPFA_Traits ::IndexContainerViewConstType | getElementRegionIndices () const |
Const access to the element regions indices. More... | |
CellElementStencilMPFA_Traits ::IndexContainerViewConstType | getElementSubRegionIndices () const |
Const access to the element subregions indices. More... | |
CellElementStencilMPFA_Traits ::IndexContainerViewConstType | getElementIndices () const |
Const access to the element indices. More... | |
CellElementStencilMPFA_Traits ::WeightContainerViewConstType | getWeights () const |
Const access to the stencil weights. More... | |
Additional Inherited Members | |
Public Types inherited from geosx::CellElementStencilMPFA_Traits | |
using | IndexContainerType = ArrayOfArrays< localIndex > |
The array type that will be used to store the indices of the stencil contributors. | |
using | IndexContainerViewType = ArrayOfArraysView< localIndex > |
The array view type for the stencil indices. | |
using | IndexContainerViewConstType = ArrayOfArraysView< localIndex const > |
The array view to const type for the stencil indices. | |
using | WeightContainerType = ArrayOfArrays< real64 > |
The array type that is used to store the weights of the stencil contributors. | |
using | WeightContainerViewType = ArrayOfArraysView< real64 > |
The array view type for the stencil weights. | |
using | WeightContainerViewConstType = ArrayOfArraysView< real64 const > |
The array view to const type for the stencil weights. | |
Static Public Attributes inherited from geosx::CellElementStencilMPFA_Traits | |
static localIndex constexpr | NUM_POINT_IN_FLUX = 2 |
Number of points the flux is between (always 2) | |
static localIndex constexpr | MAX_STENCIL_SIZE = 18 |
Maximum number of points in a stencil. | |
Protected Attributes inherited from geosx::StencilBase< CellElementStencilMPFA_Traits, CellElementStencilMPFA > | |
CellElementStencilMPFA_Traits ::IndexContainerType | m_elementRegionIndices |
The container for the element region indices for each point in each stencil. | |
CellElementStencilMPFA_Traits ::IndexContainerType | m_elementSubRegionIndices |
The container for the element sub region indices for each point in each stencil. | |
CellElementStencilMPFA_Traits ::IndexContainerType | m_elementIndices |
The container for the element indices for each point in each stencil. | |
CellElementStencilMPFA_Traits ::WeightContainerType | m_weights |
The container for the weights for each point in each stencil. | |
map< localIndex, localIndex > | m_connectorIndices |
The map that provides the stencil index given the index of the underlying connector object. | |
Provides management of the interior stencil points when using a Multi-point flux approximation.
Definition at line 66 of file CellElementStencilMPFA.hpp.
|
finaloverridevirtual |
Add an entry to the stencil.
[in] | numPts | The number of points in the stencil entry |
[in] | elementRegionIndices | The element region indices for each point in the stencil entry |
[in] | elementSubRegionIndices | The element sub-region indices for each point in the stencil entry |
[in] | elementIndices | The element indices for each point in the stencil entry |
[in] | weights | The weights each point in the stencil entry |
[in] | connectorIndex | The index of the connector element that the stencil acts across |
Implements geosx::StencilBase< CellElementStencilMPFA_Traits, CellElementStencilMPFA >.
|
inline |
Give the number of points between which the flux is.
[in] | index | of the stencil entry for which to query the size |
Definition at line 106 of file CellElementStencilMPFA.hpp.
|
finaloverridevirtual |
Reserve the size of the stencil.
[in] | size | the size of the stencil to reserve |
Reimplemented from geosx::StencilBase< CellElementStencilMPFA_Traits, CellElementStencilMPFA >.
|
inlinefinaloverridevirtual |
Return the stencil size.
Implements geosx::StencilBase< CellElementStencilMPFA_Traits, CellElementStencilMPFA >.
Definition at line 89 of file CellElementStencilMPFA.hpp.
|
inline |
Give the number of points in a stencil entry.
[in] | index | of the stencil entry for which to query the size |
Definition at line 97 of file CellElementStencilMPFA.hpp.