3 #if !defined KRATOS_CLUSTER3D_H_INCLUDED
4 #define KRATOS_CLUSTER3D_H_INCLUDED
38 Cluster3D(
IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
45 void Initialize(
const ProcessInfo& r_process_info)
override;
48 virtual void CollectForcesAndTorquesFromSpheres();
50 std::vector<SphericParticle*>
GetSpheres() {
return mListOfSphericParticles; };
51 virtual void SetContinuumGroupToBreakableClusterSpheres(
const int Id);
53 virtual void SetInitialNeighbours(
const double search_increment);
54 virtual void CreateContinuumConstitutiveLaws();
57 virtual double SlowGetDensity();
58 virtual int SlowGetParticleMaterial();
63 virtual std::string
Info()
const override
65 std::stringstream buffer;
66 buffer <<
"Discrete Element #" << Id();
71 virtual void PrintInfo(std::ostream& rOStream)
const override
73 rOStream <<
"Discrete Element #" << Id();
77 virtual void PrintData(std::ostream& rOStream)
const override
86 double mProgrammedDestructionTime = -1.0;
103 rOStream << std::endl;
Definition: cluster3D.h:29
double GetProgrammedDestructionTime() const
Definition: cluster3D.h:60
std::vector< double > mListOfRadii
Definition: cluster3D.h:84
void SetProgrammedDestructionTime(const double destruction_time)
Definition: cluster3D.h:61
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: cluster3D.h:77
std::vector< SphericParticle * > mListOfSphericParticles
Definition: cluster3D.h:85
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: cluster3D.h:71
std::vector< SphericParticle * > GetSpheres()
Definition: cluster3D.h:50
virtual std::string Info() const override
Turn back information as a string.
Definition: cluster3D.h:63
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(Cluster3D)
Pointer definition of Cluster3D.
unsigned int GetNumberOfSpheres()
Definition: cluster3D.h:49
virtual void Initialize(const ProcessInfo &rCurrentProcessInfo)
Definition: element.h:341
std::size_t IndexType
Definition: flags.h:74
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Definition: create_and_destroy.h:33
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
Definition: properties_proxies.h:18
Definition: rigid_body_element.h:31
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#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
TDataType Calculate(GeometryType &dummy, const Variable< TDataType > &rVariable)
Definition: add_geometries_to_python.cpp:103
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
float velocity
Definition: PecletTest.py:54
def load(f)
Definition: ode_solve.py:307