GEOSX
|
Implements kernels for solving the solid part of the fixed-stress thermoporomechanics problem. More...
#include <FixedStressThermoPoromechanics.hpp>
Classes | |
class | StackVariables |
Kernel variables allocated on the stack. More... | |
Public Types | |
using | Base = finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > |
Alias for the base class;. | |
Public Types inherited from geos::finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > | |
using | Base = KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP > |
Alias for the base class. (i.e. geos::finiteElement::KernelBase) | |
Public Member Functions | |
FixedStressThermoPoromechanics (NodeManager const &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, localIndex const targetRegionIndex, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, CONSTITUTIVE_TYPE &inputConstitutiveType, arrayView1d< globalIndex const > const inputDofNumber, globalIndex const rankOffset, CRSMatrixView< real64, globalIndex const > const inputMatrix, arrayView1d< real64 > const inputRhs, real64 const inputDt, real64 const (&inputGravityVector)[3]) | |
Constructor. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Copy global values from primary field to a local stack array. More... | |
GEOS_HOST_DEVICE void | quadraturePointKernel (localIndex const k, localIndex const q, StackVariables &stack) const |
Performs a state update at a quadrature point. More... | |
GEOS_HOST_DEVICE GEOS_FORCE_INLINE real64 | complete (localIndex const k, StackVariables &stack) const |
Performs the complete phase for the kernel. More... | |
Public Member Functions inherited from geos::finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > | |
ImplicitKernelBase (NodeManager const &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, localIndex const targetRegionIndex, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, CONSTITUTIVE_TYPE &inputConstitutiveType, arrayView1d< globalIndex const > const &inputDofNumber, globalIndex const rankOffset, CRSMatrixView< real64, globalIndex const > const &inputMatrix, arrayView1d< real64 > const &inputRhs, real64 const inputDt) | |
Constructor. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. More... | |
Public Member Functions inherited from geos::finiteElement::KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP > | |
KernelBase (SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, CONSTITUTIVE_TYPE &inputConstitutiveType) | |
Constructor. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. More... | |
GEOS_HOST_DEVICE GEOS_FORCE_INLINE void | quadraturePointKernel (localIndex const k, localIndex const q, StackVariables &stack) const |
Performs a state update at a quadrature point. More... | |
GEOS_HOST_DEVICE real64 | complete (localIndex const k, StackVariables &stack) const |
Performs the complete phase for the kernel. More... | |
Static Public Member Functions | |
template<typename POLICY , typename KERNEL_TYPE > | |
static real64 | kernelLaunch (localIndex const numElems, KERNEL_TYPE const &kernelComponent) |
Kernel Launcher. More... | |
Static Public Member Functions inherited from geos::finiteElement::KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP > | |
template<typename POLICY , typename KERNEL_TYPE > | |
static real64 | kernelLaunch (localIndex const numElems, KERNEL_TYPE const &kernelComponent) |
Kernel Launcher. More... | |
Static Public Attributes | |
static constexpr int | numNodesPerElem = Base::maxNumTestSupportPointsPerElem |
Static Public Attributes inherited from geos::finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > | |
static constexpr int | maxNumTestSupportPointsPerElem |
static constexpr int | maxNumTrialSupportPointsPerElem |
static constexpr int | numDofPerTestSupportPoint |
static constexpr int | numDofPerTrialSupportPoint |
Static Public Attributes inherited from geos::finiteElement::KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP > | |
static constexpr int | maxNumTestSupportPointsPerElem = FE_TYPE::maxSupportPoints |
static constexpr int | maxNumTrialSupportPointsPerElem = FE_TYPE::maxSupportPoints |
static constexpr int | numDofPerTestSupportPoint = NUM_DOF_PER_TEST_SP |
static constexpr int | numDofPerTrialSupportPoint = NUM_DOF_PER_TRIAL_SP |
static constexpr int | numQuadraturePointsPerElem = FE_TYPE::numQuadraturePoints |
Compile time value for the number of quadrature points per element. | |
Protected Member Functions | |
GEOS_HOST_DEVICE GEOS_FORCE_INLINE real64 | computeStabilizationScaling (localIndex const k) const |
Get a parameter representative of the stiffness, used as physical scaling for the stabilization matrix. More... | |
Protected Attributes | |
const arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > | m_X |
The array containing the nodal position array. | |
const arrayView2d< real64 const, nodes::TOTAL_DISPLACEMENT_USD > | m_disp |
The rank-global displacement array. | |
const arrayView2d< real64 const, nodes::INCR_DISPLACEMENT_USD > | m_uhat |
The rank-global incremental displacement array. | |
const real64 | m_gravityVector [3] |
The gravity vector. | |
const arrayView2d< real64 const > | m_bulkDensity |
The rank global bulk density. | |
const arrayView1d< real64 const > | m_pressure |
The rank-global fluid pressure arrays. | |
const arrayView1d< real64 const > | m_pressure_n |
const arrayView1d< real64 const > | m_initialTemperature |
The rank-global initial temperature array. | |
const arrayView1d< real64 const > | m_temperature |
The rank-global temperature arrays. | |
const arrayView1d< real64 const > | m_temperature_n |
Protected Attributes inherited from geos::finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > | |
const arrayView1d< globalIndex const > | m_dofNumber |
The global degree of freedom number. | |
const globalIndex | m_dofRankOffset |
The global rank offset. | |
const CRSMatrixView< real64, globalIndex const > | m_matrix |
The global Jacobian matrix. | |
const arrayView1d< real64 > | m_rhs |
The global residaul vector. | |
FE_TYPE::template MeshData< SUBREGION_TYPE > | m_meshData |
Data structure containing mesh data used to setup the finite element. | |
const real64 | m_dt |
time increment | |
Protected Attributes inherited from geos::finiteElement::KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP > | |
const traits::ViewTypeConst< typename SUBREGION_TYPE::NodeMapType::base_type > | m_elemsToNodes |
The element to nodes map. | |
const arrayView1d< integer const > | m_elemGhostRank |
The element ghost rank array. | |
const CONSTITUTIVE_TYPE::KernelWrapper | m_constitutiveUpdate |
const FE_TYPE & | m_finiteElementSpace |
Additional Inherited Members | |
Public Attributes inherited from geos::finiteElement::ImplicitKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > | |
const traits::ViewTypeConst< typename SUBREGION_TYPE::NodeMapType::base_type > | m_elemsToNodes |
The element to nodes map. | |
const FE_TYPE & | m_finiteElementSpace |
Implements kernels for solving the solid part of the fixed-stress thermoporomechanics problem.
Define the base interface for implicit finite element kernels. Define the base interface for finite element kernels.
SUBREGION_TYPE | The type of subregion that the kernel will act on. |
CONSTITUTIVE_TYPE | The type of constitutive model present in the subregion. |
NUM_TEST_SUPPORT_POINTS_PER_ELEM | The number of test space support points per element. |
NUM_TRIAL_SUPPORT_POINTS_PER_ELEM | The number of trial space support points per element. |
NUM_DOF_PER_TEST_SP | The number of DOF per test support point. |
NUM_DOF_PER_TRIAL_SP | The number of DOF per trial support point. |
KernelBase defines an interface for implementing finite element kernels that will be callable by the family of kernel launch functions. Specific physics kernels may or may not derive from KernelBase, but must follow the same interface in order to be callable from the generic launching functions.
The template parameters of KernelBase should be duplicated as part of the interface, EXCEPT for NUM_DOF_PER_TEST_SP
and NUM_DOF_PER_TRIAL_SP
. These values should be set internally by the physics solver since each physics discretization will have a constant intrinsic value for these quantities. For example, when solving or the heat equation with scalar temperature as the primary variable at the support point, these will have a value of 1. In contrast, when solving a solid mechanics problem, with vector displacement as the primary variable at the support point, these will have a value of 3. Note that the interface provided by geos::finiteElement::RegionBasedKernelApplication will construct a kernel assuming only the first 4 template arguments.
Provides a common base for kernels that require the assembly of a system of equations. The types required to assemble the system, such as DOF information, the Matrix and Vector object, etc., are declared and set here.
NUM_NODES_PER_ELEM | The number of nodes per element for the SUBREGION_TYPE . |
UNUSED | An unused parameter since we are assuming that the test and trial space have the same number of support points. |
Implements the KernelBase interface functions required for using the effective stress for the integration of the stress divergence. This is templated on one of the "finite element kernel application" functions such as geos::finiteElement::RegionBasedKernelApplication.
Definition at line 47 of file FixedStressThermoPoromechanics.hpp.
geos::solidMechanicsLagrangianFEMKernels::FixedStressThermoPoromechanics< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::FixedStressThermoPoromechanics | ( | NodeManager const & | nodeManager, |
EdgeManager const & | edgeManager, | ||
FaceManager const & | faceManager, | ||
localIndex const | targetRegionIndex, | ||
SUBREGION_TYPE const & | elementSubRegion, | ||
FE_TYPE const & | finiteElementSpace, | ||
CONSTITUTIVE_TYPE & | inputConstitutiveType, | ||
arrayView1d< globalIndex const > const | inputDofNumber, | ||
globalIndex const | rankOffset, | ||
CRSMatrixView< real64, globalIndex const > const | inputMatrix, | ||
arrayView1d< real64 > const | inputRhs, | ||
real64 const | inputDt, | ||
real64 const (&) | inputGravityVector[3] | ||
) |
Constructor.
Constructor.
nodeManager | Reference to the NodeManager object. |
edgeManager | Reference to the EdgeManager object. |
faceManager | Reference to the FaceManager object. |
targetRegionIndex | Index of the region the subregion belongs to. |
inputDofNumber | The dof number for the primary field. |
rankOffset | dof index offset of current rank |
inputMatrix | Reference to the Jacobian matrix. |
inputRhs | Reference to the RHS vector. |
inputDt | The timestep for the physics update. |
Constructor.
elementSubRegion | Reference to the SUBREGION_TYPE(class template parameter) object. |
inputConstitutiveType | The constitutive object. |
finiteElementSpace | Placeholder for the finite element space object, which currently doesn't do much. |
inputGravityVector | The gravity vector. |
Definition at line 38 of file FixedStressThermoPoromechanics_impl.hpp.
GEOS_HOST_DEVICE GEOS_FORCE_INLINE real64 geos::solidMechanicsLagrangianFEMKernels::FixedStressThermoPoromechanics< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::complete | ( | localIndex const | k, |
StackVariables & | stack | ||
) | const |
Performs the complete phase for the kernel.
STACK_VARIABLE_TYPE | The type of StackVariable that holds the stack variables. This is most likely a defined in a type that derives from KernelBase. |
k | The element index. |
stack | The StackVariable object that hold the stack variables. |
The operations typically found in complete are the mapping of the local Jacobian and Residual into the global Jacobian and Residual.
Definition at line 183 of file FixedStressThermoPoromechanics_impl.hpp.
|
inlineprotected |
Get a parameter representative of the stiffness, used as physical scaling for the stabilization matrix.
[in] | k | Element index. |
Definition at line 213 of file FixedStressThermoPoromechanics.hpp.
|
static |
Kernel Launcher.
POLICY | The RAJA policy to use for the launch. |
NUM_QUADRATURE_POINTS | The number of quadrature points per element. |
KERNEL_TYPE | The type of Kernel to execute. |
numElems | The number of elements to process in this launch. |
kernelComponent | The instantiation of KERNEL_TYPE to execute. |
This is a generic launching function for all of the finite element kernels that follow the interface set by KernelBase.
Definition at line 219 of file FixedStressThermoPoromechanics_impl.hpp.
GEOS_HOST_DEVICE GEOS_FORCE_INLINE void geos::solidMechanicsLagrangianFEMKernels::FixedStressThermoPoromechanics< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::quadraturePointKernel | ( | localIndex const | k, |
localIndex const | q, | ||
StackVariables & | stack | ||
) | const |
Performs a state update at a quadrature point.
STACK_VARIABLE_TYPE | The type of StackVariable that holds the stack variables. This is most likely a defined in a type that derives from KernelBase. |
k | The element index. |
q | The quadrature point index. |
stack | The StackVariable object that hold the stack variables. |
The operations found here are the mapping from the support points to the quadrature point, calculation of gradients, etc. From this data the state of the constitutive model is updated if required by the physics package. For solid mechanics kernels, the strain increment is calculated, and the constitutive update is called. In addition, the constitutive stiffness stack variable is filled by the constitutive model.
Definition at line 121 of file FixedStressThermoPoromechanics_impl.hpp.
GEOS_HOST_DEVICE GEOS_FORCE_INLINE void geos::solidMechanicsLagrangianFEMKernels::FixedStressThermoPoromechanics< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::setup | ( | localIndex const | k, |
StackVariables & | stack | ||
) | const |
Copy global values from primary field to a local stack array.
Performs the setup phase for the kernel.
STACK_VARIABLE_TYPE | The type of StackVariable that holds the stack variables. This is most likely a defined in a type that derives from KernelBase. |
k | The element index. |
stack | The StackVariable object that hold the stack variables. |
The operations typically found in setup are thing such as the collection of global data into local stack storage.
In this implementation, the element local Row and Column DOF stack arrays are filled for when we fill the global matrix and rhs.
For the FixedStressThermoPoromechanics implementation, global values from the displacement, incremental displacement, and degree of freedom numbers are placed into element local stack storage.
Definition at line 81 of file FixedStressThermoPoromechanics_impl.hpp.
|
staticconstexpr |
Maximum number of nodes per element, which is equal to the maxNumTestSupportPointPerElem and maxNumTrialSupportPointPerElem by definition. When the FE_TYPE is not a Virtual Element, this will be the actual number of nodes per element.
Definition at line 65 of file FixedStressThermoPoromechanics.hpp.