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  template< typename > friend class SolidMechanicsInitialization;
47 
48 public:
49 
55  SolidMechanicsStateReset( const string & name,
56  Group * const parent );
57 
60 
62  static string catalogName() { return "SolidMechanicsStateReset"; }
63 
71  virtual bool execute( real64 const time_n,
72  real64 const dt,
73  integer const cycleNumber,
74  integer const eventCounter,
75  real64 const eventProgress,
76  DomainPartition & domain ) override;
77 
80 private:
81 
85  struct viewKeyStruct
86  {
88  constexpr static char const * solidSolverNameString() { return "solidSolverName"; }
90  constexpr static char const * resetDisplacementsString() { return "resetDisplacements"; }
92  constexpr static char const * disableInelasticityString() { return "disableInelasticity"; }
93  };
94 
95 
96  void postInputInitialization() override;
97 
99  string m_solidSolverName;
100 
102  SolidMechanicsLagrangianFEM * m_solidSolver;
103 
105  int m_resetDisplacements;
106 
108  int m_disableInelasticity;
109 };
110 
111 
112 } /* namespace geos */
113 
114 #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:98
int integer
Signed integer type.
Definition: DataTypes.hpp:81