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

Provides access to the FaceElementToCellStencil that may be called from a kernel function. More...

#include <FaceElementToCellStencil.hpp>

Inheritance diagram for geos::FaceElementToCellStencilWrapper:
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

 FaceElementToCellStencilWrapper (IndexContainerType const &elementRegionIndices, IndexContainerType const &elementSubRegionIndices, IndexContainerType const &elementIndices, WeightContainerType const &weights, arrayView2d< real64 > const &faceNormal, arrayView2d< real64 > const &cellToFaceVec, arrayView1d< real64 > const &transMultiplier)
 Constructor. More...
 
GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex size () const
 Give the number of stencil entries. More...
 
GEOS_HOST_DEVICE constexpr GEOS_FORCE_INLINE localIndex stencilSize (localIndex index) const
 Give the number of stencil entries for the provided index. More...
 
GEOS_HOST_DEVICE constexpr GEOS_FORCE_INLINE localIndex numPointsInFlux (localIndex index) const
 Give the number of points between which the flux is. More...
 
GEOS_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...
 
GEOS_HOST_DEVICE void computeWeights (localIndex iconn, real64(&weight)[1][2], real64(&dWeight_dVar)[1][2]) const
 Compute weigths 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 connot be used directly as a coefficient. More...
 
GEOS_HOST_DEVICE void computeWeights (localIndex iconn, CoefficientAccessor< arrayView3d< real64 const > > const &coefficient, CoefficientAccessor< arrayView3d< real64 const > > const &dCoeff_dVar1, CoefficientAccessor< arrayView3d< real64 const > > const &dCoeff_dVar2, real64(&weight)[1][2], real64(&dWeight_dVar1)[1][2], real64(&dWeight_dVar2)[1][2]) const
 Compute weigths and derivatives w.r.t to one variable. More...
 
GEOS_HOST_DEVICE void computeStabilizationWeights (localIndex iconn, real64(&stabilizationWeight)[1][2]) const
 Compute the stabilization weights. More...
 
GEOS_HOST_DEVICE void removeHydraulicApertureContribution (localIndex const iconn, ElementRegionManager::ElementViewConst< arrayView1d< real64 const > > hydraulicAperture) const
 Remove the contribution of the aperture from the weight in the stencil (done before aperture update) More...
 
GEOS_HOST_DEVICE void addHydraulicApertureContribution (localIndex const iconn, ElementRegionManager::ElementViewConst< arrayView1d< real64 const > > hydraulicAperture) const
 Add the contribution of the aperture to the weight in the stencil (done after aperture update) 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 FaceElementToCellStencil that may be called from a kernel function.

Definition at line 30 of file FaceElementToCellStencil.hpp.

Constructor & Destructor Documentation

◆ FaceElementToCellStencilWrapper()

geos::FaceElementToCellStencilWrapper::FaceElementToCellStencilWrapper ( IndexContainerType const &  elementRegionIndices,
IndexContainerType const &  elementSubRegionIndices,
IndexContainerType const &  elementIndices,
WeightContainerType const &  weights,
arrayView2d< real64 > const &  faceNormal,
arrayView2d< real64 > const &  cellToFaceVec,
arrayView1d< real64 > const &  transMultiplier 
)

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

Member Function Documentation

◆ addHydraulicApertureContribution()

GEOS_HOST_DEVICE void geos::FaceElementToCellStencilWrapper::addHydraulicApertureContribution ( localIndex const  iconn,
ElementRegionManager::ElementViewConst< arrayView1d< real64 const > >  hydraulicAperture 
) const
inline

Add the contribution of the aperture to the weight in the stencil (done after aperture update)

Parameters
iconnconnection index
hydraulicAperturehydraulic apertures of the fractures

Definition at line 375 of file FaceElementToCellStencil.hpp.

◆ computeStabilizationWeights()

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

Compute the stabilization weights.

Parameters
[in]iconnconnection index
[out]stabilizationWeightview weights

Definition at line 146 of file FaceElementToCellStencil.hpp.

◆ computeWeights() [1/3]

GEOS_HOST_DEVICE void geos::FaceElementToCellStencilWrapper::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
inline

Compute weigths 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 weigths w.r.t to the variable

Definition at line 255 of file FaceElementToCellStencil.hpp.

◆ computeWeights() [2/3]

GEOS_HOST_DEVICE void geos::FaceElementToCellStencilWrapper::computeWeights ( localIndex  iconn,
CoefficientAccessor< arrayView3d< real64 const > > const &  coefficient,
CoefficientAccessor< arrayView3d< real64 const > > const &  dCoeff_dVar1,
CoefficientAccessor< arrayView3d< real64 const > > const &  dCoeff_dVar2,
real64(&)  weight[1][2],
real64(&)  dWeight_dVar1[1][2],
real64(&)  dWeight_dVar2[1][2] 
) const
inline

Compute weigths 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_dVar1view accessor to the derivative of the coefficient w.r.t to the variable 1
[in]dCoeff_dVar2view accessor to the derivative of the coefficient w.r.t to the variable 2
[out]weightview weights
[out]dWeight_dVar1derivative of the weigths w.r.t to the variable 1
[out]dWeight_dVar2derivative of the weigths w.r.t to the variable 2

Definition at line 315 of file FaceElementToCellStencil.hpp.

◆ computeWeights() [3/3]

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

Compute weigths 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 connot be used directly as a coefficient.

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

Definition at line 294 of file FaceElementToCellStencil.hpp.

◆ numPointsInFlux()

GEOS_HOST_DEVICE constexpr GEOS_FORCE_INLINE localIndex geos::FaceElementToCellStencilWrapper::numPointsInFlux ( localIndex  index) const
inlineconstexpr

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 87 of file FaceElementToCellStencil.hpp.

◆ removeHydraulicApertureContribution()

GEOS_HOST_DEVICE void geos::FaceElementToCellStencilWrapper::removeHydraulicApertureContribution ( localIndex const  iconn,
ElementRegionManager::ElementViewConst< arrayView1d< real64 const > >  hydraulicAperture 
) const
inline

Remove the contribution of the aperture from the weight in the stencil (done before aperture update)

Parameters
iconnconnection index
hydraulicAperturehydraulic apertures of the fractures

Definition at line 361 of file FaceElementToCellStencil.hpp.

◆ size()

GEOS_HOST_DEVICE GEOS_FORCE_INLINE localIndex geos::FaceElementToCellStencilWrapper::size ( ) const
inline

Give the number of stencil entries.

Returns
The number of stencil entries

Definition at line 62 of file FaceElementToCellStencil.hpp.

◆ stencilSize()

GEOS_HOST_DEVICE constexpr GEOS_FORCE_INLINE localIndex geos::FaceElementToCellStencilWrapper::stencilSize ( localIndex  index) const
inlineconstexpr

Give the number of stencil entries for the provided index.

Parameters
[in]indexthe index of which the stencil size is request
Returns
The number of stencil entries for the provided index

Definition at line 74 of file FaceElementToCellStencil.hpp.


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