GEOSX
|
#include <CellElementStencilTPFA.hpp>
Public Types | |
template<typename VIEWTYPE > | |
using | CoefficientAccessor = ElementRegionManager::ElementViewConst< VIEWTYPE > |
Coefficient view accessory type. | |
Public Types inherited from geosx::CellElementStencilTPFA_Traits | |
using | IndexContainerType = array2d< localIndex > |
The array type that will be used to store the indices of the stencil contributors. | |
using | IndexContainerViewType = arrayView2d< localIndex > |
The array view type for the stencil indices. | |
using | IndexContainerViewConstType = arrayView2d< localIndex const > |
The array view to const type for the stencil indices. | |
using | WeightContainerType = array2d< real64 > |
The array type that is used to store the weights of the stencil contributors. | |
using | WeightContainerViewType = arrayView2d< real64 > |
The array view type for the stencil weights. | |
using | WeightContainerViewConstType = arrayView2d< real64 const > |
The array view to const type for the stencil weights. | |
Public Member Functions | |
CellElementStencilTPFAWrapper (IndexContainerType const &elementRegionIndices, IndexContainerType const &elementSubRegionIndices, IndexContainerType const &elementIndices, WeightContainerType const &weights, arrayView2d< real64 > const &faceNormal, arrayView3d< real64 > const &cellToFaceVec, arrayView1d< real64 > const &transMultiplier) | |
Constructor. More... | |
GEOSX_HOST_DEVICE void | computeWeights (localIndex iconn, CoefficientAccessor< arrayView3d< real64 const > > const &coefficient, CoefficientAccessor< arrayView3d< real64 const > > const &dCoeff_dVar, real64(&weight)[1][2], real64(&dWeight_dVar)[1][2]) const |
Compute weigths and derivatives w.r.t to one variable. More... | |
virtual localIndex | size () const override final |
Give the number of stencil entries. More... | |
GEOSX_HOST_DEVICE GEOSX_FORCE_INLINE localIndex | stencilSize (localIndex index) const |
Give the number of points in a stencil entry. More... | |
GEOSX_HOST_DEVICE GEOSX_FORCE_INLINE localIndex | numPointsInFlux (localIndex index) const |
Give the number of points between which the flux is. More... | |
Public Member Functions inherited from geosx::StencilWrapperBase< CellElementStencilTPFA_Traits > | |
StencilWrapperBase (typename CellElementStencilTPFA_Traits ::IndexContainerType const &elementRegionIndices, typename CellElementStencilTPFA_Traits ::IndexContainerType const &elementSubRegionIndices, typename CellElementStencilTPFA_Traits ::IndexContainerType const &elementIndices, typename CellElementStencilTPFA_Traits ::WeightContainerType const &weights) | |
Constructor. More... | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | getElementRegionIndices () const |
Const access to the element regions indices. More... | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | getElementSubRegionIndices () const |
Const access to the element subregions indices. More... | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | getElementIndices () const |
Const access to the element indices. More... | |
CellElementStencilTPFA_Traits ::WeightContainerViewConstType | getWeights () const |
Const access to the stencil weights. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from geosx::CellElementStencilTPFA_Traits | |
static constexpr localIndex | NUM_POINT_IN_FLUX = 2 |
Number of points the flux is between (always 2 for TPFA) | |
static constexpr localIndex | MAX_STENCIL_SIZE = 2 |
Maximum number of points in a stencil (this is 2 for TPFA) | |
static constexpr localIndex | MAX_NUM_OF_CONNECTIONS = 1 |
Maximum number of connections in a stencil. | |
Protected Attributes inherited from geosx::StencilWrapperBase< CellElementStencilTPFA_Traits > | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | m_elementRegionIndices |
The container for the element region indices for each point in each stencil. | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | m_elementSubRegionIndices |
The container for the element sub region indices for each point in each stencil. | |
CellElementStencilTPFA_Traits ::IndexContainerViewConstType | m_elementIndices |
The container for the element indices for each point in each stencil. | |
CellElementStencilTPFA_Traits ::WeightContainerViewConstType | m_weights |
The container for the weights for each point in each stencil. | |
Class to provide access to the cellElement stencil that may be called from a kernel function.
Definition at line 69 of file CellElementStencilTPFA.hpp.
|
inline |
Constructor.
elementRegionIndices | The container for the element region indices for each point in each stencil |
elementSubRegionIndices | The container for the element sub region indices for each point in each stencil |
elementIndices | The container for the element indices for each point in each stencil |
weights | The container for the weights for each point in each stencil |
faceNormal | Face normal vector |
cellToFaceVec | Cell center to face center vector |
transMultiplier | Transmissibility multiplier |
Definition at line 89 of file CellElementStencilTPFA.hpp.
|
inline |
Compute weigths and derivatives w.r.t to one variable.
[in] | iconn | connection index |
[in] | coefficient | view accessor to the coefficient used to compute the weights |
[in] | dCoeff_dVar | view accessor to the derivative of the coefficient w.r.t to the variable |
[out] | weight | view weights |
[out] | dWeight_dVar | derivative of the weigths w.r.t to the variable |
Definition at line 236 of file CellElementStencilTPFA.hpp.
|
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 145 of file CellElementStencilTPFA.hpp.
|
inlinefinaloverridevirtual |
Give the number of stencil entries.
Implements geosx::StencilWrapperBase< CellElementStencilTPFA_Traits >.
Definition at line 122 of file CellElementStencilTPFA.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 132 of file CellElementStencilTPFA.hpp.