|
AGXDynamics
2.31.1.0
|
Class containing the soil bulk properties of and agxTerrain object. More...
#include <TerrainMaterial.h>
Inheritance diagram for agxTerrain::TerrainMaterial::BulkProperties:Public Member Functions | |
| BulkProperties (TerrainMaterial *terrainMaterial) | |
| Default constructor. More... | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| agx::Real | getCohesion () const |
| agx::Real | getDensity () const |
| agx::Real | getDilatancyAngle () const |
| agx::Real | getFrictionAngle () const |
| agx::Real | getMaximumDensity () const |
| agx::Real | getPoissonsRatio () const |
| int | getReferenceCount () const |
| agx::Real | getSwellFactor () const |
| agx::Real | getYoungsModulus () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setCohesion (agx::Real cohesion) |
| Set the bulk cohesion (Pa) of the bulk material. More... | |
| void | setDensity (agx::Real density) |
| Set the bulk density (kg/m^3) of the bulk material. More... | |
| void | setDilatancyAngle (agx::Real dilatancyAngle) |
| Set the dilatancy angle (rad) of the bulk material. More... | |
| void | setFrictionAngle (agx::Real frictionAngle) |
| Set the internal friction angle (rad) of the bulk material. More... | |
| void | setMaximumDensity (agx::Real maxDensity) |
| Set the maximum density (kg/m^3) of the bulk material. More... | |
| void | setPoissonsRatio (agx::Real poissonsRatio) |
| Set the bulk Poisson's ratio of the bulk material. More... | |
| void | setSwellFactor (agx::Real swellFactor) |
| Set the swell factor of the material, i.e how much the material will expand during excavation. More... | |
| void | setYoungsModulus (agx::Real youngsModulus) |
| Set the bulk Young's modulus (Pa) of the bulk material. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~BulkProperties () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | onChanged () |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Class containing the soil bulk properties of and agxTerrain object.
These properties typically affect the shape and force feedback of the failure zones that appear during excavation but also affect the shovel penetration resistance.
The bulk material properties governs the following internal contact material parameters:
YoungsModulus - The stiffness of the material in Pa. This affects the Young's Modulus parameter of the contact materials. Cohesion - Describes the internal cohesion of the material in Newton. This translates to the adhesion parameter of the internal contact material. Density - Describes the density of the soil in kg/m3. This translates to the specific density of the solid soil material and the bulk density of the dynamic soil (i.e Soil Particles). FrictionAngle - Describes the internal friction angle of the material. This affects the angle of repose in a 1-to 1 ration for the avalanching algorithm. PoissonsRatio - Describes the Poisson's ratio of the material. This affects the soil penetration force calculations. DilatancyAngle - Describes the dilatancy angle of the material. This affects the soil penetration force calculations.
Definition at line 134 of file TerrainMaterial.h.
| agxTerrain::TerrainMaterial::BulkProperties::BulkProperties | ( | TerrainMaterial * | terrainMaterial | ) |
Default constructor.
|
inlineprotectedvirtual |
Definition at line 241 of file TerrainMaterial.h.
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
protectedinherited |
|
inline |
Definition at line 913 of file TerrainMaterial.h.
|
staticprotectedinherited |
|
inline |
Definition at line 879 of file TerrainMaterial.h.
|
inline |
Definition at line 908 of file TerrainMaterial.h.
|
inline |
Definition at line 903 of file TerrainMaterial.h.
|
inline |
Definition at line 885 of file TerrainMaterial.h.
|
inline |
Definition at line 897 of file TerrainMaterial.h.
|
inherited |
|
inline |
Definition at line 918 of file TerrainMaterial.h.
|
inline |
Definition at line 891 of file TerrainMaterial.h.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
protected |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Set the bulk cohesion (Pa) of the bulk material.
| cohesion | - the specified bulk cohesion to set to the bulk material. (Default: 0.0 Pa) |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
Set the bulk density (kg/m^3) of the bulk material.
| density | - the specified bulk density to set to the bulk material. (Default: 1.4e3 kg/m^3) |
Set the dilatancy angle (rad) of the bulk material.
This determines the material properties during expansion and compression. This affects the soil penetration force calculations.
| dilatancyAngle | - the specified dilatancy angle to set to the bulk material. (Default: 15.0 * agx::PI / 180.0 radians) |
Set the internal friction angle (rad) of the bulk material.
This affects the shape of the active zones during excavations and also the angle of repose in a 1-to 1 ration for the avalanching algorithm.
| frictionAngle | - the specified internal friction angle to set to the bulk material. (Default: 45.0 * agx::PI / 180.0 radians) |
Set the maximum density (kg/m^3) of the bulk material.
This is the upper limit for the soil compaction.
| maxDensity | - the specified density to set to the bulk material. (Default: 1.6e3 kg/m^3) |
Set the bulk Poisson's ratio of the bulk material.
This affects the soil penetration force calculations.
| poissonsRatio | - the specified bulk Poisson's ratio to set to the bulk material. (Default: 0.1) |
Set the swell factor of the material, i.e how much the material will expand during excavation.
The volume of the dynamic material created will increase according to the swell factor: volume dynamic = volume excavated * swellFactor
| swellFactor | - The specified swell factor to set to the material. (Default: 1.0) |
Set the bulk Young's modulus (Pa) of the bulk material.
| youngsModulus | - the specified bulk Young's modulus to set to the bulk material. (Default: 1e7 Pa) |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
| agxTerrain::TerrainMaterial::BulkProperties::AGXTERRAIN_STORE_RESTORE_INTERFACE |
Definition at line 238 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_cohesion |
Definition at line 250 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_density |
Definition at line 245 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_dilatancyAngle |
Definition at line 251 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_frictionAngle |
Definition at line 249 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_maxDensity |
Definition at line 246 of file TerrainMaterial.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_poissonsRatio |
Definition at line 248 of file TerrainMaterial.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_swellFactor |
Definition at line 252 of file TerrainMaterial.h.
| TerrainMaterial* agxTerrain::TerrainMaterial::BulkProperties::m_terrainMaterial |
Definition at line 254 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_youngsModulus |
Definition at line 247 of file TerrainMaterial.h.