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.
polyhedron_skin_spheric_particle.h
Go to the documentation of this file.
1 //
2 // Author: Miguel Angel Celigueta maceli@cimne.upc.edu
3 //
4 
5 #if !defined(KRATOS_POLYHEDRON_SKIN_SPHERIC_PARTICLE_H_INCLUDED )
6 #define KRATOS_POLYHEDRON_SKIN_SPHERIC_PARTICLE_H_INCLUDED
7 
8 // System includes
9 
10 
11 // Project includes
12 #include "includes/define.h"
13 #include "spheric_particle.h"
14 
15 
16 namespace Kratos
17 {
18  class KRATOS_API(DEM_APPLICATION) PolyhedronSkinSphericParticle : public SphericParticle
19  {
20  public:
21 
24 
28 
30  PolyhedronSkinSphericParticle(IndexType NewId, GeometryType::Pointer pGeometry);
32  PolyhedronSkinSphericParticle(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
33 
34  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
35 
38 
39 
41  virtual std::string Info() const override
42  {
43  std::stringstream buffer;
44  buffer << "PolyhedronSkinSphericParticle" ;
45  return buffer.str();
46  }
47 
49  virtual void PrintInfo(std::ostream& rOStream) const override {rOStream << "PolyhedronSkinSphericParticle";}
50 
52  virtual void PrintData(std::ostream& rOStream) const override {}
53 
54 
55  protected:
56 
58 
59 
60  private:
61 
62  friend class Serializer;
63 
64  virtual void save(Serializer& rSerializer) const override
65  {
67  }
68 
69  virtual void load(Serializer& rSerializer) override
70  {
72  }
73 
74  /* Assignment operator
75  PolyhedronSkinSphericParticle& operator=(PolyhedronSkinSphericParticle const& rOther) { return *this; }
76  Copy constructor
77  PolyhedronSkinSphericParticle(PolyhedronSkinSphericParticle const& rOther) { *this = rOther; }
78  */
79 
80  }; // Class PolyhedronSkinSphericParticle
81 
83  inline std::istream& operator >> (std::istream& rIStream, PolyhedronSkinSphericParticle& rThis) {return rIStream;}
84 
86  inline std::ostream& operator << (std::ostream& rOStream, const PolyhedronSkinSphericParticle& rThis) {
87  rThis.PrintInfo(rOStream);
88  rOStream << std::endl;
89  rThis.PrintData(rOStream);
90  return rOStream;
91  }
92 } // namespace Kratos
93 
94 #endif // KRATOS_POLYHEDRON_SKIN_SPHERIC_PARTICLE_H_INCLUDED defined
std::size_t IndexType
Definition: flags.h:74
typename TContainerType::iterator ptr_iterator
Definition: global_pointers_vector.h:85
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
Definition: polyhedron_skin_spheric_particle.h:19
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PolyhedronSkinSphericParticle)
Pointer definition of PolyhedronSkinSphericParticle.
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: polyhedron_skin_spheric_particle.h:52
GlobalPointersVector< Element >::iterator ParticleWeakIteratorType
Definition: polyhedron_skin_spheric_particle.h:27
virtual std::string Info() const override
Turn back information as a string.
Definition: polyhedron_skin_spheric_particle.h:41
GlobalPointersVector< Element > ParticleWeakVectorType
Definition: polyhedron_skin_spheric_particle.h:25
ParticleWeakVectorType::ptr_iterator ParticleWeakIteratorType_ptr
Definition: polyhedron_skin_spheric_particle.h:26
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: polyhedron_skin_spheric_particle.h:49
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
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
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
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307