| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHindexedParticles.h>


Public Member Functions | |
| ChIndexedParticles () | |
| ~ChIndexedParticles () | |
| virtual unsigned int | GetNparticles ()=0 |
| virtual ChParticleBase & | GetParticle (unsigned int n)=0 |
| virtual void | ResizeNparticles (int newsize)=0 |
| virtual void | AddParticle (ChCoordsys< double > initial_state=CSYSNORM)=0 |
| virtual int | GetDOF () |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
Interface class for clusters of particles that can be accessed with an index. Must be inherited by children classes.
| chrono::ChIndexedParticles::ChIndexedParticles | ( | ) |
CLASS FOR PARTICLE CLUSTER.
Build a cluster of particles. By default the cluster will contain 0 particles.
| virtual void chrono::ChIndexedParticles::AddParticle | ( | ChCoordsys< double > | initial_state = CSYSNORM | ) | [pure virtual] |
Add a new particle to the particle cluster, passing a coordinate system as initial state.
Implemented in chrono::ChParticlesClones.
| virtual void chrono::ChIndexedParticles::ResizeNparticles | ( | int | newsize | ) | [pure virtual] |
Resize the particle cluster. Also clear the state of previously created particles, if any.
Implemented in chrono::ChParticlesClones.
| void chrono::ChIndexedParticles::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChPhysicsItem.
Reimplemented in chrono::ChParticlesClones.
| void chrono::ChIndexedParticles::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChPhysicsItem.
Reimplemented in chrono::ChParticlesClones.
CHRONO::ENGINE