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.
chien_drag_law.h
Go to the documentation of this file.
1 #if !defined(SDEM_CHIEN_DRAG_LAW_H_INCLUDED)
2 #define SDEM_CHIEN_DRAG_LAW_H_INCLUDED
3 
4 #include "stokes_drag_law.h"
5 
6 namespace Kratos {
7 
8  class KRATOS_API(SWIMMING_DEM_APPLICATION) ChienDragLaw : public StokesDragLaw {
9 
10  public:
11  typedef Node NodeType;
13 
15 
16  ChienDragLaw(Parameters r_parameters): StokesDragLaw(r_parameters){}
17 
19 
20  DragLaw::Pointer Clone() const override;
21 
22  void Initialize(const ProcessInfo& r_process_info) override;
23 
24  std::string GetTypeOfLaw() override;
25 
26  void ComputeForce(SphericParticle* r_geometry,
27  const double reynolds_number,
28  double particle_radius,
29  double fluid_density,
30  double fluid_kinematic_viscosity,
31  array_1d<double, 3>& minus_slip_velocity,
32  array_1d<double, 3>& drag_force,
33  const ProcessInfo& r_current_process_info) override;
34 
35  private:
36 
37  friend class Serializer;
38 
39  virtual void save(Serializer& rSerializer) const override {
41  }
42 
43  virtual void load(Serializer& rSerializer) override {
45  }
46 
47  }; //class ChienDragLaw
48 
49 } // Namespace Kratos
50 
51 #endif /* SDEM_CHIEN_DRAG_LAW_H_INCLUDED defined */
Definition: chien_drag_law.h:8
ChienDragLaw()
Definition: chien_drag_law.h:14
~ChienDragLaw()
Definition: chien_drag_law.h:18
ChienDragLaw(Parameters r_parameters)
Definition: chien_drag_law.h:16
KRATOS_CLASS_POINTER_DEFINITION(ChienDragLaw)
Node NodeType
Definition: chien_drag_law.h:11
Definition: drag_law.h:17
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: spheric_particle.h:31
Definition: stokes_drag_law.h:12
#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
def load(f)
Definition: ode_solve.py:307