19 #include <agx/config/AGX_USE_AGXTERRAIN.h>
44 bool getEnableLockedBorders()
const;
59 bool getDeleteSoilParticlesOutsideBounds()
const;
70 agx::Real getPenetrationForceVelocityScaling()
const;
75 agx::Real getAvalancheMaxHeightGrowth()
const;
81 agx::Real getAvalancheDecayFraction()
const;
108 agx::Real getMaximumParticleActivationVolume()
const;
126 bool getEnableCreateDynamicMass()
const;
132 bool getEnableDeformation()
const;
323 LOCKED_BORDERS = 1 << 0,
324 CREATE_PATICLES = 1 << 1,
325 DELETE_PARTICLES_OUTSIDE_BOUNDS = 1 << 2,
326 ENABLE_SOIL_COMPACTION = 1 << 3,
327 ENABLE_AVALANCHING = 1 << 4,
328 ENABLE_DYNAMIC_MASS = 1 << 5,
329 ENABLE_DEFORMATION = 1 << 6,
331 using Flags = agx::BitState<StateFlags, agx::UInt32>;
337 agx::Real m_penetrationForceVelocityScaling;
342 std::array<agx::Real, 6> m_soilAggregateCompliance;
347 float m_particleSizeScaling;
354 return m_flags.Is( StateFlags::ENABLE_DEFORMATION );
359 return m_flags.Is(StateFlags::LOCKED_BORDERS);
366 return m_avalancheMaxHeightGrowth;
373 return m_avalancheDecayFraction;
380 return m_flags.Is(StateFlags::DELETE_PARTICLES_OUTSIDE_BOUNDS);
387 return m_penetrationForceVelocityScaling;
394 return m_maximumActivationVolume;
401 return m_soilAggregateCompliance[dof];
408 return m_flags.Is( StateFlags::ENABLE_DYNAMIC_MASS );
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
#define AGXTERRAIN_EXPORT
Class for containing and managing the different agxTerrain::Terrain settings.
bool getEnableLockedBorders() const
void setMaximumParticleActivationVolume(agx::Real volume)
Sets the maximum volume (m3) of active zone wedges that should wake particles.
void setSoilParticleGrowthRate(agx::Real growthRateFactor)
Set the rate factor in the algorithm for growing soil particles from fluid mass and particle resizing...
void setAvalancheDecayFraction(agx::Real decayFraction)
Set the fraction of the height difference that violates the angle of repose condition that will be tr...
agx::Real getSoilParticleLifeTime() const
void setSoilParticleMergeRate(agx::Real mergeRate)
Set the merge rate for soil particles into the terrain.
void setSoilAggregateLockCompliance(agx::Real compliance, agx::Int dof)
Set the compliance of the soil aggregate lock joint the local constraint dimensions to relax or incre...
void setEnableAvalanching(bool enable)
Set whether to enable avalanching in the terrain.
agx::Real getPenetrationForceVelocityScaling() const
agx::Real getAvalancheMaxHeightGrowth() const
Get the maximum allowed height transfer per time step due to avalanching.
agx::BitState< StateFlags, agx::UInt32 > Flags
agx::Real getSoilAggregateLockCompliance(agx::Int dof) const
Set the compliance of the soil aggregate lock joint the local constraint dimensions to relax or incre...
void setActivationSpeed(agx::Real activationSpeed)
Set the shovel speed threshold in the excavation plane when static mass in the active zone is convert...
void setEnableSoilCompaction(bool enable)
Set whether or not to use the soil compaction calculations in the terrain.
void setCreateParticles(bool enable)
Set whether the terrain should create particles or not during shovel interactions.
float getSoilParticleSizeScaling()
Get soil particle size scaling factor.
void setSoilMergeSpeedThreshold(agx::Real speedThreshold)
Set the absolute lower speed (m/s) threshold where soil particles are allowed to merge with the terra...
agx::Real getAvalancheDecayFraction() const
void setSoilParticleLifeTime(agx::Real lifeTime)
Set the lifetime (s) of created soil particles in the terrain.
agx::Real getActivationSpeed() const
Get the shovel speed threshold in the excavation plane of shovel deformers when static mass in the ac...
void setAvalancheErrorThreshold(agx::Real errorThreshold)
Set the fractional error threshold for the height difference that will trigger avalanching in a grid ...
agx::Real getAvalancheErrorThreshold() const
void setEnableDeformation(bool enable)
Sets if terrain deformation should be enabled.
agx::Real getSoilMergeSpeedThreshold() const
void setPenetrationForceVelocityScaling(agx::Real penetrationForceVelocityScaling)
Set the penetration force velocity scaling constant.
void setDirty(bool isDirty)
Set dirty flag on the TerrainProperties.
bool getCreateParticles() const
agx::Real getSoilParticleMergeRate() const
void setEnableCreateDynamicMass(bool enable)
Sets if dynamic mass should be created during excavation.
bool getEnableDeformation() const
void setSoilParticleMergeThreshold(agx::Real radiusFraction)
Set the fraction of the particle nominal radius that will trigger instant merge of soil particles int...
void setDeleteSoilParticlesOutsideBounds(bool enable)
Set if terrain should delete soil particles outside of terrain bounds.
agx::Real getSoilParticleMergeThreshold() const
bool getDeleteSoilParticlesOutsideBounds() const
bool getEnableCreateDynamicMass() const
void setSoilParticleSizeScaling(float scalingFactor)
Set soil particle size scaling factor.
agx::Real getSoilParticleGrowthRate() const
agx::Real getMaximumParticleActivationVolume() const
void setAvalancheMaxHeightGrowth(agx::Real maxHeightGrowth)
Set the maximum allowed height (m) transfer per time step due to avalanching.
void setEnableLockedBorders(bool enable)
Set whether to fixate the height of the borders in the terrain.
bool getEnableSoilCompaction() const
bool getEnableAvalanching() const
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.