GEOS
SolidMechanicsStateReset.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 TotalEnergies
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef SRC_CORECOMPONENTS_PHYSICSSOLVERS_SOLIDMECHANICS_SOLIDMECHANICSSTATERESET_HPP_
21 #define SRC_CORECOMPONENTS_PHYSICSSOLVERS_SOLIDMECHANICS_SOLIDMECHANICSSTATERESET_HPP_
22 
24 
25 namespace geos
26 {
27 
28 class SolidMechanicsLagrangianFEM;
29 
44 {
45  template< typename > friend class PoromechanicsInitialization;
46 
47 public:
48 
54  SolidMechanicsStateReset( const string & name,
55  Group * const parent );
56 
59 
61  static string catalogName() { return "SolidMechanicsStateReset"; }
62 
70  virtual bool execute( real64 const time_n,
71  real64 const dt,
72  integer const cycleNumber,
73  integer const eventCounter,
74  real64 const eventProgress,
75  DomainPartition & domain ) override;
76 
79 private:
80 
84  struct viewKeyStruct
85  {
87  constexpr static char const * solidSolverNameString() { return "solidSolverName"; }
89  constexpr static char const * resetDisplacementsString() { return "resetDisplacements"; }
91  constexpr static char const * disableInelasticityString() { return "disableInelasticity"; }
92  };
93 
94 
95  void postInputInitialization() override;
96 
98  string m_solidSolverName;
99 
101  SolidMechanicsLagrangianFEM * m_solidSolver;
102 
104  int m_resetDisplacements;
105 
107  int m_disableInelasticity;
108 };
109 
110 
111 } /* namespace geos */
112 
113 #endif /* SRC_CORECOMPONENTS_PHYSICSSOLVERS_SOLIDMECHANICS_SOLIDMECHANICSSTATERESET_HPP_ */
Partition of the decomposed physical domain. It also manages the connexion information to its neighbo...
SolidMechanicsStateReset(const string &name, Group *const parent)
Constructor for the state reset class.
~SolidMechanicsStateReset() override
Destructor for the class.
static string catalogName()
Accessor for the catalog name.
virtual bool execute(real64 const time_n, real64 const dt, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, DomainPartition &domain) override
Main extension point of executable targets.
double real64
64-bit floating point type.
Definition: DataTypes.hpp:99
std::int32_t integer
Signed integer type.
Definition: DataTypes.hpp:82