GEOS
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
geos::CIcomputationKernel< FE_TYPE > Class Template Reference

Kernel to compute EDFM connectivity index. More...

#include <CIcomputationKernel.hpp>

Classes

struct  StackVariables
 stack variables More...
 

Public Member Functions

 CIcomputationKernel (FE_TYPE const &finiteElementSpace, NodeManager const &nodeManager, CellElementSubRegion const &elementSubRegion, EmbeddedSurfaceSubRegion &embeddedSurfSubRegion)
 Construct a new CIcomputationKernel object. More...
 
GEOS_HOST_DEVICE void setup (localIndex const k, StackVariables &stack) const
 set up the kernel object by copying global values in the stack. More...
 
GEOS_HOST_DEVICE real64 computeDistance (localIndex const k, real64 const (&point)[3]) const
 computes the distance between a point inside the element and the cut surface k. More...
 
GEOS_HOST_DEVICE void samplingPointCoord (integer const np, StackVariables &stack) const
 computes coordinates of the sampling point in the physical space. More...
 
GEOS_HOST_DEVICE void setConnectivityIndex (localIndex const k, real64 const averageDistance) const
 Set the Connectivity Index. More...
 

Static Public Member Functions

template<typename POLICY , typename KERNEL_TYPE >
static void launchCIComputationKernel (KERNEL_TYPE &kernelComponent)
 launch of CI calculation More...
 

Static Public Attributes

static constexpr int numNodesPerElem = FE_TYPE::maxSupportPoints
 number of nodes per element
 
static constexpr int numSamplingPoints = FE_TYPE::numSamplingPoints
 number of sampling points per element
 

Detailed Description

template<typename FE_TYPE>
class geos::CIcomputationKernel< FE_TYPE >

Kernel to compute EDFM connectivity index.

Template Parameters
FE_TYPEfinite element space (element type) on which CI are computed

Definition at line 41 of file CIcomputationKernel.hpp.

Constructor & Destructor Documentation

◆ CIcomputationKernel()

template<typename FE_TYPE >
geos::CIcomputationKernel< FE_TYPE >::CIcomputationKernel ( FE_TYPE const &  finiteElementSpace,
NodeManager const &  nodeManager,
CellElementSubRegion const &  elementSubRegion,
EmbeddedSurfaceSubRegion embeddedSurfSubRegion 
)
inline

Construct a new CIcomputationKernel object.

Parameters
finiteElementSpacethe finite element space
nodeManagerthe nodeManager
elementSubRegionthe element subRegion
embeddedSurfSubRegionthe embeddedSurfaceSubRegion

Definition at line 52 of file CIcomputationKernel.hpp.

Member Function Documentation

◆ computeDistance()

template<typename FE_TYPE >
GEOS_HOST_DEVICE real64 geos::CIcomputationKernel< FE_TYPE >::computeDistance ( localIndex const  k,
real64 const (&)  point[3] 
) const
inline

computes the distance between a point inside the element and the cut surface k.

Parameters
kthe index of the embedded surface
pointthe coordinates of a point inside the cell element
Returns
the distance

Definition at line 158 of file CIcomputationKernel.hpp.

◆ launchCIComputationKernel()

template<typename FE_TYPE >
template<typename POLICY , typename KERNEL_TYPE >
static void geos::CIcomputationKernel< FE_TYPE >::launchCIComputationKernel ( KERNEL_TYPE &  kernelComponent)
inlinestatic

launch of CI calculation

Template Parameters
POLICYthe exectution policy
KERNEL_TYPEthe type of kernel
Parameters
kernelComponentthe kernel object

Definition at line 106 of file CIcomputationKernel.hpp.

◆ samplingPointCoord()

template<typename FE_TYPE >
GEOS_HOST_DEVICE void geos::CIcomputationKernel< FE_TYPE >::samplingPointCoord ( integer const  np,
StackVariables stack 
) const
inline

computes coordinates of the sampling point in the physical space.

Parameters
npsampling point linear index
stackstack variables

Definition at line 175 of file CIcomputationKernel.hpp.

◆ setConnectivityIndex()

template<typename FE_TYPE >
GEOS_HOST_DEVICE void geos::CIcomputationKernel< FE_TYPE >::setConnectivityIndex ( localIndex const  k,
real64 const  averageDistance 
) const
inline

Set the Connectivity Index.

Parameters
kembedded surface element index
averageDistancethe average distance

Definition at line 205 of file CIcomputationKernel.hpp.

◆ setup()

template<typename FE_TYPE >
GEOS_HOST_DEVICE void geos::CIcomputationKernel< FE_TYPE >::setup ( localIndex const  k,
StackVariables stack 
) const
inline

set up the kernel object by copying global values in the stack.

Parameters
kembedded surface index.
stackstack variables

Definition at line 136 of file CIcomputationKernel.hpp.


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