KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
simo_step_rotation_method.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: November 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_SIMO_STEP_ROTATION_METHOD_H_INCLUDED)
11 #define KRATOS_SIMO_STEP_ROTATION_METHOD_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
24 
27 
31 
35 
39 
43 
44 
46 
49  template<class TVariableType, class TValueType>
50  class KRATOS_API(SOLID_MECHANICS_APPLICATION) SimoStepRotationMethod : public SimoStepMethod<TVariableType,TValueType>
51  {
52  public:
53 
56 
59 
61  typedef typename BaseType::Pointer BasePointerType;
62 
64  typedef typename BaseType::NodeType NodeType;
65 
68 
71 
72 
74 
78 
79 
82 
84  SimoStepRotationMethod(const TVariableType& rVariable) : DerivedType(rVariable) {}
85 
87  SimoStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative) {}
88 
90  SimoStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative, const TVariableType& rPrimaryVariable) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative,rPrimaryVariable) {}
91 
94 
97  {
98  return BasePointerType( new SimoStepRotationMethod(*this) );
99  }
100 
103 
107 
111 
112  // update
113  void Update(NodeType& rNode) override;
114 
118 
122 
126 
127 
129  std::string Info() const override
130  {
131  std::stringstream buffer;
132  buffer << "SimoStepRotationMethod";
133  return buffer.str();
134  }
135 
137  void PrintInfo(std::ostream& rOStream) const override
138  {
139  rOStream << "SimoStepRotationMethod";
140  }
141 
143  void PrintData(std::ostream& rOStream) const override
144  {
145  rOStream << "SimoStepRotationMethod Data";
146  }
147 
148 
152 
153 
155 
156  protected:
157 
160 
164 
168 
172 
176 
180 
184 
186 
187  private:
188 
191 
195 
199 
203 
207 
211  friend class Serializer;
212 
213  void save(Serializer& rSerializer) const override
214  {
216  };
217 
218  void load(Serializer& rSerializer) override
219  {
220  KRATOS_SERIALIZE_LOAD_BASE_CLASS( rSerializer, DerivedType )
221  };
222 
226 
230 
232 
233  }; // Class SimoStepRotationMethod
234 
236 
239 
240  template<>
242 
246 
247  template<class TVariableType, class TValueType>
248  inline std::istream & operator >> (std::istream & rIStream, SimoStepRotationMethod<TVariableType,TValueType>& rThis)
249  {
250  return rIStream;
251  }
252 
253  template<class TVariableType, class TValueType>
254  inline std::ostream & operator << (std::ostream & rOStream, const SimoStepRotationMethod<TVariableType,TValueType>& rThis)
255  {
256  return rOStream << rThis.Info();
257  }
258 
260 
262 
263 } // namespace Kratos.
264 
265 #endif // KRATOS_SIMO_STEP_ROTATION_METHOD_H_INCLUDED defined
BaseType::Pointer BasePointerType
BasePointerType.
Definition: bossak_step_method.hpp:61
Short class definition.
Definition: newmark_step_method.hpp:51
This class defines the node.
Definition: node.h:65
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: simo_step_method.hpp:51
Short class definition.
Definition: simo_step_rotation_method.hpp:51
std::string Info() const override
Turn back information as a string.
Definition: simo_step_rotation_method.hpp:129
SimoStepRotationMethod()
Default Constructor.
Definition: simo_step_rotation_method.hpp:81
TimeIntegrationMethod< TVariableType, TValueType > BaseType
BaseType.
Definition: simo_step_rotation_method.hpp:58
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: simo_step_rotation_method.hpp:143
~SimoStepRotationMethod() override
Destructor.
Definition: simo_step_rotation_method.hpp:102
BasePointerType Clone() override
Clone.
Definition: simo_step_rotation_method.hpp:96
SimoStepRotationMethod(SimoStepRotationMethod &rOther)
Copy Constructor.
Definition: simo_step_rotation_method.hpp:93
SimoStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative, const TVariableType &rPrimaryVariable)
Constructor.
Definition: simo_step_rotation_method.hpp:90
SimoStepRotationMethod(const TVariableType &rVariable)
Constructor.
Definition: simo_step_rotation_method.hpp:84
KRATOS_CLASS_POINTER_DEFINITION(SimoStepRotationMethod)
BaseType::NodeType NodeType
NodeType.
Definition: simo_step_rotation_method.hpp:64
BaseType::Pointer BasePointerType
BasePointerType.
Definition: simo_step_rotation_method.hpp:61
SimoStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative)
Constructor.
Definition: simo_step_rotation_method.hpp:87
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: simo_step_rotation_method.hpp:137
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: simo_step_rotation_method.hpp:67
SimoStepMethod< TVariableType, TValueType > DerivedType
DerivedType.
Definition: simo_step_rotation_method.hpp:70
Short class definition.
Definition: time_integration_method.hpp:55
const TVariableType * VariablePointer
KratosVariable or KratosVariableComponent.
Definition: time_integration_method.hpp:65
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307