|
AGX Dynamics
2.37.2.0
|
Class that handles and creates a lumped element approximation of the soil wedge aggregate. More...
#include <SoilParticleAggregate.h>
Public Member Functions | |
| SoilWedgeContainer (size_t numWedges) | |
| Constructor. More... | |
| void | addNotification (agxSDK::Simulation *simulation, Terrain *terrain) |
| void | calculatePartitionPlaneData (TerrainToolCollection *collection) |
| Calculates all the normals used to defined the internal partition splitting of the wedge volume. More... | |
| void | clearParticles (size_t reserve) |
| void | clearVoxelsAndParticles () |
| void | computeLockViolations () |
| Computes lock violations of the lock joints in the lumped structure. More... | |
| const agx::RigidBody * | getContactingWedgeBody () const |
| This function returns the outermost enabled body in the lumped-element approximation of the wedge aggregate. More... | |
| const agx::Vec3 & | getCuttingVectorFlat () const |
| const agx::Vec3 & | getCutTopVector () const |
| const agx::Vec3 & | getForwardDiggingPlane () const |
| const WedgePartitionData & | getPartitionData (const agx::RigidBody *partitionBody) const |
| agx::Real | getTotalWedgeMass () const |
| void | init (agx::RigidBody *innerBody) |
| Initializes the lumped element structure of the wedge aggregate. More... | |
| bool | isWedgePartitionBody (const agx::RigidBody *body) const |
| void | onEnableChange (bool enable) |
| const WedgePartitionData & | operator[] (size_t index) const |
| WedgePartitionData & | operator[] (size_t index) |
| void | removeNotification (agxSDK::Simulation *simulation, Terrain *terrain) |
| void | setDeformerWedgeMode () |
| Set deformer mode. More... | |
| void | setMaterial (agx::Material *material) |
| Set the material of each of the geometries in the lumped element structure. More... | |
| void | setSinglePartitionMode () |
| Set single partition body mode when no splitting is occuring. More... | |
| size_t | size () const noexcept |
| void | splitWedgeParticles (const TerrainToolCollection *collection, const SoilParticlePtrVector &soilParticles) |
| Split the wedge particles into different partition elements of the wedge aggregate. More... | |
| void | splitWedgeVoxels (const TerrainToolCollection *collection, VoxelHashSet &voxels) |
| Split the wedge voxels into different partition elements of the wedge aggregate. More... | |
| void | synchronizeLockJoints (TerrainToolCollection *collection) |
| Update the lumped element lock joints according to partition data. More... | |
| void | updateCachedWedgeMomentum () |
| Updates the cached momentum in each partition for the wedge bodies. More... | |
| void | updatePartitionBodyMomentum (agx::RigidBody *partitionBody, agx::Real totalMass, const agx::Matrix3x3 &invWorldInertiaTensor) |
| Update the a specific partition body velocity and angular velocity from updated inertia and cached momentum. More... | |
Protected Attributes | |
| agx::Vec3 | m_cuttingVectorFlat |
| agx::Vec3 | m_forwardDiggingPlane |
| agx::Vec3 | m_topCutVector |
| std::vector< WedgePartitionData > | m_wedgePartitions |
Class that handles and creates a lumped element approximation of the soil wedge aggregate.
This is done to approximate internal shearing effects/limits of the soil aggregate during vertical movements instead of treating the whole soil wedge aggregate as a rigid object.
The wedge aggregate is split inteo different bodies according to pre-defined planes. Each body is connected with a lock joint that holds frictional limits in the plane of the lock z-direction to approximate internal soil shearing during excavation.
Definition at line 250 of file SoilParticleAggregate.h.
| agxTerrain::SoilParticleAggregate::SoilWedgeContainer::SoilWedgeContainer | ( | size_t | numWedges | ) |
Constructor.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::addNotification | ( | agxSDK::Simulation * | simulation, |
| Terrain * | terrain | ||
| ) |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::calculatePartitionPlaneData | ( | TerrainToolCollection * | collection | ) |
Calculates all the normals used to defined the internal partition splitting of the wedge volume.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::clearParticles | ( | size_t | reserve | ) |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::clearVoxelsAndParticles | ( | ) |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::computeLockViolations | ( | ) |
Computes lock violations of the lock joints in the lumped structure.
| const agx::RigidBody* agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getContactingWedgeBody | ( | ) | const |
This function returns the outermost enabled body in the lumped-element approximation of the wedge aggregate.
This will be used when creating terrain-aggregate contacts if applicable.
| const agx::Vec3& agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getCuttingVectorFlat | ( | ) | const |
| const agx::Vec3& agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getCutTopVector | ( | ) | const |
| const agx::Vec3& agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getForwardDiggingPlane | ( | ) | const |
| const WedgePartitionData& agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getPartitionData | ( | const agx::RigidBody * | partitionBody | ) | const |
| agx::Real agxTerrain::SoilParticleAggregate::SoilWedgeContainer::getTotalWedgeMass | ( | ) | const |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::init | ( | agx::RigidBody * | innerBody | ) |
Initializes the lumped element structure of the wedge aggregate.
| innerBody | - the inner body of the shovel that will connect to the lumped elment structure of the wedge body. |
| bool agxTerrain::SoilParticleAggregate::SoilWedgeContainer::isWedgePartitionBody | ( | const agx::RigidBody * | body | ) | const |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::onEnableChange | ( | bool | enable | ) |
|
inline |
Definition at line 379 of file SoilParticleAggregate.h.
|
inline |
Definition at line 383 of file SoilParticleAggregate.h.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::removeNotification | ( | agxSDK::Simulation * | simulation, |
| Terrain * | terrain | ||
| ) |
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::setDeformerWedgeMode | ( | ) |
Set deformer mode.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::setMaterial | ( | agx::Material * | material | ) |
Set the material of each of the geometries in the lumped element structure.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::setSinglePartitionMode | ( | ) |
Set single partition body mode when no splitting is occuring.
|
inlinenoexcept |
Definition at line 387 of file SoilParticleAggregate.h.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::splitWedgeParticles | ( | const TerrainToolCollection * | collection, |
| const SoilParticlePtrVector & | soilParticles | ||
| ) |
Split the wedge particles into different partition elements of the wedge aggregate.
Each partition holds a plane that governs the splitting delimiter for the particles.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::splitWedgeVoxels | ( | const TerrainToolCollection * | collection, |
| VoxelHashSet & | voxels | ||
| ) |
Split the wedge voxels into different partition elements of the wedge aggregate.
Each partition holds a plane that governs the splitting delimiter for the particles.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::synchronizeLockJoints | ( | TerrainToolCollection * | collection | ) |
Update the lumped element lock joints according to partition data.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::updateCachedWedgeMomentum | ( | ) |
Updates the cached momentum in each partition for the wedge bodies.
| void agxTerrain::SoilParticleAggregate::SoilWedgeContainer::updatePartitionBodyMomentum | ( | agx::RigidBody * | partitionBody, |
| agx::Real | totalMass, | ||
| const agx::Matrix3x3 & | invWorldInertiaTensor | ||
| ) |
Update the a specific partition body velocity and angular velocity from updated inertia and cached momentum.
|
protected |
Definition at line 393 of file SoilParticleAggregate.h.
|
protected |
Definition at line 395 of file SoilParticleAggregate.h.
|
protected |
Definition at line 394 of file SoilParticleAggregate.h.
|
protected |
Definition at line 397 of file SoilParticleAggregate.h.