|
AGX Dynamics
2.37.3.2
|
Class containing the properties of the soil compaction model used in agxTerrain, such as compression index and soil hardening constants. More...
#include <TerrainMaterial.h>
Inheritance diagram for agxTerrain::TerrainMaterial::CompactionProperties:Public Member Functions | |
| CompactionProperties () | |
| agx::Real | getAngleOfReposeCompactionRate () const |
| agx::Real | getBankStatePhi () const |
| agx::Real | getCompactionTimeRelaxationConstant () const |
| agx::Real | getCompressionIndex () const |
| agx::Real | getDilatancyAngleScalingFactor () const |
| Get the dilatancy angle scaling factor with respect to the compaction in the terrain. More... | |
| agx::Real | getHardeningConstantKE () const |
| agx::Real | getHardeningConstantNE () const |
| agx::Real | getPreconsolidationStress () const |
| agx::Real | getStressCutOffFraction () const |
| void | setAngleOfReposeCompactionRate (agx::Real angleOfReposeCompactionRate) |
| Set how the compaction should increase the angle of repose. More... | |
| void | setBankStatePhi (agx::Real phi0) |
| Set the phi0 value of the bank state soil. More... | |
| void | setCompactionTimeRelaxationConstant (agx::Real compactionTimeRelaxationConstant) |
| Set time relaxation for compaction. More... | |
| void | setCompressionIndex (agx::Real compressionIndex) |
| Sets the compression index for the soil, which is the constant that determines how fast the soil should compress given increased surface stress. More... | |
| void | setDilatancyAngleScalingFactor (agx::Real scalingFactor) |
| Set the dilatancy angle scaling factor with respect to compaction in the terrain. More... | |
| void | setHardeningConstantKE (agx::Real k_e) |
| Set the hardening constant k_e of the bulk material, i.e how the Young's modulus of the terrain contacts should scale with increasing/decreasing compaction. More... | |
| void | setHardeningConstantNE (agx::Real n_e) |
| Set the hardening constant n_e of the bulk material, i.e how the Young's modulus of the terrain contacts should scale with increasing/decreasing compaction. More... | |
| void | setPreconsolidationStress (agx::Real preconsolidationStress) |
| Set the stress at which the soil in the default state was compressed in, i.e when it has nominal compaction 1.0. More... | |
| void | setStressCutOffFraction (agx::Real stressCutOffFraction) |
| Set the fraction of the surface stress that should serve as a cutoff value from when the stress propagation from the surface downward into the soil should stop. More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| 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 |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. 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 | 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... | |
Public Attributes | |
| AGXTERRAIN_STORE_RESTORE_INTERFACE | |
Protected Member Functions | |
| virtual | ~CompactionProperties () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions inherited from agx::Referenced | |
| 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 inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Class containing the properties of the soil compaction model used in agxTerrain, such as compression index and soil hardening constants.
CompressionIndex - Describes how quickly the density of the material increases with compression. SwellFactor - Describes the amount the soil swells when going from its bank state to its loose state. HardeningRate - Describes how quickly the Young's modulus of the material increases with compression. PreconsolidationStress - Describes the pressure the soil was consolidated by. CompactionTimeRelaxationConstant - Describes how quickly the material is compressed when exposed to a compressing stress. StressCutOffFraction - Describes the fraction of the surface stress that must be reached before cutting off stress calculations downward in the Terrain. angleOfReposeCompactionRate - Describes how quickly the angle of repose of the material increases with compression.
Definition at line 290 of file TerrainMaterial.h.
| agxTerrain::TerrainMaterial::CompactionProperties::CompactionProperties | ( | ) |
|
inlineprotectedvirtual |
Definition at line 453 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getAngleOfReposeCompactionRate | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getBankStatePhi | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getCompactionTimeRelaxationConstant | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getCompressionIndex | ( | ) | const |
setCompressionIndex for scaling law.
|
inline |
Get the dilatancy angle scaling factor with respect to the compaction in the terrain.
The dilatancy angle modifies the effective local angle of friction in terrain by the following formula:
eff_friction_angle = friction_angle + scalingFactor * ( voxelCompaction - criticalCompaction )
Definition at line 949 of file TerrainMaterial.h.
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getHardeningConstantKE | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getHardeningConstantNE | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getPreconsolidationStress | ( | ) | const |
| agx::Real agxTerrain::TerrainMaterial::CompactionProperties::getStressCutOffFraction | ( | ) | const |
| void agxTerrain::TerrainMaterial::CompactionProperties::setAngleOfReposeCompactionRate | ( | agx::Real | angleOfReposeCompactionRate | ) |
Set how the compaction should increase the angle of repose.
The tan of the angle of repose is increased by the following factor: The applied angle of repose of the material is active when the soil is in loose compaction, i.e has compaction 1.0 / swellFactor.
m = 2.0 ^ ( angleOfReposeCompactionRate * ( compaction - (1.0/swellFactor) ) )
| angleOfReposeCompactionRate | - the specified compaction angle of repose rate to set to the bulk material. (Default: 1.0) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setBankStatePhi | ( | agx::Real | phi0 | ) |
Set the phi0 value of the bank state soil.
This is used in the compaction calculation where soil stress generates compacted soil. note See 'setCompressionIndex' for an explanation of how phi0 is used in compaction calculations.
| phi0 | - The specified phi0 of the soil in the bank state. (Default: 0.5) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setCompactionTimeRelaxationConstant | ( | agx::Real | compactionTimeRelaxationConstant | ) |
Set time relaxation for compaction.
The factor is used to cap the change in density during the contact according to: change in density during time step = change in density from compaction * timeFactor where: timeFactor = 1.0 - exp(contactTime/tau)
| compactionTimeRelaxationConstant | - the specified time constant to be set on the bulk material. (Default: 0.05) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setCompressionIndex | ( | agx::Real | compressionIndex | ) |
Sets the compression index for the soil, which is the constant that determines how fast the soil should compress given increased surface stress.
The formula for computing the compaction curve is given by the following expression:
rho_new = rho_old * ( 1.0 / ( 1.0 - phi0 * C * ln( stress / preconsolidationStress ) ) )
where 'C' is the compression index, 'rho_new' is the new density of the material, 'rho_old' is the old density before compaction, 'preconsolidationStress' is stress used to initialize the soil in the bank sate, 'stress' is the applied compaction stress and phi zero is derived from the initial void ratio e0 ( Default phi0: 0.5 ) in the soil:
phi0 = e0 / ( 1.0 + e0 )
| compressionIndex | - The compression index C used in the formula above. (Default: 0.1) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setDilatancyAngleScalingFactor | ( | agx::Real | scalingFactor | ) |
Set the dilatancy angle scaling factor with respect to compaction in the terrain.
The dilatancy angle modifies the effective local angle of friction in terrain by the following formula:
eff_friction_angle = friction_angle + scalingFactor * ( voxelCompaction - criticalCompaction )
| scalingFactor | - The specified dilatancy angle scaling factor to set. ( Default: 20 * agx::PI / 180 radians ) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setHardeningConstantKE | ( | agx::Real | k_e | ) |
Set the hardening constant k_e of the bulk material, i.e how the Young's modulus of the terrain contacts should scale with increasing/decreasing compaction.
The formula for this is:
E_eff = E_0 * ( 1.0 + sign( compaction - 1.0 ) * k_e * ( abs( compaction - 1.0 ) ^ n_e ) )
where 'E_eff' is the effective Young's Modulus, 'E_0' is the original Young's modulus, 'compaction' is the local compaction of the material, 'k_e' is and 'n_e' are hardening parameters that for a constant packing ratio has values 1.0 and 0.5 respectively.
| k_e | - The hardening constant k_e of the material. (Default: 1.0) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setHardeningConstantNE | ( | agx::Real | n_e | ) |
Set the hardening constant n_e of the bulk material, i.e how the Young's modulus of the terrain contacts should scale with increasing/decreasing compaction.
The formula for this is:
E_eff = E_0 * ( 1.0 + sign( compaction - 1.0 ) * k_e * ( abs( compaction - 1.0 ) ^ n_e ) )
where 'E_eff' is the effective Young's Modulus, 'E_0' is the original Young's modulus, 'compaction' is the local compaction of the material, 'k_e' is and 'n_e' are hardening parameters that for a constant packing ratio has values 1.0 and 0.5 respectively.
| n_e | - The hardening constant n_e of the material. (Default: 0.5) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setPreconsolidationStress | ( | agx::Real | preconsolidationStress | ) |
Set the stress at which the soil in the default state was compressed in, i.e when it has nominal compaction 1.0.
In order to compress the soil further, the applied stress on the soil has to exceed this.
| preconsolidationStress | - the specified preconsolidationStress to set on the bulk material when in nominal compaction. (Default: 98e3 Pa) |
| void agxTerrain::TerrainMaterial::CompactionProperties::setStressCutOffFraction | ( | agx::Real | stressCutOffFraction | ) |
Set the fraction of the surface stress that should serve as a cutoff value from when the stress propagation from the surface downward into the soil should stop.
| stressCutOffFraction | - the fraction of the surface stress that serves as the cutoff. (Default: 0.01) |
| agxTerrain::TerrainMaterial::CompactionProperties::AGXTERRAIN_STORE_RESTORE_INTERFACE |
Definition at line 450 of file TerrainMaterial.h.