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.
symplectic_euler_old_velocity_scheme.h
Go to the documentation of this file.
1 //
2 // Author: Guillermo Casas gcasas@cimne.upc.edu
3 //
4 
5 #if !defined(KRATOS_SYMPLECTIC_EULER_OLD_VELOCITY_SCHEME_H_INCLUDED )
6 #define KRATOS_SYMPLECTIC_EULER_OLD_VELOCITY_SCHEME_H_INCLUDED
7 
8 // System includes
9 #include <string>
10 #include <iostream>
11 #include <cfloat>
12 
13 // Project includes
15 #include "includes/define.h"
16 #include "utilities/openmp_utils.h"
17 #include "includes/model_part.h"
19 #include "utilities/quaternion.h"
20 
21 namespace Kratos {
22 
23  class KRATOS_API(SWIMMING_DEM_APPLICATION) SymplecticEulerOldVelocityScheme : public SymplecticEulerScheme {
24  public:
25 
27 
30 
33 
36 
37  void UpdateTranslationalVariables(
38  int StepFlag,
39  Node& i,
41  array_1d<double, 3 >& displ,
42  array_1d<double, 3 >& delta_displ,
44  const array_1d<double, 3 >& initial_coor,
45  const array_1d<double, 3 >& force,
46  const double force_reduction_factor,
47  const double mass,
48  const double delta_t,
49  const bool Fix_vel[3]) override;
50 
52 
53  virtual std::string Info() const override {
54  std::stringstream buffer;
55  buffer << "SymplecticEulerOldVelocityScheme";
56  return buffer.str();
57  }
58 
60 
61  virtual void PrintInfo(std::ostream& rOStream) const override {
62  rOStream << "SymplecticEulerOldVelocityScheme";
63  }
64 
66 
67  virtual void PrintData(std::ostream& rOStream) const override{
68  }
69 
70 
71  protected:
72 
73 
74  private:
75 
77 
79  return *this;
80  }
81 
83 
84  SymplecticEulerOldVelocityScheme(SymplecticEulerOldVelocityScheme const& rOther) {
85  *this = rOther;
86  }
87 
89 
90  }; // Class SymplecticEulerOldVelocityScheme
91 
92  inline std::istream& operator>>(std::istream& rIStream,
94  return rIStream;
95  }
96 
97  inline std::ostream& operator<<(std::ostream& rOStream,
98  const SymplecticEulerOldVelocityScheme& rThis) {
99  rThis.PrintInfo(rOStream);
100  rOStream << std::endl;
101  rThis.PrintData(rOStream);
102 
103  return rOStream;
104  }
105 
106 } // namespace Kratos.
107 
108 #endif // KRATOS_SYMPLECTIC_EULER_OLD_VELOCITY_SCHEME_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
This class defines the node.
Definition: node.h:65
Definition: symplectic_euler_old_velocity_scheme.h:23
KRATOS_CLASS_POINTER_DEFINITION(SymplecticEulerOldVelocityScheme)
Pointer definition of SymplecticEulerOldVelocityScheme.
virtual std::string Info() const override
Turn back information as a string.
Definition: symplectic_euler_old_velocity_scheme.h:53
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: symplectic_euler_old_velocity_scheme.h:61
virtual ~SymplecticEulerOldVelocityScheme()
Destructor.
Definition: symplectic_euler_old_velocity_scheme.h:35
ModelPart::NodesContainerType NodesArrayType
Definition: symplectic_euler_old_velocity_scheme.h:26
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: symplectic_euler_old_velocity_scheme.h:67
SymplecticEulerOldVelocityScheme()
Default constructor.
Definition: symplectic_euler_old_velocity_scheme.h:32
Definition: symplectic_euler_scheme.h:23
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
vel
Definition: pure_conduction.py:76
float delta_t
Definition: rotatingcone_PureConvectionBenchmarking.py:129
integer i
Definition: TensorModule.f:17