AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TerrainPhysics.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agxTerrain/Terrain.h>
20 
21 namespace agxTerrain
22 {
27  {
28  public:
52  const agx::Vec3i& voxelIndex,
53  agx::Real stress,
54  agx::Real timeFactor,
55  agx::Real& newCompaction);
56 
83  const agx::Vec3i& voxelIndex,
84  agx::Real stress,
85  agx::Real timeFactor,
86  agx::Real& newCompaction);
87 
97  static agx::Real calculateStressFromUniformDiskLoad(agx::Real depth, agx::Real surfaceLoad, agx::Real diskRadius);
98 
107  static agx::Real calculateBoussinesqFrolichSubSoilStress(agx::Real depth, agx::Real surfaceForce, agx::Real concentrationFactor, const agx::Vec3& rk_vec);
108 
116  static agx::Real calculateCompressionMultiplier(agx::Real hardnessRate, agx::Real compaction, agx::Real swellCompaction=1.0);
117 
129  static agx::Real calculateCompactionTimeFactor(agx::Real contactTime, agx::Real tau_c);
130 
137  static agx::Real getAngleOfReposeMultiplier(Terrain* terrain, const agx::Vec3i& voxelIndex);
138 
147  static agx::Real calculateReposeHeight(Terrain* terrain, const agx::Vec2i& receivingIndex, const agx::Vec2i& reposingIndex);
148 
149 
153  static agx::Vec2 calculateReposeHeights( Terrain* terrain,
154  const agx::Vec3i& receivingSurfaceVoxelIndex,
155  const agx::Vec3i& reposingSurfaceVoxelIndex,
156  const agx::Vec2& tanFrictionAngles );
157 
165  static agx::Real calculateYoungsModulus_POW2(agx::Real originalYoungsModulus, agx::Real hardeningRate, agx::Real compaction);
166 
181  static agx::Real calculateYoungsModulus_CAM_CLAY(agx::Real originalYoungsModulus, agx::Real k_e, agx::Real n_e, agx::Real compaction);
182 
197 
204  static agx::Real calculatePreconsolidationStressLog10(Terrain* terrain, const agx::Vec3i& voxelIndex);
205 
212  static agx::Real calculatePreconsolidationStressVoidRatio(Terrain* terrain, const agx::Vec3i& voxelIndex);
213 
224  static agx::Real calculateDilatancyAngleVoxel( const Terrain* terrain, const agx::Vec3i& voxelIndex );
225 
237  static agx::Real calculateDilatancyAngle( const TerrainMaterial* terrainMaterial, agx::Real compaction );
238 
249  static agx::Real calculateEffectiveFrictionAngleVoxel( const Terrain* terrain, const agx::Vec3i& voxelIndex );
250 
261  static agx::Real calculateEffectiveFrictionAngleTerrainIndex( const Terrain* terrain, const agx::Vec2i& terrainIndex );
262 
273  static agx::Real calculateEffectiveFrictionAngle( const TerrainMaterial* terrainMaterial, agx::Real compaction );
274 
284  static agx::Real estimateCriticalCompaction( const TerrainMaterial* terrainMaterial );
285  };
286 }
static agx::Real calculateReposeHeight(Terrain *terrain, const agx::Vec2i &receivingIndex, const agx::Vec2i &reposingIndex)
Calculate the local repose height, i.e the height difference where above that avalanching will begin...
static bool calculateNewCompactionFromStressLog10(Terrain *terrain, const agx::Vec3i &voxelIndex, agx::Real stress, agx::Real timeFactor, agx::Real &newCompaction)
Estimate new compaction in a voxel from an applied stress using the density log10 method...
static agx::Real calculateEffectiveFrictionAngleVoxel(const Terrain *terrain, const agx::Vec3i &voxelIndex)
Calculate the effective friction angle of a voxel in a specific terrain.
static agx::Real calculatePreconsolidationStressLog10(Terrain *terrain, const agx::Vec3i &voxelIndex)
Calculate the pre-consolidation stress of the material in a voxel with specified index using the void...
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
static agx::Real getAngleOfReposeMultiplier(Terrain *terrain, const agx::Vec3i &voxelIndex)
Calculate the multiplier which is used to modify the local angle of repose of the material given the ...
static agx::Real calculateBoussinesqFrolichSubSoilStress(agx::Real depth, agx::Real surfaceForce, agx::Real concentrationFactor, const agx::Vec3 &rk_vec)
Calculate stress at a given depth and distance from a surface point force using the Boussinesq-Frolic...
static agx::Real calculateDilatancyAngleVoxel(const Terrain *terrain, const agx::Vec3i &voxelIndex)
Calculate the local dilatancy angle in a specified voxel in the terrain.
static agx::Real calculateYoungsModulus_CAM_CLAY(agx::Real originalYoungsModulus, agx::Real k_e, agx::Real n_e, agx::Real compaction)
Calculate a new Young&#39;s modulus using the Cam-Clay model from critical-state theories.
static agx::Real calculateYoungsModulus_POW2(agx::Real originalYoungsModulus, agx::Real hardeningRate, agx::Real compaction)
Calculate a new Young&#39;s modulus given a hardening rate and compaction.
This class is used to describe the general material properties of the Terrain.
static agx::Real calculateHardnessMultiplier_CAM_CLAY(agx::Real k_e, agx::Real n_e, agx::Real compaction)
Calculate the hardness multiplier for the the Cam-Clay model from critical-state theories.
static agx::Real calculateStressFromUniformDiskLoad(agx::Real depth, agx::Real surfaceLoad, agx::Real diskRadius)
Calculate stress at a given depth directly under the middle axis of a uniform disk, given in &quot;An Introduction to Soil Mechanics pg. 219.&quot; This is the Boussinesq method integrated over a uniform disk.
static agx::Real estimateCriticalCompaction(const TerrainMaterial *terrainMaterial)
Estimate the critical compaction of a TerrainMaterial which is used in calculating the local dilatanc...
Utility class where most of the physics calculation used in agxTerrain is gathered.
static agx::Real calculateEffectiveFrictionAngle(const TerrainMaterial *terrainMaterial, agx::Real compaction)
Calculate the effective friction angle of a TerrainMaterial given a specified compaction.
static agx::Vec2 calculateReposeHeights(Terrain *terrain, const agx::Vec3i &receivingSurfaceVoxelIndex, const agx::Vec3i &reposingSurfaceVoxelIndex, const agx::Vec2 &tanFrictionAngles)
Performs the same calculations as calculateReposeHeight and also computes the height difference for t...
static bool calculateNewCompactionFromStressVoidRatio(Terrain *terrain, const agx::Vec3i &voxelIndex, agx::Real stress, agx::Real timeFactor, agx::Real &newCompaction)
Estimate new compaction in a voxel from an applied stress using the void ratio method.
static agx::Real calculatePreconsolidationStressVoidRatio(Terrain *terrain, const agx::Vec3i &voxelIndex)
Calculate the pre-consolidation stress of the material in a voxel with specified index using the void...
static agx::Real calculateEffectiveFrictionAngleTerrainIndex(const Terrain *terrain, const agx::Vec2i &terrainIndex)
Calculate the effective friction angle at the surface of a specific terrain with a given terrain inde...
static agx::Real calculateDilatancyAngle(const TerrainMaterial *terrainMaterial, agx::Real compaction)
Calculate the dilatancy angle for a TerrainMaterial given a specific compaction.
double Real
Definition: Real.h:42
static agx::Real calculateCompactionTimeFactor(agx::Real contactTime, agx::Real tau_c)
Calculate the compaction time factor used to relax the compaction rate of the material.
static agx::Real calculateCompressionMultiplier(agx::Real hardnessRate, agx::Real compaction, agx::Real swellCompaction=1.0)
Calculate the compression multiplier which is used to modify the Young&#39;s Modulus of terrain contacts ...