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.
emc_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_EMC_STEP_ROTATION_METHOD_H_INCLUDED)
11 #define KRATOS_EMC_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) EmcStepRotationMethod : public EmcStepMethod<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  EmcStepRotationMethod(const TVariableType& rVariable) : DerivedType(rVariable) {}
85 
87  EmcStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative) {}
88 
90  EmcStepRotationMethod(const TVariableType& rVariable, const TVariableType& rFirstDerivative, const TVariableType& rSecondDerivative, const TVariableType& rPrimaryVariable) : DerivedType(rVariable,rFirstDerivative,rSecondDerivative,rPrimaryVariable) {}
91 
94 
97  {
98  return BasePointerType( new EmcStepRotationMethod(*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 << "EmcStepRotationMethod";
133  return buffer.str();
134  }
135 
137  void PrintInfo(std::ostream& rOStream) const override
138  {
139  rOStream << "EmcStepRotationMethod";
140  }
141 
143  void PrintData(std::ostream& rOStream) const override
144  {
145  rOStream << "EmcStepRotationMethod 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 EmcStepRotationMethod
234 
236 
239 
240  template<>
242 
246 
247  template<class TVariableType, class TValueType>
248  inline std::istream & operator >> (std::istream & rIStream, EmcStepRotationMethod<TVariableType,TValueType>& rThis)
249  {
250  return rIStream;
251  }
252 
253  template<class TVariableType, class TValueType>
254  inline std::ostream & operator << (std::ostream & rOStream, const EmcStepRotationMethod<TVariableType,TValueType>& rThis)
255  {
256  return rOStream << rThis.Info();
257  }
258 
259 
261 
263 
264 } // namespace Kratos.
265 
266 #endif // KRATOS_EMC_STEP_ROTATION_METHOD_H_INCLUDED defined
Short class definition.
Definition: emc_step_method.hpp:51
BaseType::Pointer BasePointerType
BasePointerType.
Definition: emc_step_method.hpp:106
Short class definition.
Definition: emc_step_rotation_method.hpp:51
BaseType::VariablePointer VariablePointer
KratosVariable or KratosVariableComponent.
Definition: emc_step_rotation_method.hpp:67
std::string Info() const override
Turn back information as a string.
Definition: emc_step_rotation_method.hpp:129
EmcStepMethod< TVariableType, TValueType > DerivedType
DerivedType.
Definition: emc_step_rotation_method.hpp:70
BaseType::Pointer BasePointerType
BasePointerType.
Definition: emc_step_rotation_method.hpp:61
TimeIntegrationMethod< TVariableType, TValueType > BaseType
BaseType.
Definition: emc_step_rotation_method.hpp:58
~EmcStepRotationMethod() override
Destructor.
Definition: emc_step_rotation_method.hpp:102
KRATOS_CLASS_POINTER_DEFINITION(EmcStepRotationMethod)
EmcStepRotationMethod(const TVariableType &rVariable)
Constructor.
Definition: emc_step_rotation_method.hpp:84
BasePointerType Clone() override
Clone.
Definition: emc_step_rotation_method.hpp:96
EmcStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative)
Constructor.
Definition: emc_step_rotation_method.hpp:87
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: emc_step_rotation_method.hpp:137
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: emc_step_rotation_method.hpp:143
EmcStepRotationMethod(const TVariableType &rVariable, const TVariableType &rFirstDerivative, const TVariableType &rSecondDerivative, const TVariableType &rPrimaryVariable)
Constructor.
Definition: emc_step_rotation_method.hpp:90
EmcStepRotationMethod(EmcStepRotationMethod &rOther)
Copy Constructor.
Definition: emc_step_rotation_method.hpp:93
EmcStepRotationMethod()
Default Constructor.
Definition: emc_step_rotation_method.hpp:81
BaseType::NodeType NodeType
NodeType.
Definition: emc_step_rotation_method.hpp:64
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