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.
newmark_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_NEWMARK_STEP_ROTATION_METHOD_H_INCLUDED)
11 #define KRATOS_NEWMARK_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) NewmarkStepRotationMethod : public NewmarkStepMethod<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  NewmarkStepRotationMethod(const TVariableType& rVariable) : DerivedType(rVariable) {}
85 
87  NewmarkStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative) {}
88 
90  NewmarkStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative, const TVariableType& rPrimaryVariable) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative,rPrimaryVariable) {}
91 
92 
95  :DerivedType(rOther)
96  {
97  }
98 
101  {
102  return BasePointerType( new NewmarkStepRotationMethod(*this) );
103  }
104 
107 
111 
115 
116 
117  // update
118  void Update(NodeType& rNode) override;
119 
123 
127 
131 
132 
134  std::string Info() const override
135  {
136  std::stringstream buffer;
137  buffer << "NewmarkStepRotationMethod";
138  return buffer.str();
139  }
140 
142  void PrintInfo(std::ostream& rOStream) const override
143  {
144  rOStream << "NewmarkStepRotationMethod";
145  }
146 
148  void PrintData(std::ostream& rOStream) const override
149  {
150  rOStream << "NewmarkStepRotationMethod Data";
151  }
152 
153 
157 
158 
160 
161  protected:
162 
165 
169 
173 
177 
181 
185 
189 
191 
192  private:
193 
196 
200 
204 
208 
212 
216  friend class Serializer;
217 
218  void save(Serializer& rSerializer) const override
219  {
221  };
222 
223  void load(Serializer& rSerializer) override
224  {
225  KRATOS_SERIALIZE_LOAD_BASE_CLASS( rSerializer, DerivedType )
226  };
227 
231 
235 
237 
238  }; // Class NewmarkStepRotationMethod
239 
241 
244 
245  template<>
247 
251 
252  template<class TVariableType, class TValueType>
253  inline std::istream & operator >> (std::istream & rIStream, NewmarkStepRotationMethod<TVariableType,TValueType>& rThis)
254  {
255  return rIStream;
256  }
257 
258  template<class TVariableType, class TValueType>
259  inline std::ostream & operator << (std::ostream & rOStream, const NewmarkStepRotationMethod<TVariableType,TValueType>& rThis)
260  {
261  return rOStream << rThis.Info();
262  }
263 
265 
267 
268 } // namespace Kratos.
269 
270 #endif // KRATOS_NEWMARK_STEP_ROTATION_METHOD_H_INCLUDED defined
Short class definition.
Definition: newmark_method.hpp:51
BaseType::Pointer BasePointerType
BasePointerType.
Definition: newmark_method.hpp:128
Short class definition.
Definition: newmark_step_method.hpp:51
Short class definition.
Definition: newmark_step_rotation_method.hpp:51
TimeIntegrationMethod< TVariableType, TValueType > BaseType
BaseType.
Definition: newmark_step_rotation_method.hpp:58
NewmarkStepRotationMethod(const TVariableType &rVariable)
Constructor.
Definition: newmark_step_rotation_method.hpp:84
NewmarkStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative, const TVariableType &rPrimaryVariable)
Constructor.
Definition: newmark_step_rotation_method.hpp:90
NewmarkStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative)
Constructor.
Definition: newmark_step_rotation_method.hpp:87
NewmarkStepRotationMethod()
Default Constructor.
Definition: newmark_step_rotation_method.hpp:81
BasePointerType Clone() override
Clone.
Definition: newmark_step_rotation_method.hpp:100
KRATOS_CLASS_POINTER_DEFINITION(NewmarkStepRotationMethod)
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: newmark_step_rotation_method.hpp:142
BaseType::Pointer BasePointerType
BasePointerType.
Definition: newmark_step_rotation_method.hpp:61
std::string Info() const override
Turn back information as a string.
Definition: newmark_step_rotation_method.hpp:134
NewmarkStepRotationMethod(NewmarkStepRotationMethod &rOther)
Copy Constructor.
Definition: newmark_step_rotation_method.hpp:94
BaseType::NodeType NodeType
NodeType.
Definition: newmark_step_rotation_method.hpp:64
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: newmark_step_rotation_method.hpp:148
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: newmark_step_rotation_method.hpp:67
NewmarkStepMethod< TVariableType, TValueType > DerivedType
DerivedType.
Definition: newmark_step_rotation_method.hpp:70
~NewmarkStepRotationMethod() override
Destructor.
Definition: newmark_step_rotation_method.hpp:106
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: 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