AGX Dynamics  2.37.2.0
agxTerrain::TerrainContactForceCalculator Namespace Reference

Utility namespace for calculating excavation forces in the terrain. More...

Functions

agx::Vec3 AGXTERRAIN_EXPORT getAggregateTerrainContactForce (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Internal method Get the aggregate contact force with the terrain given an excavation mode and a shovel. More...
 
agxCollide::GeometryContactPtrVector AGXTERRAIN_EXPORT getAggregateTerrainContacts (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Internal method Get the aggregate normal and shear contact force with the terrain given an excavation mode and a shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getAggregateTerrainNormalForce (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Internal method Get the aggregate normal force with the terrain given an excavation mode and a shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getAggregateTerrainTangentialForce (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Internal method Get the aggregate <-> terrain tangential force with the terrain given an excavation mode and a shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getContactForce (const Terrain *terrain, const Shovel *shovel)
 Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getDeformationContactForce (const Terrain *terrain, const Shovel *shovel)
 Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getExcavationModeContactForce (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Calculates total contact force between the soil aggregate and the shovel associated with the specified excavation mode. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getSeparationContactForce (const Terrain *terrain, const Shovel *shovel)
 Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain soil particle aggregate and the given shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getSeparationFrictionForce (const Terrain *terrain, const Shovel *shovel)
 Given geometry contacts exists and the solver has solved them - calculates total contact friction force between the terrain soil particle aggregate and the given shovel. More...
 
agx::Vec3 AGXTERRAIN_EXPORT getSeparationNormalForce (const Terrain *terrain, const Shovel *shovel)
 Given geometry contacts exists and the solver has solved them - calculates total contact normal force between the terrain soil particle aggregate and the given shovel. More...
 
agxCollide::GeometryContactPtrVector AGXTERRAIN_EXPORT getShovelAggregateContacts (const Terrain *terrain, const Shovel *shovel, Shovel::ExcavationMode excavationMode)
 Internal method Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel. More...
 

Detailed Description

Utility namespace for calculating excavation forces in the terrain.

Function Documentation

◆ getAggregateTerrainContactForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getAggregateTerrainContactForce ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Internal method Get the aggregate contact force with the terrain given an excavation mode and a shovel.

Parameters
terrain- The terrain to use for the computation
shovel- the specified shovel
excavationMode- the excavation mode that the aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
the total force (N) acting on the aggregate in the terrain-aggregate contact

◆ getAggregateTerrainContacts()

agxCollide::GeometryContactPtrVector AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getAggregateTerrainContacts ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Internal method Get the aggregate normal and shear contact force with the terrain given an excavation mode and a shovel.

Parameters
terrain- The terrain to use for the computation
shovel- the specified shovel
excavationMode- the excavation mode that the aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
vector containing the geometry contacts between the specified aggregate and the terrain

◆ getAggregateTerrainNormalForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getAggregateTerrainNormalForce ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Internal method Get the aggregate normal force with the terrain given an excavation mode and a shovel.

Parameters
terrain- The terrain to use for the computation
shovel- the specified shovel
excavationMode- the excavation mode that the aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
the total force (N) acting on the aggregate in the terrain-aggregate contact

◆ getAggregateTerrainTangentialForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getAggregateTerrainTangentialForce ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Internal method Get the aggregate <-> terrain tangential force with the terrain given an excavation mode and a shovel.

Parameters
terrain- The terrain to use for the computation
shovel- the specified shovel
excavationMode- the excavation mode that the aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
the total tangential force (N) acting on the aggregate in the terrain-aggregate contact

◆ getContactForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getContactForce ( const Terrain *  terrain,
const Shovel *  shovel 
)

Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel.

This is the contact force that prevents the shovel from falling through the terrain when not in excavation mode, where contact feedback is generated from the soil aggregates.

Note
- This method returns regular contact forces ONLY when no soil aggregates are present to generate excavation feedback!
Parameters
terrain- The terrain to use for the computation
shovel- interacting shovel
Returns
the total non-excavation contact force between this terrain and the given shovel.

◆ getDeformationContactForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getDeformationContactForce ( const Terrain *  terrain,
const Shovel *  shovel 
)

Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel.

This represents the deformation force that is required to move soil via shovel deformation instead of excavation, i.e not excavation or digging. Examples of this would be side movement and backwards grading of the soil.

Parameters
terrain- The terrain to use for the computation
shovel- interacting shovel
Returns
the total contact force between given shovel and the deformer soil aggregates in the terrain.

◆ getExcavationModeContactForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getExcavationModeContactForce ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Calculates total contact force between the soil aggregate and the shovel associated with the specified excavation mode.

Parameters
terrain- The terrain to use for the computation
shovel- interacting shovel
excavationMode- the excavation mode that the specified soil aggregate belongs to
Returns
the total contact force between given shovel and the soil aggregate specified by the excavation mode

◆ getSeparationContactForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getSeparationContactForce ( const Terrain *  terrain,
const Shovel *  shovel 
)

Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain soil particle aggregate and the given shovel.

This represents the separation force that is required to move the excavated soil in the shovel active zone.

Parameters
terrain- The terrain to use for the computation
shovel- interacting shovel
Returns
the total contact force between given shovel and the soil particle aggregate in the terrain.

◆ getSeparationFrictionForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getSeparationFrictionForce ( const Terrain *  terrain,
const Shovel *  shovel 
)

Given geometry contacts exists and the solver has solved them - calculates total contact friction force between the terrain soil particle aggregate and the given shovel.

Parameters
shovel- interacting shovel
Returns
the total contact friction force between given shovel and the soil particle aggregate in the terrain.

◆ getSeparationNormalForce()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getSeparationNormalForce ( const Terrain *  terrain,
const Shovel *  shovel 
)

Given geometry contacts exists and the solver has solved them - calculates total contact normal force between the terrain soil particle aggregate and the given shovel.

Parameters
shovel- interacting shovel
Returns
the total contact normal force between given shovel and the soil particle aggregate in the terrain.

◆ getShovelAggregateContacts()

agxCollide::GeometryContactPtrVector AGXTERRAIN_EXPORT agxTerrain::TerrainContactForceCalculator::getShovelAggregateContacts ( const Terrain *  terrain,
const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
)

Internal method Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel.

Parameters
terrain- The terrain to use for the computation
shovel- the specified shovel
excavationMode- the excavation mode that the soil aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
vector containing the geometry contacts between the specified shovel and the aggregate.