AGX Dynamics  2.35.0.1
agxModel::ParticleAttributes Class Reference

#include <TerrainParticles.h>

+ Inheritance diagram for agxModel::ParticleAttributes:

Public Types

enum  SoilType { PARTICLE , PARTICLE_SYSTEM_PARTICLE , CONVEX_BODY }
 Enum for type of soil. More...
 

Public Member Functions

 ParticleAttributes ()
 
agx::Real getAdhesiveOverlap () const
 
const char * getClassName () const override
 
agx::Real getCoreRadius () const
 
agx::Real getMergeVelocity2 () const
 
agx::UInt32 getParticleUniqueId () const
 
agx::Real getParticleYoungsModulusMultiplier () const
 
agx::Real getRadius () const
 
bool getRadiusIsDirty () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
SoilType getType ()
 
agx::Real getVolume () const
 
virtual void restore (agxStream::InputArchive &in) override
 
void setCoreRadius (agx::Real coreRadius)
 Set the particle core radius. More...
 
void setMergeVelocity (agx::Real velocity)
 Set the merge velocity for soil particles. More...
 
void setParticleUniqueId (agx::UInt32 uniqueParticleId)
 Set unique Id for soil particles. More...
 
void setParticleYoungsModulusMultiplier (agx::Real multiplier)
 Set how much stiffer the particle Young's modulus to be than the terrain material. More...
 
void setRadius (agx::Real radius)
 Set the soil particle radius. More...
 
void setType (SoilType soilType)
 Set the type of soil to be created when it's time to create particles. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings. More...
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agxStream::Serializable
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 

Additional Inherited Members

- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor. More...
 
 Serializable (const Serializable &other)
 Copy constructor. More...
 
void generateUuid ()
 

Detailed Description

Deprecated:
This class is deprecated and will be removed in a future version of AGX.
See also
agxTerrain::Terrain Class to handle terrain digged up particles.

Definition at line 53 of file TerrainParticles.h.

Member Enumeration Documentation

◆ SoilType

Enum for type of soil.

Enumerator
PARTICLE 
PARTICLE_SYSTEM_PARTICLE 
CONVEX_BODY 

Definition at line 61 of file TerrainParticles.h.

Constructor & Destructor Documentation

◆ ParticleAttributes()

agxModel::ParticleAttributes::ParticleAttributes ( )

Member Function Documentation

◆ create() [1/2]

static agxStream::Serializable* agxModel::ParticleAttributes::create ( )
inlinestatic

Definition at line 152 of file TerrainParticles.h.

◆ create() [2/2]

static agxStream::Serializable* agxModel::ParticleAttributes::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 152 of file TerrainParticles.h.

◆ getAdhesiveOverlap()

agx::Real agxModel::ParticleAttributes::getAdhesiveOverlap ( ) const
Returns
the adhesive overlap used for the material of the soil particles.

◆ getClassName()

const char* agxModel::ParticleAttributes::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 152 of file TerrainParticles.h.

◆ getConstructClassId()

static const char* agxModel::ParticleAttributes::getConstructClassId ( )
inlinestatic

Definition at line 152 of file TerrainParticles.h.

◆ getCoreRadius()

agx::Real agxModel::ParticleAttributes::getCoreRadius ( ) const
Returns
the core radius of soil particles (outer radius minus the adhesion).

◆ getMergeVelocity2()

agx::Real agxModel::ParticleAttributes::getMergeVelocity2 ( ) const
Returns
the square of the merge velocity..

◆ getParticleUniqueId()

agx::UInt32 agxModel::ParticleAttributes::getParticleUniqueId ( ) const
Returns
unique particle id for disabling collisions against them (for example).

◆ getParticleYoungsModulusMultiplier()

agx::Real agxModel::ParticleAttributes::getParticleYoungsModulusMultiplier ( ) const
Returns
how many times stiffer the particles should be than the actual Young's modulus for a material.

◆ getRadius()

agx::Real agxModel::ParticleAttributes::getRadius ( ) const
Returns
the outer radius for the soil particles.

◆ getRadiusIsDirty()

bool agxModel::ParticleAttributes::getRadiusIsDirty ( ) const
Returns
true if the radius has been changed.

◆ getStorageAgent()

agxStream::StorageAgent* agxModel::ParticleAttributes::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 152 of file TerrainParticles.h.

◆ getType()

SoilType agxModel::ParticleAttributes::getType ( )
Returns
the current choice of SoilParticle type.

◆ getVolume()

agx::Real agxModel::ParticleAttributes::getVolume ( ) const
Returns
the volume a soil particle will represent.

◆ restore()

virtual void agxModel::ParticleAttributes::restore ( agxStream::InputArchive &  in)
overridevirtual

◆ setCoreRadius()

void agxModel::ParticleAttributes::setCoreRadius ( agx::Real  coreRadius)

Set the particle core radius.

Changing the core radius will effect the dynamics of the SoilParticles. User could set core radius explicitly for wanted particle behavior. The possible adhesion overlap distance will change.

◆ setMergeVelocity()

void agxModel::ParticleAttributes::setMergeVelocity ( agx::Real  velocity)

Set the merge velocity for soil particles.

I.e the minimum speed of particles before they can be merged with the terrain.

◆ setParticleUniqueId()

void agxModel::ParticleAttributes::setParticleUniqueId ( agx::UInt32  uniqueParticleId)

Set unique Id for soil particles.

To make it possible to disable against other groups.

◆ setParticleYoungsModulusMultiplier()

void agxModel::ParticleAttributes::setParticleYoungsModulusMultiplier ( agx::Real  multiplier)

Set how much stiffer the particle Young's modulus to be than the terrain material.

The terrain material is usually very soft, and if the particle contacts are solved iteratively that will make them behave even softer.

◆ setRadius()

void agxModel::ParticleAttributes::setRadius ( agx::Real  radius)

Set the soil particle radius.

The radius is controlled by agxModel::Terrain through agxModel::TerrainDataInterface. The spheres are conformed in an FCC lattice (terrain fixes this). The core radius should be set so that when introduced particles are mathematically just touching. The radius can be set to a value leq to the height field vertex distance.

◆ setType()

void agxModel::ParticleAttributes::setType ( SoilType  soilType)

Set the type of soil to be created when it's time to create particles.

◆ store()

virtual void agxModel::ParticleAttributes::store ( agxStream::OutputArchive &  out) const
overridevirtual

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