 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
17 #ifndef AGX_GRANULARIMPACTANALYSIS_H
18 #define AGX_GRANULARIMPACTANALYSIS_H
68 virtual void onParticleDestroyed(
agx::Index id) = 0;
70 virtual void onParticleCreated(
agx::Index id) = 0;
74 void clearDestroyedParticles();
85 class ParticleStorageListener :
public agxData::EntityStorage::EventListener,
public agx::Referenced
99 virtual ~ParticleStorageListener();
167 virtual void addNotification()
override;
172 virtual void removeNotification()
override;
224 size_t getNumParticlePairImpacts()
const;
227 size_t getNumParticleGeometryImpacts()
const;
229 ImpactDataSimulationWriter& operator=(
const ImpactDataSimulationWriter&) =
delete;
231 virtual ~ImpactDataSimulationWriter();
233 void initParticleBuffers();
static const char *const IMPACT_BUFFER
agxSDK::Simulation::JournalAttachEvent::CallbackType m_journalAttachedCallback
IndexHashSet getDestroyedParticles() const
Returns the currently destroyed particles registered from the coupled GranularBodySystem.
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
static const char *const ACCUMULATED_IMPACT_BUFFER
static const char *const PARTICLEGEOMETRYCONTACT_BUFFER
ParticleGeometryTimeTable m_activeParticleGeometryPairs
Derive from this class to implement a listener for simulation step events.
ImpactDataSimulationWriterRef m_impactDataSimulationWriter
static const char *const CONTACTENERGY_BUFFER
agx::RealVector RealContainer
Pointer to a entity instance of type Physics.ParticlePairContact.
Particle EventListener that can be inherited and overridden in order to listen to particle events.
ParticlePairTimeTable m_activeParticlePairs
Data storage for a collection of entity instances of a specified EntityModel.
Callback2< Simulation *, agx::Journal * > CallbackType
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
agx::HashTable< agx::Physics::GranularBody::GranularGeometryPair, agx::TimeStamp > ParticleGeometryTimeTable
Type-specific Array used for fast access into the data held by a Buffer.
agxData::EntityStorageRef m_particlePairStorage
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::Physics::ParticleGeometryContactPtr contactPtr
agxSDK::Simulation * m_simulation
Pointer to a entity instance of type Physics.ParticleGeometryContact.
agx::HashTable< agx::Physics::GranularBody::GranularGranularPair, agx::TimeStamp > ParticlePairTimeTable
Inheritance with partial specialization due to bug with ref_ptr containers.
agxData::EntityStorageRef m_particleGeometryStorage
static const char *const PARTICLEPAIRCONTACT_BUFFER
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Real accumulatedEnergy
agx::Physics::GranularBodySystem * m_system
std::pair< GranularBodyPtr, GeometryPtr > GranularGeometryPair
IndexHashSet m_destroyedId
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
agx::Physics::GranularBody::GranularGranularPair ParticlePairKey
agx::Physics::GranularBody::GranularGeometryPair ParticleGeometryKey
agx::Physics::ParticlePairContactPtr contactPtr