GEOS
|
Implements kernels for solving the equations of motion using the explicit Newmark method under the finite strain assumption. More...
#include <ExplicitFiniteStrain.hpp>
Classes | |
struct | StackVariables |
Kernel variables allocated on the stack. More... | |
Public Types | |
using | Base = ExplicitSmallStrain< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE > |
Alias for the base class;. | |
![]() | |
using | Base = finiteElement::KernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, 3, 3 > |
Alias for the base class;. | |
Public Member Functions | |
ExplicitFiniteStrain (NodeManager &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, localIndex const targetRegionIndex, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, CONSTITUTIVE_TYPE &inputConstitutiveType, real64 const dt, string const elementListName) | |
Constructor. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. More... | |
GEOS_HOST_DEVICE void | quadraturePointKernel (localIndex const k, localIndex const q, StackVariables &stack) const |
Performs a state update at a quadrature point. More... | |
![]() | |
ExplicitSmallStrain (NodeManager &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, localIndex const targetRegionIndex, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, CONSTITUTIVE_TYPE &inputConstitutiveType, real64 const dt, string const elementListName) | |
Constructor. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. 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 real64 | complete (localIndex const k, StackVariables const &stack) const |
Performs the complete phase for the kernel. More... | |
![]() | |
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... | |
![]() | |
template<typename POLICY , typename KERNEL_TYPE > | |
static real64 | kernelLaunch (localIndex const numElems, KERNEL_TYPE const &kernelComponent) |
Kernel Launcher. More... | |
![]() | |
static real64 | kernelLaunch (localIndex const numElems, KERNEL_TYPE const &kernelComponent) |
Kernel Launcher. More... | |
Public Attributes | |
real64 const | m_dt |
The time increment for this time integration step. | |
arrayView2d< real64 const, nodes::TOTAL_DISPLACEMENT_USD > const | m_u |
The array containing the nodal displacement array. | |
arrayView2d< real64 const, nodes::VELOCITY_USD > const | m_vel |
The array containing the nodal velocity array. | |
arrayView2d< real64, nodes::ACCELERATION_USD > const | m_acc |
arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const | m_X |
The array containing the nodal position array. | |
Static Public Attributes | |
static constexpr int | numNodesPerElem |
![]() | |
static constexpr int | numNodesPerElem = Base::maxNumTestSupportPointsPerElem |
![]() | |
static constexpr int | maxNumTestSupportPointsPerElem |
static constexpr int | maxNumTrialSupportPointsPerElem |
static constexpr int | numDofPerTestSupportPoint |
static constexpr int | numDofPerTrialSupportPoint |
static constexpr int | numQuadraturePointsPerElem |
Compile time value for the number of quadrature points per element. | |
Additional Inherited Members | |
![]() | |
arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const | m_X |
The array containing the nodal position array. | |
arrayView2d< real64 const, nodes::TOTAL_DISPLACEMENT_USD > const | m_u |
The array containing the nodal displacement array. | |
arrayView2d< real64 const, nodes::VELOCITY_USD > const | m_vel |
The array containing the nodal velocity array. | |
arrayView2d< real64, nodes::ACCELERATION_USD > const | m_acc |
real64 const | m_dt |
The time increment for this time integration step. | |
SortedArrayView< localIndex const > const | m_elementList |
TODO: Consider moving to finite element kernel base? More... | |
![]() | |
traits::ViewTypeConst< typename SUBREGION_TYPE::NodeMapType::base_type > const | m_elemsToNodes |
The element to nodes map. | |
arrayView1d< integer const > const | m_elemGhostRank |
The element ghost rank array. | |
CONSTITUTIVE_TYPE::KernelWrapper const | m_constitutiveUpdate |
FE_TYPE const | m_finiteElementSpace |
Implements kernels for solving the equations of motion using the explicit Newmark method under the finite strain assumption.
Constructor. 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. |
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. |
dt | The time interval for the step. |
elementListName | The name of the entry that holds the list of elements to be processed during this kernel launch. |
Finite strain implementation.
Definition at line 51 of file ExplicitFiniteStrain.hpp.
geos::solidMechanicsLagrangianFEMKernels::ExplicitFiniteStrain< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::ExplicitFiniteStrain | ( | NodeManager & | nodeManager, |
EdgeManager const & | edgeManager, | ||
FaceManager const & | faceManager, | ||
localIndex const | targetRegionIndex, | ||
SUBREGION_TYPE const & | elementSubRegion, | ||
FE_TYPE const & | finiteElementSpace, | ||
CONSTITUTIVE_TYPE & | inputConstitutiveType, | ||
real64 const | dt, | ||
string const | elementListName | ||
) |
Constructor.
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. |
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. |
dt | The time interval for the step. |
elementListName | The name of the entry that holds the list of elements to be processed during this kernel launch. |
Definition at line 37 of file ExplicitFiniteStrain_impl.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.
Copy of the KernelBase::kernelLaunch function without the exclusion of ghost elements.
Definition at line 140 of file ExplicitFiniteStrain_impl.hpp.
|
inline |
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.
Calculates the shape function derivatives, and the strain tensor. Then calls the constitutive update, and also performs the integration of the stress divergence, rather than using the dedicated component function to allow for some variable reuse.
Definition at line 84 of file ExplicitFiniteStrain_impl.hpp.
|
inline |
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.
Copies the primary variable, and position into the local stack array.
Definition at line 62 of file ExplicitFiniteStrain_impl.hpp.
arrayView2d< real64, nodes::ACCELERATION_USD > const geos::solidMechanicsLagrangianFEMKernels::ExplicitSmallStrain< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE >::m_acc |
The array containing the nodal acceleration array, which is used to store the force.
Definition at line 204 of file ExplicitSmallStrain.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 80 of file ExplicitSmallStrain.hpp.