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.
static_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_STATIC_STEP_ROTATION_METHOD_H_INCLUDED)
11 #define KRATOS_STATIC_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) StaticStepRotationMethod : public StaticStepMethod<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  StaticStepRotationMethod(const TVariableType& rVariable) : DerivedType(rVariable) {}
85 
87  StaticStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative) {}
88 
89 
91  StaticStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative, const TVariableType& rPrimaryVariable) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative,rPrimaryVariable) {}
92 
95 
98  {
99  return BasePointerType( new StaticStepRotationMethod(*this) );
100  }
101 
104 
108 
112 
113  // update
114  void Update(NodeType& rNode) override;
115 
119 
123 
127 
128 
130  std::string Info() const override
131  {
132  std::stringstream buffer;
133  buffer << "StaticStepRotationMethod";
134  return buffer.str();
135  }
136 
138  void PrintInfo(std::ostream& rOStream) const override
139  {
140  rOStream << "StaticStepRotationMethod";
141  }
142 
144  void PrintData(std::ostream& rOStream) const override
145  {
146  rOStream << "StaticStepRotationMethod Data";
147  }
148 
149 
153 
154 
156 
157  protected:
158 
161 
165 
169 
173 
177 
181 
185 
187 
188  private:
189 
192 
196 
200 
204 
208 
212  friend class Serializer;
213 
214  void save(Serializer& rSerializer) const override
215  {
217  };
218 
219  void load(Serializer& rSerializer) override
220  {
221  KRATOS_SERIALIZE_LOAD_BASE_CLASS( rSerializer, DerivedType )
222  };
223 
227 
231 
233 
234  }; // Class StaticStepRotationMethod
235 
237 
240 
241  template<>
243 
247 
248  template<class TVariableType, class TValueType>
249  inline std::istream & operator >> (std::istream & rIStream, StaticStepRotationMethod<TVariableType,TValueType>& rThis)
250  {
251  return rIStream;
252  }
253 
254  template<class TVariableType, class TValueType>
255  inline std::ostream & operator << (std::ostream & rOStream, const StaticStepRotationMethod<TVariableType,TValueType>& rThis)
256  {
257  return rOStream << rThis.Info();
258  }
259 
261 
263 
264 } // namespace Kratos.
265 
266 #endif // KRATOS_STATIC_STEP_ROTATION_METHOD_H_INCLUDED defined
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: static_method.hpp:51
BaseType::Pointer BasePointerType
BasePointerType.
Definition: static_method.hpp:61
Short class definition.
Definition: static_step_method.hpp:51
Short class definition.
Definition: static_step_rotation_method.hpp:51
StaticStepMethod< TVariableType, TValueType > DerivedType
DerivedType.
Definition: static_step_rotation_method.hpp:70
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: static_step_rotation_method.hpp:144
StaticStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative)
Constructor.
Definition: static_step_rotation_method.hpp:87
~StaticStepRotationMethod() override
Destructor.
Definition: static_step_rotation_method.hpp:103
BaseType::Pointer BasePointerType
BasePointerType.
Definition: static_step_rotation_method.hpp:61
StaticStepRotationMethod(const TVariableType &rVariable)
Constructor.
Definition: static_step_rotation_method.hpp:84
StaticStepRotationMethod()
Default Constructor.
Definition: static_step_rotation_method.hpp:81
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: static_step_rotation_method.hpp:67
KRATOS_CLASS_POINTER_DEFINITION(StaticStepRotationMethod)
std::string Info() const override
Turn back information as a string.
Definition: static_step_rotation_method.hpp:130
BaseType::NodeType NodeType
NodeType.
Definition: static_step_rotation_method.hpp:64
StaticStepRotationMethod(StaticStepRotationMethod &rOther)
Copy Constructor.
Definition: static_step_rotation_method.hpp:94
BasePointerType Clone() override
Clone.
Definition: static_step_rotation_method.hpp:97
StaticStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative, const TVariableType &rPrimaryVariable)
Constructor.
Definition: static_step_rotation_method.hpp:91
TimeIntegrationMethod< TVariableType, TValueType > BaseType
BaseType.
Definition: static_step_rotation_method.hpp:58
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: static_step_rotation_method.hpp:138
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