GEOSX
Public Types | Public Member Functions | List of all members
geos::CellElementStencilTPFAWrapper Class Reference

#include <CellElementStencilTPFA.hpp>

Inheritance diagram for geos::CellElementStencilTPFAWrapper:
Inheritance graph
[legend]

Public Types

template<typename VIEWTYPE >
using CoefficientAccessor = ElementRegionManager::ElementViewConst< VIEWTYPE >
 Coefficient view accessory type.
 
- Public Types inherited from geos::StencilTraits< CONTAINER, MAX_NUM_POINTS_IN_FLUX, MAX_STENCIL_SIZE, MAX_NUM_CONNECTIONS >
using IndexContainerType = CONTAINER< localIndex >
 The array type that will be used to store the indices of the stencil contributors.
 
using IndexContainerViewConstType = LvArray::typeManipulation::NestedViewTypeConst< IndexContainerType >
 The array view to const type for the stencil indices.
 
using WeightContainerType = CONTAINER< real64 >
 The array type that is used to store the weights of the stencil contributors.
 
using WeightContainerViewConstType = LvArray::typeManipulation::NestedViewTypeConst< WeightContainerType >
 The array view to const type for the stencil weights.
 
using WeightContainerViewType = LvArray::typeManipulation::NestedViewType< WeightContainerType >
 The array view to 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, arrayView1d< real64 > const &geometricStabilizationCoef)
 Constructor. More...
 
GEOS_HOST_DEVICE void computeWeights (localIndex const 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 weights and derivatives w.r.t to one variable. More...
 
GEOS_HOST_DEVICE void computeWeights (localIndex iconn, real64(&weight)[1][2], real64(&dWeight_dVar)[1][2]) const
 Compute weights and derivatives w.r.t to one variable without coefficient Used in ReactiveCompositionalMultiphaseOBL solver for thermal transmissibility computation: here, conductivity is a part of operator and cannot be used directly as a coefficient. More...
 
GEOS_HOST_DEVICE void computeStabilizationWeights (localIndex iconn, real64(&stabilizationWeight)[1][2]) const
 Compute the stabilization weights. More...
 
localIndex size () const
 Give the number of stencil entries. More...
 
GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex stencilSize (localIndex const index) const
 Give the number of points in a stencil entry. More...
 
GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex numPointsInFlux (localIndex const index) const
 Give the number of points between which the flux is. More...
 
- Public Member Functions inherited from geos::StencilWrapperBase< TwoPointStencilTraits >
 StencilWrapperBase (typename TwoPointStencilTraits ::IndexContainerType const &elementRegionIndices, typename TwoPointStencilTraits ::IndexContainerType const &elementSubRegionIndices, typename TwoPointStencilTraits ::IndexContainerType const &elementIndices, typename TwoPointStencilTraits ::WeightContainerType const &weights)
 Constructor. More...
 
TwoPointStencilTraits ::IndexContainerViewConstType getElementRegionIndices () const
 Const access to the element regions indices. More...
 
TwoPointStencilTraits ::IndexContainerViewConstType getElementSubRegionIndices () const
 Const access to the element subregions indices. More...
 
TwoPointStencilTraits ::IndexContainerViewConstType getElementIndices () const
 Const access to the element indices. More...
 
TwoPointStencilTraits ::WeightContainerViewConstType getWeights () const
 Const access to the stencil weights. More...
 

Additional Inherited Members

- Static Public Attributes inherited from geos::StencilTraits< CONTAINER, MAX_NUM_POINTS_IN_FLUX, MAX_STENCIL_SIZE, MAX_NUM_CONNECTIONS >
static constexpr localIndex maxNumPointsInFlux = MAX_NUM_POINTS_IN_FLUX
 Maximum number of points the flux.
 
static constexpr localIndex maxStencilSize = MAX_STENCIL_SIZE
 Maximum number of points in a stencil.
 
static constexpr localIndex maxNumConnections = MAX_NUM_CONNECTIONS
 Maximum number of connections in a stencil.
 
- Protected Attributes inherited from geos::StencilWrapperBase< TwoPointStencilTraits >
TwoPointStencilTraits ::IndexContainerViewConstType m_elementRegionIndices
 The container for the element region indices for each point in each stencil.
 
TwoPointStencilTraits ::IndexContainerViewConstType m_elementSubRegionIndices
 The container for the element sub region indices for each point in each stencil.
 
TwoPointStencilTraits ::IndexContainerViewConstType m_elementIndices
 The container for the element indices for each point in each stencil.
 
TwoPointStencilTraits ::WeightContainerViewType m_weights
 The container for the weights for each point in each stencil.
 

Detailed Description

Provides access to the cellElement stencil that may be called from a kernel function.

Definition at line 30 of file CellElementStencilTPFA.hpp.

Constructor & Destructor Documentation

◆ CellElementStencilTPFAWrapper()

geos::CellElementStencilTPFAWrapper::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,
arrayView1d< real64 > const &  geometricStabilizationCoef 
)

Constructor.

Parameters
elementRegionIndicesThe container for the element region indices for each point in each stencil
elementSubRegionIndicesThe container for the element sub region indices for each point in each stencil
elementIndicesThe container for the element indices for each point in each stencil
weightsThe container for the weights for each point in each stencil
faceNormalFace normal vector
cellToFaceVecCell center to face center vector
transMultiplierTransmissibility multiplier
geometricStabilizationCoefGeometric coefficient for pressure jump stabilization

Member Function Documentation

◆ computeStabilizationWeights()

GEOS_HOST_DEVICE void geos::CellElementStencilTPFAWrapper::computeStabilizationWeights ( localIndex  iconn,
real64(&)  stabilizationWeight[1][2] 
) const
inline

Compute the stabilization weights.

Parameters
[in]iconnconnection index
[out]stabilizationWeightview weights

Definition at line 335 of file CellElementStencilTPFA.hpp.

◆ computeWeights() [1/2]

GEOS_HOST_DEVICE void geos::CellElementStencilTPFAWrapper::computeWeights ( localIndex const  iconn,
CoefficientAccessor< arrayView3d< real64 const > > const &  coefficient,
CoefficientAccessor< arrayView3d< real64 const > > const &  dCoeff_dVar,
real64(&)  weight[1][2],
real64(&)  dWeight_dVar[1][2] 
) const
inline

Compute weights and derivatives w.r.t to one variable.

Parameters
[in]iconnconnection index
[in]coefficientview accessor to the coefficient used to compute the weights
[in]dCoeff_dVarview accessor to the derivative of the coefficient w.r.t to the variable
[out]weightview weights
[out]dWeight_dVarderivative of the weights w.r.t to the variable

Definition at line 216 of file CellElementStencilTPFA.hpp.

◆ computeWeights() [2/2]

GEOS_HOST_DEVICE void geos::CellElementStencilTPFAWrapper::computeWeights ( localIndex  iconn,
real64(&)  weight[1][2],
real64(&)  dWeight_dVar[1][2] 
) const
inline

Compute weights and derivatives w.r.t to one variable without coefficient Used in ReactiveCompositionalMultiphaseOBL solver for thermal transmissibility computation: here, conductivity is a part of operator and cannot be used directly as a coefficient.

Parameters
[in]iconnconnection index
[out]weightview weights
[out]dWeight_dVarderivative of the weights w.r.t to the variable

Definition at line 281 of file CellElementStencilTPFA.hpp.

◆ numPointsInFlux()

GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex geos::CellElementStencilTPFAWrapper::numPointsInFlux ( localIndex const  index) const
inline

Give the number of points between which the flux is.

Parameters
[in]indexof the stencil entry for which to query the size
Returns
the number of points.

Definition at line 124 of file CellElementStencilTPFA.hpp.

◆ size()

localIndex geos::CellElementStencilTPFAWrapper::size ( ) const
inline

Give the number of stencil entries.

Returns
The number of stencil entries

Definition at line 99 of file CellElementStencilTPFA.hpp.

◆ stencilSize()

GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex geos::CellElementStencilTPFAWrapper::stencilSize ( localIndex const  index) const
inline

Give the number of points in a stencil entry.

Parameters
[in]indexof the stencil entry for which to query the size
Returns
the size of a stencil entry

Definition at line 111 of file CellElementStencilTPFA.hpp.


The documentation for this class was generated from the following file: