AGX Dynamics  2.37.2.0
agxCable::SegmentDamage Class Reference

A SegmentDamage instance records damages estimates computed for a single cable segment. More...

#include <SegmentDamage.h>

Public Member Functions

 SegmentDamage ()
 Create a SegmentDamage with all damages set to zero. More...
 
agx::Real bendDeformation () const
 
agx::Real & bendDeformation ()
 
agx::Real bendRate () const
 
agx::Real & bendRate ()
 
agx::Real bendTension () const
 
agx::Real & bendTension ()
 
agx::Real contactFrictionForce () const
 
agx::Real & contactFrictionForce ()
 
agx::Real contactNormalForce () const
 
agx::Real & contactNormalForce ()
 
agx::Real operator[] (DamageTypes::DamageType type) const
 
agx::Real & operator[] (DamageTypes::DamageType type)
 
agx::Real operator[] (size_t index) const
 Access damages based on index instead of type name. More...
 
agx::Real & operator[] (size_t index)
 
agx::Real stretchDeformation () const
 
agx::Real & stretchDeformation ()
 
agx::Real stretchRate () const
 
agx::Real & stretchRate ()
 
agx::Real stretchTension () const
 
agx::Real & stretchTension ()
 
agx::Real total () const
 
agx::Real twistDeformation () const
 
agx::Real & twistDeformation ()
 
agx::Real twistRate () const
 
agx::Real & twistRate ()
 
agx::Real twistTension () const
 
agx::Real & twistTension ()
 

Detailed Description

A SegmentDamage instance records damages estimates computed for a single cable segment.

It can hold either the contributions for a single time step, or accumulated contributions for several time steps. The SegmentDamage instances are held by a CableDamageImplementation instance.

Definition at line 40 of file SegmentDamage.h.

Constructor & Destructor Documentation

◆ SegmentDamage()

agxCable::SegmentDamage::SegmentDamage ( )

Create a SegmentDamage with all damages set to zero.

Member Function Documentation

◆ bendDeformation() [1/2]

agx::Real agxCable::SegmentDamage::bendDeformation ( ) const

◆ bendDeformation() [2/2]

agx::Real& agxCable::SegmentDamage::bendDeformation ( )

◆ bendRate() [1/2]

agx::Real agxCable::SegmentDamage::bendRate ( ) const

◆ bendRate() [2/2]

agx::Real& agxCable::SegmentDamage::bendRate ( )

◆ bendTension() [1/2]

agx::Real agxCable::SegmentDamage::bendTension ( ) const

◆ bendTension() [2/2]

agx::Real& agxCable::SegmentDamage::bendTension ( )

◆ contactFrictionForce() [1/2]

agx::Real agxCable::SegmentDamage::contactFrictionForce ( ) const

◆ contactFrictionForce() [2/2]

agx::Real& agxCable::SegmentDamage::contactFrictionForce ( )

◆ contactNormalForce() [1/2]

agx::Real agxCable::SegmentDamage::contactNormalForce ( ) const

◆ contactNormalForce() [2/2]

agx::Real& agxCable::SegmentDamage::contactNormalForce ( )

◆ operator[]() [1/4]

agx::Real agxCable::SegmentDamage::operator[] ( DamageTypes::DamageType  type) const
Parameters
type- The type of damage to access.
Returns
The damage recorded for the given type.

◆ operator[]() [2/4]

agx::Real& agxCable::SegmentDamage::operator[] ( DamageTypes::DamageType  type)

◆ operator[]() [3/4]

agx::Real agxCable::SegmentDamage::operator[] ( size_t  index) const

Access damages based on index instead of type name.

Convenience operator to make looping over all damages easier. The indices correspond to the enum literals in agxCable::DamageTypes. index must be less than agxCable::DamageTypes::NUM_CABLE_DAMAGE_TYPES.

Parameters
index- The index of the damage type to access.
Returns
The damage recorded for the given index.

◆ operator[]() [4/4]

agx::Real& agxCable::SegmentDamage::operator[] ( size_t  index)

◆ stretchDeformation() [1/2]

agx::Real agxCable::SegmentDamage::stretchDeformation ( ) const

◆ stretchDeformation() [2/2]

agx::Real& agxCable::SegmentDamage::stretchDeformation ( )

◆ stretchRate() [1/2]

agx::Real agxCable::SegmentDamage::stretchRate ( ) const

◆ stretchRate() [2/2]

agx::Real& agxCable::SegmentDamage::stretchRate ( )

◆ stretchTension() [1/2]

agx::Real agxCable::SegmentDamage::stretchTension ( ) const

◆ stretchTension() [2/2]

agx::Real& agxCable::SegmentDamage::stretchTension ( )

◆ total()

agx::Real agxCable::SegmentDamage::total ( ) const
Returns
The sum of all damage estimates.

◆ twistDeformation() [1/2]

agx::Real agxCable::SegmentDamage::twistDeformation ( ) const

◆ twistDeformation() [2/2]

agx::Real& agxCable::SegmentDamage::twistDeformation ( )

◆ twistRate() [1/2]

agx::Real agxCable::SegmentDamage::twistRate ( ) const

◆ twistRate() [2/2]

agx::Real& agxCable::SegmentDamage::twistRate ( )

◆ twistTension() [1/2]

agx::Real agxCable::SegmentDamage::twistTension ( ) const

◆ twistTension() [2/2]

agx::Real& agxCable::SegmentDamage::twistTension ( )

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