AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxTerrain::TerrainMaterial::BulkProperties Class Reference

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)
 

Public Attributes

 AGXTERRAIN_STORE_RESTORE_INTERFACE
 
agx::Real m_cohesion
 
agx::Real m_density
 
agx::Real m_dilatancyAngle
 
agx::Real m_frictionAngle
 
agx::Real m_maxDensity
 
agx::Real m_poissonsRatio
 
agx::Real m_swellFactor
 
TerrainMaterial * m_terrainMaterial
 
agx::Real m_youngsModulus
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

agxTerrain::TerrainMaterial::BulkProperties::BulkProperties ( TerrainMaterial *  terrainMaterial)

Default constructor.

virtual agxTerrain::TerrainMaterial::BulkProperties::~BulkProperties ( )
inlineprotectedvirtual

Definition at line 241 of file TerrainMaterial.h.

Member Function Documentation

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited
template<typename T >
T* agx::Referenced::as ( )
inherited

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().

template<typename T >
const T* agx::Referenced::as ( ) const
inherited
template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited
void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited
agx::Real agxTerrain::TerrainMaterial::BulkProperties::getCohesion ( ) const
inline
Returns
the bulk cohesion (Pa) of the bulk material.

Definition at line 913 of file TerrainMaterial.h.

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.
agx::Real agxTerrain::TerrainMaterial::BulkProperties::getDensity ( ) const
inline
Returns
the bulk density (kg/m3) of the bulk material.

Definition at line 879 of file TerrainMaterial.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::getDilatancyAngle ( ) const
inline
Returns
the dilatancy angle (rad) of the bulk material.

Definition at line 908 of file TerrainMaterial.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::getFrictionAngle ( ) const
inline
Returns
the friction angle (rad) of the bulk material.

Definition at line 903 of file TerrainMaterial.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::getMaximumDensity ( ) const
inline
Returns
the maximum density (kg/m3) of the bulk material.

Definition at line 885 of file TerrainMaterial.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::getPoissonsRatio ( ) const
inline
Returns
the bulk Poisson's ratio of the bulk material.

Definition at line 897 of file TerrainMaterial.h.

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.
agx::Real agxTerrain::TerrainMaterial::BulkProperties::getSwellFactor ( ) const
inline
Returns
the swell factor of the material, i.e the volume expansion of created dynamic soil during excavation.

Definition at line 918 of file TerrainMaterial.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::getYoungsModulus ( ) const
inline
Returns
the bulk Young's modulus (Pa) of the bulk material.

Definition at line 891 of file TerrainMaterial.h.

template<typename T >
bool agx::Referenced::is ( ) const
inherited
void agxTerrain::TerrainMaterial::BulkProperties::onChanged ( )
protected
void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

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.

Referenced by agxData::Val< UInt >::Val().

void agxTerrain::TerrainMaterial::BulkProperties::setCohesion ( agx::Real  cohesion)

Set the bulk cohesion (Pa) of the bulk material.

Parameters
cohesion- the specified bulk cohesion to set to the bulk material. (Default: 0.0 Pa)
static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

void agxTerrain::TerrainMaterial::BulkProperties::setDensity ( agx::Real  density)

Set the bulk density (kg/m^3) of the bulk material.

Parameters
density- the specified bulk density to set to the bulk material. (Default: 1.4e3 kg/m^3)
void agxTerrain::TerrainMaterial::BulkProperties::setDilatancyAngle ( agx::Real  dilatancyAngle)

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.

Parameters
dilatancyAngle- the specified dilatancy angle to set to the bulk material. (Default: 15.0 * agx::PI / 180.0 radians)
void agxTerrain::TerrainMaterial::BulkProperties::setFrictionAngle ( agx::Real  frictionAngle)

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.

Parameters
frictionAngle- the specified internal friction angle to set to the bulk material. (Default: 45.0 * agx::PI / 180.0 radians)
void agxTerrain::TerrainMaterial::BulkProperties::setMaximumDensity ( agx::Real  maxDensity)

Set the maximum density (kg/m^3) of the bulk material.

This is the upper limit for the soil compaction.

Parameters
maxDensity- the specified density to set to the bulk material. (Default: 1.6e3 kg/m^3)
void agxTerrain::TerrainMaterial::BulkProperties::setPoissonsRatio ( agx::Real  poissonsRatio)

Set the bulk Poisson's ratio of the bulk material.

This affects the soil penetration force calculations.

Parameters
poissonsRatio- the specified bulk Poisson's ratio to set to the bulk material. (Default: 0.1)
void agxTerrain::TerrainMaterial::BulkProperties::setSwellFactor ( agx::Real  swellFactor)

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

Parameters
swellFactor- The specified swell factor to set to the material. (Default: 1.0)
void agxTerrain::TerrainMaterial::BulkProperties::setYoungsModulus ( agx::Real  youngsModulus)

Set the bulk Young's modulus (Pa) of the bulk material.

Parameters
youngsModulus- the specified bulk Young's modulus to set to the bulk material. (Default: 1e7 Pa)
void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

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.

void agx::Referenced::unreference_nodelete ( ) const
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.

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

Member Data Documentation

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.

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

agx::Real agxTerrain::TerrainMaterial::BulkProperties::m_poissonsRatio

Definition at line 248 of file TerrainMaterial.h.

AtomicValue agx::Referenced::m_refCount
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.


The documentation for this class was generated from the following file: