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.
steady_viscous_torque_law.h
Go to the documentation of this file.
1 // Author: Guillermo Casas (gcasas@cimne.upc.edu)
2 // Date: February 2019
3 
4 #if !defined(SDEM_STEADY_VISCOUS_TORQUE_LAW_H_INCLUDED)
5 #define SDEM_STEADY_VISCOUS_TORQUE_LAW_H_INCLUDED
6 
7 #include <string>
8 #include <iostream>
9 #include "includes/define.h"
10 #include "includes/serializer.h"
11 #include "includes/model_part.h"
12 #include "containers/flags.h"
13 
14 namespace Kratos {
15 
16  class KRATOS_API(SWIMMING_DEM_APPLICATION) SteadyViscousTorqueLaw : public Flags {
17 
18  public:
19  typedef Node NodeType;
21 
23 
25 
27 
28  virtual SteadyViscousTorqueLaw::Pointer Clone() const;
29 
30  virtual void Initialize(const ProcessInfo& r_process_info);
31 
32  void SetSteadyViscousTorqueLawInProperties(Properties::Pointer pProp) const;
33 
34  virtual std::string GetTypeOfLaw();
35 
36  virtual void ComputeMoment(Geometry<Node >& r_geometry,
37  const double reynolds_number,
38  double particle_radius,
39  double fluid_density,
40  double fluid_kinematic_viscosity,
41  array_1d<double, 3>& minus_slip_velocity,
42  array_1d<double, 3>& rotation_induced_lift,
43  const ProcessInfo& r_current_process_info){}
44 
45 
46  protected:
47  double ComputeParticleRotationReynoldsNumber(const double norm_of_slip_rot,
48  const double particle_radius,
49  const double fluid_kinematic_viscosity);
50 
51  double ComputeNondimensionalRotVelocity(const double norm_of_slip_vel,
52  const double norm_of_slip_rot,
53  const double particle_radius,
54  const double fluid_kinematic_viscosity);
55  private:
56 
57  friend class Serializer;
58 
59  virtual void save(Serializer& rSerializer) const override {
61  }
62 
63  virtual void load(Serializer& rSerializer) override {
65  }
66 
67  }; //class SteadyViscousTorqueLaw
68 
69 KRATOS_DEFINE_APPLICATION_VARIABLE(SWIMMING_DEM_APPLICATION, SteadyViscousTorqueLaw::Pointer, SDEM_STEADY_VISCOUS_TORQUE_LAW_POINTER)
70 
71 } // Namespace Kratos
72 
73 #endif /* SDEM_STEADY_VISCOUS_TORQUE_LAW_H_INCLUDED defined */
Definition: flags.h:58
Geometry base class.
Definition: geometry.h:71
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Definition: steady_viscous_torque_law.h:16
KRATOS_CLASS_POINTER_DEFINITION(SteadyViscousTorqueLaw)
virtual void ComputeMoment(Geometry< Node > &r_geometry, const double reynolds_number, double particle_radius, double fluid_density, double fluid_kinematic_viscosity, array_1d< double, 3 > &minus_slip_velocity, array_1d< double, 3 > &rotation_induced_lift, const ProcessInfo &r_current_process_info)
Definition: steady_viscous_torque_law.h:36
~SteadyViscousTorqueLaw()
Definition: steady_viscous_torque_law.h:26
SteadyViscousTorqueLaw()
Definition: steady_viscous_torque_law.h:22
SteadyViscousTorqueLaw(Parameters r_parameters)
Definition: steady_viscous_torque_law.h:24
Node NodeType
Definition: steady_viscous_torque_law.h:19
#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
KRATOS_DEFINE_APPLICATION_VARIABLE(CHIMERA_APPLICATION, double, CHIMERA_DISTANCE)
def load(f)
Definition: ode_solve.py:307