AGXDynamics  2.31.1.0
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
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
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::Uuid getUuid () const
 
agx::Real getVolume () const
 
bool isFinished () const
 
virtual void restore (agxStream::InputArchive &in) override
 
void setCoreRadius (agx::Real coreRadius)
 Set the particle core radius. More...
 
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 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...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 

Static Public Member Functions

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

Protected Member Functions

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.

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ 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).

◆ getEnableSerialization()

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

◆ getEnableUuidGeneration()

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object

◆ getIndex()

agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

◆ 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.

◆ getUuid()

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

Referenced by agxSDK::UuidHashCollisionFilter::match().

◆ getVolume()

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

◆ isFinished()

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

References AGX_FORCE_INLINE.

◆ 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.

◆ setEnableSerialization()

void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

◆ setEnableUuidGeneration()

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

◆ setFinished()

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

◆ 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.

◆ setUuid()

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

◆ store()

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

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