GEOSX
ExplicitFiniteStrain.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
19 #ifndef GEOS_PHYSICSSOLVERS_SOLIDMECHANICS_KERNELS_EXPLICITFINITESTRAIN_HPP_
20 #define GEOS_PHYSICSSOLVERS_SOLIDMECHANICS_KERNELS_EXPLICITFINITESTRAIN_HPP_
21 
22 #include "ExplicitSmallStrain.hpp"
23 #include "finiteElement/Kinematics.h"
24 
25 namespace geos
26 {
27 
28 namespace solidMechanicsLagrangianFEMKernels
29 {
30 
36 #define UPDATE_STRESS 2
37 
38 
47 template< typename SUBREGION_TYPE,
48  typename CONSTITUTIVE_TYPE,
49  typename FE_TYPE >
50 class ExplicitFiniteStrain : public ExplicitSmallStrain< SUBREGION_TYPE,
51  CONSTITUTIVE_TYPE,
52  FE_TYPE >
53 {
54 public:
56  using Base = ExplicitSmallStrain< SUBREGION_TYPE,
57  CONSTITUTIVE_TYPE,
58  FE_TYPE >;
59 
67 
68  using Base::m_dt;
69  using Base::m_u;
70  using Base::m_vel;
71  using Base::m_acc;
72 #if !defined(CALCFEMSHAPE)
73  using Base::m_X;
74 #endif
75 
79  ExplicitFiniteStrain( NodeManager & nodeManager,
80  EdgeManager const & edgeManager,
81  FaceManager const & faceManager,
82  localIndex const targetRegionIndex,
83  SUBREGION_TYPE const & elementSubRegion,
84  FE_TYPE const & finiteElementSpace,
85  CONSTITUTIVE_TYPE & inputConstitutiveType,
86  real64 const dt,
87  string const elementListName );
88 
89 
90  //*****************************************************************************
95  {
99 
100 
106  Base::StackVariables(),
107  uLocal{ {0.0} }
108  {}
109 
112  };
113  //*****************************************************************************
114 
115 
120  void setup( localIndex const k,
121  StackVariables & stack ) const;
122 
127  void quadraturePointKernel( localIndex const k,
128  localIndex const q,
129  StackVariables & stack ) const;
130 
131 
135  template< typename POLICY,
136  typename KERNEL_TYPE >
137  static real64
138  kernelLaunch( localIndex const numElems,
139  KERNEL_TYPE const & kernelComponent );
140 
141 
142 
143 };
146  real64,
147  string const >;
148 
149 } // namespace solidMechanicsLagrangianFEMKernels
150 
151 } // namespace geos
152 
153 #endif //GEOS_PHYSICSSOLVERS_SOLIDMECHANICS_KERNELS_EXPLICITFINITESTRAIN_HPP_
#define GEOS_HOST_DEVICE
Marks a host-device function.
Definition: GeosxMacros.hpp:48
This class provides an interface to ObjectManagerBase in order to manage edge data.
Definition: EdgeManager.hpp:42
The FaceManager class provides an interface to ObjectManagerBase in order to manage face data.
Definition: FaceManager.hpp:43
The NodeManager class provides an interface to ObjectManagerBase in order to manage node data.
Definition: NodeManager.hpp:45
traits::ViewTypeConst< typename SUBREGION_TYPE::NodeMapType::base_type > const m_elemsToNodes
The element to nodes map.
Definition: KernelBase.hpp:256
arrayView1d< integer const > const m_elemGhostRank
The element ghost rank array.
Definition: KernelBase.hpp:259
Used to forward arguments to a class that implements the KernelBase interface.
Definition: KernelBase.hpp:281
Implements kernels for solving the equations of motion using the explicit Newmark method under the fi...
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.
Implements kernels for solving the equations of motion using the explicit Newmark method under the sm...
arrayView2d< real64 const, nodes::VELOCITY_USD > const m_vel
The array containing the nodal velocity array.
arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const m_X
The array containing the nodal position array.
real64 const m_dt
The time increment for this time integration step.
arrayView2d< real64, nodes::ACCELERATION_USD > const m_acc
arrayView2d< real64 const, nodes::TOTAL_DISPLACEMENT_USD > const m_u
The array containing the nodal displacement array.
double real64
64-bit floating point type.
Definition: DataTypes.hpp:139
GEOSX_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).
Definition: DataTypes.hpp:125
real64 uLocal[numNodesPerElem][numDofPerTrialSupportPoint]
Local stack storage for nodal displacements.
real64 varLocal[numNodesPerElem][numDofPerTestSupportPoint]
C-array stack storage for element local primary variable values.
real64 fLocal[numNodesPerElem][numDofPerTrialSupportPoint]
C-array stack storage for the element local force.