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.
bentonite_force_based_inlet.h
Go to the documentation of this file.
1 // Author: Guillermo Casas (gcasas@cimne.upc.edu)
2 
3 #if !defined(SWIMMING_DEM_BENTONITE_FORCE_BASED_INLET_H)
4 #define SWIMMING_DEM_BENTONITE_FORCE_BASED_INLET_H
5 
6 // Project includes
9 
10 namespace Kratos {
11  class KRATOS_API(SWIMMING_DEM_APPLICATION) Bentonite_Force_Based_Inlet: public DEM_Force_Based_Inlet
12  {
13  public:
14 
16 
22  typedef ModelPart::ElementsContainerType::iterator ElementIteratorType;
23 
25  Bentonite_Force_Based_Inlet(ModelPart& inlet_modelpart, array_1d<double, 3> injection_force, const int seed=42);
26 
29 
30  void InitializeStep(ModelPart& r_receiver_model_part) override;
31 
32  private:
33  double mCationConcentration;
34  array_1d<double, 3> mInjectionForce;
35  void FixInjectionConditions(Element* p_element, Element* p_injector_element) override;
36  void FixInjectorConditions(Element* p_element) override;
37  array_1d<double, 3> GetInjectionForce(Element* p_element) override;
38  void UpdateInjectionForce(Element *p_element);
39  };
40 }// namespace Kratos.
41 
42 #endif // SWIMMING_DEM_BENTONITE_FORCE_BASED_INLET_H defined
Definition: bentonite_force_based_inlet.h:12
virtual ~Bentonite_Force_Based_Inlet()
Destructor.
Definition: bentonite_force_based_inlet.h:28
GlobalPointersVector< Element > ParticleWeakVectorType
Definition: bentonite_force_based_inlet.h:20
ModelPart::ElementsContainerType ElementsArrayType
Definition: bentonite_force_based_inlet.h:21
DEM_Force_Based_Inlet BaseClass
Definition: bentonite_force_based_inlet.h:18
ModelPart::ElementsContainerType::iterator ElementIteratorType
Definition: bentonite_force_based_inlet.h:22
GlobalPointersVector< Element >::iterator ParticleWeakIteratorType
Definition: bentonite_force_based_inlet.h:19
KRATOS_CLASS_POINTER_DEFINITION(Bentonite_Force_Based_Inlet)
NanoParticle * NanoParticlePointerType
Definition: bentonite_force_based_inlet.h:17
Definition: force_based_inlet.h:12
Base class for all Elements.
Definition: element.h:60
This class is a vector which stores global pointers.
Definition: global_pointers_vector.h:61
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
Definition: nanoparticle.h:19
int seed
Definition: GenerateWind.py:138
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21