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.
stokes_drag_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_STOKES_DRAG_LAW_H_INCLUDED)
5 #define SDEM_STOKES_DRAG_LAW_H_INCLUDED
6 
7 #include "drag_law.h"
8 #include "../DEMApplication/custom_elements/spheric_particle.h"
9 
10 namespace Kratos {
11 
12  class KRATOS_API(SWIMMING_DEM_APPLICATION) StokesDragLaw : public DragLaw {
13 
14  public:
15  typedef Node NodeType;
17 
19 
20  StokesDragLaw(Parameters r_parameters){}
21 
23 
24  DragLaw::Pointer Clone() const override;
25 
26  void Initialize(const ProcessInfo& r_process_info) override;
27 
28  std::string GetTypeOfLaw() override;
29 
30  void ComputeForce(SphericParticle* p_particle,
31  const double reynolds_number,
32  double particle_radius,
33  double fluid_density,
34  double fluid_kinematic_viscosity,
35  array_1d<double, 3>& minus_slip_velocity,
36  array_1d<double, 3>& drag_force,
37  const ProcessInfo& r_current_process_info) override;
38 
39  private:
40 
41  friend class Serializer;
42 
43  virtual void save(Serializer& rSerializer) const override {
45  }
46 
47  virtual void load(Serializer& rSerializer) override {
49  }
50 
51  }; //class StokesDragLaw
52 
53 } // Namespace Kratos
54 
55 #endif /* SDEM_STOKES_DRAG_LAW_H_INCLUDED defined */
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
KRATOS_CLASS_POINTER_DEFINITION(StokesDragLaw)
StokesDragLaw(Parameters r_parameters)
Definition: stokes_drag_law.h:20
~StokesDragLaw()
Definition: stokes_drag_law.h:22
StokesDragLaw()
Definition: stokes_drag_law.h:18
Node NodeType
Definition: stokes_drag_law.h:15
#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