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.
bonding_spheric_continuum_particle.h
Go to the documentation of this file.
1 //
2 // Project Name: ThermalD
3 // Last Modified by: $Author: Szymon Nosewicz and Miguel Angel Celigueta (maceli@cimne.upc.edu) $
4 // Date: $Date: 2015-02-01 $
5 // Revision: $Revision: 1.0.0.0 $
6 //
7 
8 #if !defined(KRATOS_BONDING_SPHERIC_CONTINUUM_PARTICLE_H_INCLUDED )
9 #define KRATOS_BONDING_SPHERIC_CONTINUUM_PARTICLE_H_INCLUDED
10 
11 // System includes
12 #include <string>
13 #include <iostream>
14 
15 // Project includes
16 #include "includes/define.h"
17 #include "spheric_particle.h"
20 #include "discrete_element.h"
21 
22 namespace Kratos {
23 
24 
25  class KRATOS_API(DEM_APPLICATION) BondingSphericContinuumParticle : public SphericContinuumParticle {
26 
28  public:
29 
32 
36 
37  typedef Node NodeType;
39  typedef std::size_t IndexType;
42 
44 
46  };
47 
48  BondingSphericContinuumParticle(IndexType NewId, GeometryType::Pointer pGeometry) : SphericContinuumParticle(NewId, pGeometry) {
49  }
50 
52  }
53 
54  BondingSphericContinuumParticle(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties) : SphericContinuumParticle(NewId, pGeometry, pProperties) {
55  }
56 
57  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override {
58  return Element::Pointer(new BondingSphericContinuumParticle(NewId, GetGeometry().Create(ThisNodes), pProperties));
59  }
60 
62 
64  };
65 
66  void UpdateContinuumNeighboursVector(const ProcessInfo& r_process_info) override;
67  bool NeighbourIsToBeBonded(const int nieghbour_id);
68  void ComputeForceWithNeighbourFinalOperations() override;
69 
70  private:
71  std::vector<int> mIdsOfElementsToBeBonded;
72 
73  };
74 } // namespace Kratos.
75 
76 #endif // KRATOS_BONDING_SPHERIC_CONTINUUM_PARTICLE_H_INCLUDED defined
77 
78 
Definition: bonding_spheric_continuum_particle.h:25
virtual ~BondingSphericContinuumParticle()
Destructor.
Definition: bonding_spheric_continuum_particle.h:63
Node NodeType
Definition: bonding_spheric_continuum_particle.h:37
Properties PropertiesType
Definition: bonding_spheric_continuum_particle.h:41
BondingSphericContinuumParticle(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: bonding_spheric_continuum_particle.h:54
GlobalPointersVector< Element > ParticleWeakVectorType
Definition: bonding_spheric_continuum_particle.h:33
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: bonding_spheric_continuum_particle.h:57
Geometry< Node > GeometryType
Definition: bonding_spheric_continuum_particle.h:40
GlobalPointersVector< Element >::iterator ParticleWeakIteratorType
Definition: bonding_spheric_continuum_particle.h:35
ParticleWeakVectorType::ptr_iterator ParticleWeakIteratorType_ptr
Definition: bonding_spheric_continuum_particle.h:34
BondingSphericContinuumParticle(IndexType NewId, NodesArrayType const &ThisNodes)
Definition: bonding_spheric_continuum_particle.h:51
std::size_t IndexType
Definition: bonding_spheric_continuum_particle.h:39
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: bonding_spheric_continuum_particle.h:38
BondingSphericContinuumParticle()
Default constructor.
Definition: bonding_spheric_continuum_particle.h:45
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(BondingSphericContinuumParticle)
Pointer definition of BondingSphericContinuumParticle.
BondingSphericContinuumParticle(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: bonding_spheric_continuum_particle.h:48
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
typename TContainerType::iterator ptr_iterator
Definition: global_pointers_vector.h:85
This class defines the node.
Definition: node.h:65
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
Definition: spheric_continuum_particle.h:26
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
BaseClass
Definition: altair_cube_mesher.py:3