19 #include <agx/config/AGX_USE_AGXTERRAIN.h>
90 ExcavationContactProperties* getExcavationContactProperties()
const;
448 agx::Real getDilatancyAngleScalingFactor()
const;
461 agx::Real m_compactionTimeRelaxationConstant;
537 agx::Real getAdhesionOverlapFactor()
const;
651 void setLastError( const
agx::
String& errorString );
656 void onPreCollideStep(
Terrain * terrain );
661 void onPreStep(
Terrain * terrain );
666 void onPostStep(
Terrain * terrain );
672 bool isDirty() const;
679 void setDirty(
bool isDirty);
692 void synchronize(
Terrain* terrain);
700 void updateParticleDensity(
Terrain* terrain );
701 void synchronizeBulkProperties(
Terrain* terrain );
702 void synchronizeParticleProperties(
Terrain* terrain );
863 agx::Real m_aggregateStiffnessMultiplier;
864 agx::Real m_excavationStiffnessMultiplier;
873 return m_bulkProperties;
879 return m_compactionProperties;
885 return m_particleProperties;
891 return m_excavationContactProperties;
909 return m_youngsModulus;
915 return m_poissonsRatio;
921 return m_frictionAngle;
926 return m_dilatancyAngle;
936 return m_swellFactor;
941 return m_deltaReposeAngle;
946 return m_adhesionOverlapFactor;
951 return m_dilatancyAngleScalingFactor;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
#define AGXTERRAIN_EXPORT
Class containing the soil bulk properties of and agxTerrain object.
void setDensity(agx::Real density)
Set the bulk density (kg/m^3) of the bulk material.
void setFrictionAngle(agx::Real frictionAngle)
Set the internal friction angle (rad) of the bulk material.
agx::Real getPoissonsRatio() const
agx::Real getSwellFactor() const
agx::Real getCohesion() const
agx::Real m_deltaReposeAngle
void setCohesion(agx::Real cohesion)
Set the bulk cohesion (Pa) of the bulk material.
void setSwellFactor(agx::Real swellFactor)
Set the swell factor of the material, i.e how much the material will expand during excavation.
void setDilatancyAngle(agx::Real dilatancyAngle)
Set the dilatancy angle (rad) of the bulk material.
agx::Real m_poissonsRatio
agx::Real m_frictionAngle
agx::Real m_youngsModulus
agx::Real getYoungsModulus() const
agx::Real m_dilatancyAngle
BulkProperties(TerrainMaterial *terrainMaterial)
Default constructor.
agx::Real getMaximumDensity() const
agx::Real getDensity() const
void setMaximumDensity(agx::Real maxDensity)
Set the maximum density (kg/m^3) of the bulk material.
virtual ~BulkProperties()
AGXTERRAIN_STORE_RESTORE_INTERFACE
void setPoissonsRatio(agx::Real poissonsRatio)
Set the bulk Poisson's ratio of the bulk material.
void setDeltaReposeAngle(agx::Real deltaReposeAngle)
Set the delta repose angle.
void setYoungsModulus(agx::Real youngsModulus)
Set the bulk Young's modulus (Pa) of the bulk material.
agx::Real getDeltaReposeAngle() const
agx::Real getDilatancyAngle() const
agx::Real getFrictionAngle() const
TerrainMaterial * m_terrainMaterial
Class containing the properties of the soil compaction model used in agxTerrain, such as compression ...
agx::Real getDilatancyAngleScalingFactor() const
Get the dilatancy angle scaling factor with respect to the compaction in the terrain.
void setBankStatePhi(agx::Real phi0)
Set the phi0 value of the bank state soil.
agx::Real getCompressionIndex() const
void setDilatancyAngleScalingFactor(agx::Real scalingFactor)
Set the dilatancy angle scaling factor with respect to compaction in the terrain.
agx::Real getCompactionTimeRelaxationConstant() const
agx::Real getAngleOfReposeCompactionRate() const
AGXTERRAIN_STORE_RESTORE_INTERFACE
void setCompressionIndex(agx::Real compressionIndex)
Sets the compression index for the soil, which is the constant that determines how fast the soil shou...
agx::Real getBankStatePhi() const
agx::Real getHardeningConstantKE() const
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 conta...
void setAngleOfReposeCompactionRate(agx::Real angleOfReposeCompactionRate)
Set how the compaction should increase the angle of repose.
agx::Real getHardeningConstantNE() const
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 comp...
virtual ~CompactionProperties()
agx::Real getStressCutOffFraction() const
void setCompactionTimeRelaxationConstant(agx::Real compactionTimeRelaxationConstant)
Set time relaxation for compaction.
void setStressCutOffFraction(agx::Real stressCutOffFraction)
Set the fraction of the surface stress that should serve as a cutoff value from when the stress propa...
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 conta...
agx::Real getPreconsolidationStress() const
Class containing the properties of the created soil particles in the Terrain, such as particle densit...
ParticleProperties(TerrainMaterial *terrainMaterial)
void setParticleTerrainRestitution(agx::Real restitution)
Set particle <-> terrain restitution of the bulk material.
virtual ~ParticleProperties()
ParticleTerrainParameters m_particleTerrainParameters
agx::Real getParticleTerrainRestitution() const
agx::Real getParticleSurfaceFriction() const
void setParticleTerrainSurfaceFriction(agx::Real friction)
Set the particle <-> terrain surface friction of the bulk material.
void setParticleTerrainRollingResistance(agx::Real rollingResistance)
Set the particle <-> terrain rolling resistance of the bulk material.
agx::Real getParticleYoungsModulus() const
agx::Real m_adhesionOverlapFactor
agx::Real getParticleTerrainSurfaceFriction() const
agx::Real getParticleCohesion() const
TerrainMaterial * m_terrainMaterial
void setParticleYoungsModulus(agx::Real youngsModulus)
Set the particle Young's modulus (Pa) of the bulk material.
agx::Real getParticleTerrainRollingResistance() const
void setParticleTerrainYoungsModulus(agx::Real youngsModulus)
Set particle <-> Terrain Young's modulus (Pa) of the bulk material.
void setParticleSurfaceFriction(agx::Real friction)
Set the particle surface friction of the bulk material.
agx::Real getParticleDensity() const
void setParticleRollingResistance(agx::Real rollingResistance)
Set the particle rolling resistance of the bulk material.
ParticleParticleParameters m_particleParticleParameters
agx::Real getAdhesionOverlapFactor() const
agx::Real getParticleTerrainCohesion() const
void setAdhesionOverlapFactor(agx::Real adhesionOverlapFactor)
Set the adhesion overlap factor of particle contacts, i.e what fraction of the particle radius is all...
agx::Real getParticleTerrainYoungsModulus() const
void setParticleTerrainCohesion(agx::Real cohesion)
Set the particle <-> terrain cohesion (Pa) of the bulk material.
void setParticleRestitution(agx::Real restitution)
Set the particle restitution of the bulk material.
agx::Real getParticleRestitution() const
void setParticleCohesion(agx::Real cohesion)
Set the particle cohesion (Pa) of the bulk material.
AGXTERRAIN_STORE_RESTORE_INTERFACE
agx::Real getParticleRollingResistance() const
This class is used to describe the general material properties of the Terrain.
ExcavationContactProperties(TerrainMaterial *terrainMaterial)
Default constructor.
BulkProperties * getBulkProperties() const
agx::Real getMaximumDepth() const
void setDepthDecayFactor(agx::Real depthDecay)
Set the depth decay factor of a soil aggregate <-> terrain contact.
agx::Real getDepthAngleThreshold() const
Return the lower angle threshold between the separation normal and the aggregate <-> terrain contact ...
agx::Real getSoilPackingFraction() const
agx::Real getDepthIncreaseFactor() const
void setExcavationStiffnessMultiplier(agx::Real excavationStiffnessMultiplier)
Set the contact stiffness multiplier for the generated contacts between the soil aggregates <-> shove...
void setDepthAngleThreshold(agx::Real depthAngleThreshold)
Set the lower angle threshold between the separation normal and the aggregate <-> terrain contact pla...
agx::Real getMaximumAggregateNormalForce() const
ExcavationContactProperties * getExcavationContactProperties() const
agx::String getLastError() const
CompactionProperties * getCompactionProperties() const
void setDepthIncreaseFactor(agx::Real depthIncreaseFactor)
Set the depth increase factor of a soil aggregate <-> terrain contact.
void setMaximumContactDepth(agx::Real maximumDepth)
Set the maximum depth (m) of a soil aggregate <-> terrain contact.
const agx::String & getDescription() const
agx::Real getAggregateStiffnessMultiplier() const
Internal Method.
TerrainMaterial(const agx::String &description="")
Default constructor.
void printParameters() const
Print the internal material parameters in a formatted way.
agx::Real getExcavationStiffnessMultiplier() const
Get the contact stiffness multiplier for the generated contacts between the soil aggregates <-> shove...
AGXTERRAIN_STORE_RESTORE_INTERFACE
void setAggregateStiffnessMultiplier(agx::Real stiffnessMultiplier)
Internal Method.
void setMaximumAggregateNormalForce(agx::Real maximumAggregateForce)
Set the maximum force that the soil aggregate <-> terrain contacts are allowed to have.
agx::Real getDepthDecayFactor() const
ParticleProperties * getParticleProperties() const
void setDescription(const agx::String &description)
Set the name of the object.
virtual ~ExcavationContactProperties()
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Base class providing referencing counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AgXString< std::string > String
ParticleParticleParameters()
agx::Real rollingResistance
agx::Real surfaceFriction
ParticleTerrainParameters()
agx::Real rollingResistance
agx::Real surfaceFriction