AGXDynamics  2.31.1.0
agxCable::CableDamage Class Reference

The CableDamage class is used to estimate damage caused to a cable during a simulation. More...

#include <CableDamage.h>

+ Inheritance diagram for agxCable::CableDamage:

Public Member Functions

 CableDamage ()
 Create a new CableDamage instance. More...
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
const agxCable::SegmentDamage & getAccumulatedDamageAt (size_t index) const
 Provides access to the accumulated damage estimation for a particular cable segment. More...
 
agxCable::SegmentDamagePtrVector getAccumulatedDamagePtrs () const
 
const agxCable::SegmentDamageVector & getAccumulatedDamages () const
 Provides access to the per-segment damage estimates that has been accumulated over the simulation so far. More...
 
agx::Real getBendDeformationWeight () const
 
agx::Real getBendRateWeight ()
 
agx::Real getBendTensionWeight ()
 
agx::Real getBendThreshold ()
 
agxCable::Cable * getCable ()
 Get the cable that this CableDamage is estimating damage for. More...
 
const agxCable::Cable * getCable () const
 Get the cable that this CableDamage is estimating damage for. More...
 
const char * getClassName () const override
 
const agxCable::SegmentDamage & getCurrentDamageAt (size_t index) const
 Provides access to the last time step's damage contribution for a particular cable segment. More...
 
agxCable::SegmentDamagePtrVector getCurrentDamagePtrs () const
 
const agxCable::SegmentDamageVector & getCurrentDamages () const
 Provides access to the per-segment damage estimate contributions that the last time step produced. More...
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::Real getFrictionForceWeight ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agxSDK::LinkedStructure * getLinkedStructure () const
 
const agx::Name & getName () const
 
agx::Real getNormalForceWeight ()
 
size_t getNumDamages () const
 May return zero until the cable for which damage is estimated has been fully initialized. More...
 
int getReferenceCount () const
 
agxSDK::Simulation * getSimulation () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::Real getStretchDeformationWeight () const
 
agx::Real getStretchRateWeight ()
 
agx::Real getStretchTensionWeight ()
 
agx::Real getStretchThreshold ()
 
agx::Real getThreshold (agxCable::Direction direction) const
 
agx::Real getTwistDeformationWeight () const
 
agx::Real getTwistRateWeight ()
 
agx::Real getTwistTensionWeight ()
 
agx::Real getTwistThreshold ()
 
agx::Uuid getUuid () const
 
agx::Real getWeight (agxCable::DamageTypes::DamageType type) const
 Get the weight, or scaling, used for the given damage source when summing it with all the other damage sources to form a total damage estimate. More...
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isFinished () const
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
void setBendDeformationWeight (agx::Real weight)
 Set the weight to use for damage caused by bend deformation. More...
 
void setBendRateWeight (agx::Real weight)
 Set the weight to use for damage caused by bend rate. More...
 
void setBendTensionWeight (agx::Real weight)
 Set the weight to use for damage caused by bend tension. More...
 
void setBendThreshold (agx::Real threshold)
 Set the bend deformation threshold that must be surpassed before the bend deformation begin to contribute to the damage estimation. 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 setFrictionForceWeight (agx::Real weight)
 Set the weight to use for damage caused by friction forces from contacts. More...
 
void setName (const agx::Name &name)
 Assign new name to this component. More...
 
void setNormalForceWeight (agx::Real weight)
 Set the weight to use for damage caused by normal forces from contacts. More...
 
void setStretchDeformationWeight (agx::Real weight)
 Set the weight to use for damage caused by stretch deformation. More...
 
void setStretchRateWeight (agx::Real weight)
 Set the weight to use for damage caused by stretch rate. More...
 
void setStretchTensionWeight (agx::Real weight)
 Set the weight to use for damage caused by stretch tension. More...
 
void setStretchThreshold (agx::Real threshold)
 Set the stretch deformation threshold that must be surpassed before the stretch deformation begin to contribute to the damage estimation. More...
 
void setThreshold (agxCable::Direction direction, agx::Real threshold)
 Set the deformation threshold for the given direction that must be surpassed before the deformation begin to contribute to the damage estimation. More...
 
void setTwistDeformationWeight (agx::Real weight)
 Set the weight to use for damage caused by twist deformation. More...
 
void setTwistRateWeight (agx::Real weight)
 Set the weight to use for damage caused by twist rate. More...
 
void setTwistTensionWeight (agx::Real weight)
 Set the weight to use for damage caused by twist tension. More...
 
void setTwistThreshold (agx::Real threshold)
 Set the twist deformation threshold that must be surpassed before the twist deformation begin to contribute to the damage estimation. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
void setWeight (agxCable::DamageTypes::DamageType type, agx::Real weight)
 Set the weight, or scaling, to use for the given damage source when summing it with all the other damage sources to form a total damage estimate. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static agxCable::CableDamage * getCableDamage (agxCable::Cable *cable)
 Find the CableDamage instances that estimate damage for the given cable. More...
 
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...
 
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Protected Member Functions

virtual ~CableDamage ()
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
virtual void onAddNotification (agxSDK::LinkedStructure *linkedStructure) override
 Called when this component is added to a linked structure. More...
 
virtual void onAddNotification (agxSDK::Simulation *simulation) override
 Called when addNotification is executed when this linked structure is added to the simulation. More...
 
virtual void onLastStep ()
 Called on simulation last step event - after user lastStep. More...
 
virtual void onPostStep () override
 Called on simulation post step event - after user postStep. More...
 
virtual void onPreCollideStep ()
 Called on simulation pre-collide step event - after user preCollide. More...
 
virtual void onPreStep () override
 Called on simulation pre step event - after user preStep. More...
 
virtual void onRemoveNotification (agxSDK::Simulation *simulation)
 Called when removeNotification is executed when this linked structure is removed from the simulation. More...
 
virtual void onRemoveNotification (agxSDK::LinkedStructure *linkedStructure)
 Called when this component is removed from a linked structure. More...
 

Static Protected Member Functions

static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Protected Attributes

Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

The CableDamage class is used to estimate damage caused to a cable during a simulation.

Damage is estimated from a number of damage sources and weighted together to form a total.

The damage sources are categorized in two ways: dimension and cause. The dimension is one of the regular cable dimensions: bend, twist, or stretch. The cause is the state of the cable that is producing the damage and is either tension, deformation or deformation rate. There is also contacts, which are treated separately.

Given three dimensions; bend, twist, and stretch, and three sources; tension, deformation and deformation rate, we get a total of nine damage types, plus two contact types normal force and friction force. They are enumerated in agxCable::DamageTypes.

The damage model incorporates the notion of "safe deformations". These are deformation thresholds below which no damage is being produced due to deformation or deformation rate. Tension and contact damage still apply.

Damage is estimated per cable segment.

Definition at line 57 of file CableDamage.h.

Constructor & Destructor Documentation

◆ CableDamage()

agxCable::CableDamage::CableDamage ( )

Create a new CableDamage instance.

The CableDamage is activated when added to a Cable.

◆ ~CableDamage()

virtual agxCable::CableDamage::~CableDamage ( )
protectedvirtual

Member Function Documentation

◆ allocateObserverVector()

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited

◆ as() [1/2]

template<typename T >
T* agx::Referenced::as ( )
inherited

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().

◆ as() [2/2]

template<typename T >
const T* agx::Referenced::as ( ) const
inherited

◆ asSafe() [1/2]

template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ asSafe() [2/2]

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited

◆ create() [1/2]

static agxStream::Serializable* agxCable::CableDamage::create ( )
inlinestatic

Definition at line 393 of file CableDamage.h.

◆ create() [2/2]

static agxStream::Serializable* agxCable::CableDamage::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 393 of file CableDamage.h.

◆ deleteUsingDeleteHandler()

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getAccumulatedDamageAt()

const agxCable::SegmentDamage& agxCable::CableDamage::getAccumulatedDamageAt ( size_t  index) const

Provides access to the accumulated damage estimation for a particular cable segment.

index must be less than the value returned by getNumDamages.

Parameters
index- The index of the SegmentDamage instance to access.
Returns
The SegmentDamage at the given index.

◆ getAccumulatedDamagePtrs()

agxCable::SegmentDamagePtrVector agxCable::CableDamage::getAccumulatedDamagePtrs ( ) const

◆ getAccumulatedDamages()

const agxCable::SegmentDamageVector& agxCable::CableDamage::getAccumulatedDamages ( ) const

Provides access to the per-segment damage estimates that has been accumulated over the simulation so far.

Returns
A collection of SegmentDamage instances holding the sum of all time step's damage contributions.

◆ getBendDeformationWeight()

agx::Real agxCable::CableDamage::getBendDeformationWeight ( ) const
See also
setBendDeformationWeight
Returns
The bend deformation weight.

◆ getBendRateWeight()

agx::Real agxCable::CableDamage::getBendRateWeight ( )
See also
setBendRateWeight
Returns
The bend rate weight.

◆ getBendTensionWeight()

agx::Real agxCable::CableDamage::getBendTensionWeight ( )
See also
setBendTensionWeight
Returns
The bend tension weight.

◆ getBendThreshold()

agx::Real agxCable::CableDamage::getBendThreshold ( )
See also
setBendRateThreshold
Returns
The bend deformation threshold

◆ getCable() [1/2]

agxCable::Cable* agxCable::CableDamage::getCable ( )

Get the cable that this CableDamage is estimating damage for.

Will return nullptr if this CableDamage hasn't been added to a cable yet.

Returns
The cable for which this CableDamage is estimating damage.

◆ getCable() [2/2]

const agxCable::Cable* agxCable::CableDamage::getCable ( ) const

Get the cable that this CableDamage is estimating damage for.

Will return nullptr if this CableDamage hasn't been added to a cable yet.

Returns
The cable for which this CableDamage is estimating damage.

◆ getCableDamage()

static agxCable::CableDamage* agxCable::CableDamage::getCableDamage ( agxCable::Cable *  cable)
static

Find the CableDamage instances that estimate damage for the given cable.

Parameters
cable- The cable for which a CableDamage instance should be found.
Returns
The CableDamage instance that is part of the given cable, or nullptr if there is no such CableDamage.

◆ getClassName()

const char* agxCable::CableDamage::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 393 of file CableDamage.h.

◆ getConstructClassId()

static const char* agxCable::CableDamage::getConstructClassId ( )
inlinestatic

Definition at line 393 of file CableDamage.h.

◆ getCurrentDamageAt()

const agxCable::SegmentDamage& agxCable::CableDamage::getCurrentDamageAt ( size_t  index) const

Provides access to the last time step's damage contribution for a particular cable segment.

index must be less than the value returned by getNumDamages.

Parameters
index- The index of the SegmentDamage instance to access.
Returns
The SegmentDamage at the given index.

◆ getCurrentDamagePtrs()

agxCable::SegmentDamagePtrVector agxCable::CableDamage::getCurrentDamagePtrs ( ) const

◆ getCurrentDamages()

const agxCable::SegmentDamageVector& agxCable::CableDamage::getCurrentDamages ( ) const

Provides access to the per-segment damage estimate contributions that the last time step produced.

Returns
A collection of SegmentDamage instances holding the last time step's damage contributions.

◆ getDeleteHandler()

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.

◆ 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

◆ getFrictionForceWeight()

agx::Real agxCable::CableDamage::getFrictionForceWeight ( )
See also
setFrictionForceWeight
Returns
The friction force weight.

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

◆ getLinkedStructure()

agxSDK::LinkedStructure* agxSDK::LinkedStructureComponent::getLinkedStructure ( ) const
inherited
Returns
the linked structure this component has been added to - otherwise null

◆ getName()

const agx::Name& agxSDK::LinkedStructureComponent::getName ( ) const
inherited
Returns
the given name of this component used to find this component from the linked structure this component is part of

◆ getNormalForceWeight()

agx::Real agxCable::CableDamage::getNormalForceWeight ( )
See also
setNormalForceWeight
Returns
The normal force weight.

◆ getNumDamages()

size_t agxCable::CableDamage::getNumDamages ( ) const

May return zero until the cable for which damage is estimated has been fully initialized.

Returns
The number of segments for which damage is estimated.

◆ getReferenceCount()

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.

◆ getSimulation()

agxSDK::Simulation* agxSDK::LinkedStructureComponent::getSimulation ( ) const
inherited
Returns
the simulation the linked structure has been added to - otherwise null

◆ getStorageAgent()

agxStream::StorageAgent* agxCable::CableDamage::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 393 of file CableDamage.h.

◆ getStretchDeformationWeight()

agx::Real agxCable::CableDamage::getStretchDeformationWeight ( ) const
See also
setStretchDeformationWeight
Returns
The stretch deformation weight.

◆ getStretchRateWeight()

agx::Real agxCable::CableDamage::getStretchRateWeight ( )
See also
setStretchRateWeight
Returns
The stretch rate weight.

◆ getStretchTensionWeight()

agx::Real agxCable::CableDamage::getStretchTensionWeight ( )
See also
setStretchTensionWeight
Returns
The stretch tension weight.

◆ getStretchThreshold()

agx::Real agxCable::CableDamage::getStretchThreshold ( )
See also
setStretchrateThreshold
Returns
The stretch deformation threshold.

◆ getThreshold()

agx::Real agxCable::CableDamage::getThreshold ( agxCable::Direction  direction) const
See also
setThreshold
Parameters
direction- Direction to get deformation threshold for.
Returns
The deformation threshold for the given direction.

◆ getTwistDeformationWeight()

agx::Real agxCable::CableDamage::getTwistDeformationWeight ( ) const
See also
setTwistDeformationWeight
Returns
The twist deformation weight.

◆ getTwistRateWeight()

agx::Real agxCable::CableDamage::getTwistRateWeight ( )
See also
setTwistRateWeight
Returns
The twist rate weight.

◆ getTwistTensionWeight()

agx::Real agxCable::CableDamage::getTwistTensionWeight ( )
See also
setTwistTensionWeight
Returns
The twist tension weight.

◆ getTwistThreshold()

agx::Real agxCable::CableDamage::getTwistThreshold ( )
See also
setTwistRateThreshold
Returns
The twistdeformation threshold

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

◆ getWeight()

agx::Real agxCable::CableDamage::getWeight ( agxCable::DamageTypes::DamageType  type) const

Get the weight, or scaling, used for the given damage source when summing it with all the other damage sources to form a total damage estimate.

Parameters
type- The damage type to get the weight for.
Returns
The weight for the given damage type.

◆ is()

template<typename T >
bool agx::Referenced::is ( ) const
inherited

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

◆ onAddNotification() [1/2]

virtual void agxCable::CableDamage::onAddNotification ( agxSDK::LinkedStructure *  linkedStructure)
overrideprotectedvirtual

Called when this component is added to a linked structure.

Reimplemented from agxSDK::LinkedStructureComponent.

◆ onAddNotification() [2/2]

virtual void agxCable::CableDamage::onAddNotification ( agxSDK::Simulation *  simulation)
overrideprotectedvirtual

Called when addNotification is executed when this linked structure is added to the simulation.

Reimplemented from agxSDK::LinkedStructureComponent.

◆ onLastStep()

virtual void agxSDK::LinkedStructureComponent::onLastStep ( )
protectedvirtualinherited

Called on simulation last step event - after user lastStep.

◆ onPostStep()

virtual void agxCable::CableDamage::onPostStep ( )
overrideprotectedvirtual

Called on simulation post step event - after user postStep.

Reimplemented from agxSDK::LinkedStructureComponent.

◆ onPreCollideStep()

virtual void agxSDK::LinkedStructureComponent::onPreCollideStep ( )
protectedvirtualinherited

Called on simulation pre-collide step event - after user preCollide.

◆ onPreStep()

virtual void agxCable::CableDamage::onPreStep ( )
overrideprotectedvirtual

Called on simulation pre step event - after user preStep.

Reimplemented from agxSDK::LinkedStructureComponent.

◆ onRemoveNotification() [1/2]

virtual void agxSDK::LinkedStructureComponent::onRemoveNotification ( agxSDK::Simulation *  simulation)
protectedvirtualinherited

Called when removeNotification is executed when this linked structure is removed from the simulation.

◆ onRemoveNotification() [2/2]

virtual void agxSDK::LinkedStructureComponent::onRemoveNotification ( agxSDK::LinkedStructure *  linkedStructure)
protectedvirtualinherited

Called when this component is removed from a linked structure.

◆ reference()

void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.

This method should be used with care, always balanced with the same number of calls to unreference.

◆ restore()

virtual void agxCable::CableDamage::restore ( agxStream::InputArchive &  in)
overridevirtual

Reimplemented from agxSDK::LinkedStructureComponent.

◆ setBendDeformationWeight()

void agxCable::CableDamage::setBendDeformationWeight ( agx::Real  weight)

Set the weight to use for damage caused by bend deformation.

Parameters
weight- The new weight for bend deformation damage estimation.

◆ setBendRateWeight()

void agxCable::CableDamage::setBendRateWeight ( agx::Real  weight)

Set the weight to use for damage caused by bend rate.

Bend rate is a measure of how fast the cable is being bent, measured as the change in curvature per unit time.

Parameters
weight- The new weight for bend rate damage estimation.

◆ setBendTensionWeight()

void agxCable::CableDamage::setBendTensionWeight ( agx::Real  weight)

Set the weight to use for damage caused by bend tension.

Parameters
weight- The new weight for bend tension damage estimation.

◆ setBendThreshold()

void agxCable::CableDamage::setBendThreshold ( agx::Real  threshold)

Set the bend deformation threshold that must be surpassed before the bend deformation begin to contribute to the damage estimation.

The threshold is measured in radians per unit length.

Parameters
threshold- The minimum bend deformation for bend damage to be applied.

◆ setDeleteHandler()

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

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

◆ setFrictionForceWeight()

void agxCable::CableDamage::setFrictionForceWeight ( agx::Real  weight)

Set the weight to use for damage caused by friction forces from contacts.

Parameters
weight- The new weight for friction force damage estimation.

◆ setName()

void agxSDK::LinkedStructureComponent::setName ( const agx::Name &  name)
inherited

Assign new name to this component.

The name can be used to find this component from the linked structure this component is part of.

Parameters
name- new name of this component

◆ setNormalForceWeight()

void agxCable::CableDamage::setNormalForceWeight ( agx::Real  weight)

Set the weight to use for damage caused by normal forces from contacts.

Parameters
weight- The new weight for normal force damage estimation.

◆ setStretchDeformationWeight()

void agxCable::CableDamage::setStretchDeformationWeight ( agx::Real  weight)

Set the weight to use for damage caused by stretch deformation.

Parameters
weight- The new weight for stretch deformation damage estimation.

◆ setStretchRateWeight()

void agxCable::CableDamage::setStretchRateWeight ( agx::Real  weight)

Set the weight to use for damage caused by stretch rate.

Stretch rate is a measure of how fast the cable is being stretched, measured in lengths per unit length per unit time.

Parameters
weight- The new weight for stretch rate damage estimation.

◆ setStretchTensionWeight()

void agxCable::CableDamage::setStretchTensionWeight ( agx::Real  weight)

Set the weight to use for damage caused by stretch tension.

Parameters
weight- The new weight for stretch tension damage estimation.

◆ setStretchThreshold()

void agxCable::CableDamage::setStretchThreshold ( agx::Real  threshold)

Set the stretch deformation threshold that must be surpassed before the stretch deformation begin to contribute to the damage estimation.

The threshold is given in length per unit length.

Parameters
threshold- The minimum stretch deformation for stretch damage to be applied.

◆ setThreshold()

void agxCable::CableDamage::setThreshold ( agxCable::Direction  direction,
agx::Real  threshold 
)

Set the deformation threshold for the given direction that must be surpassed before the deformation begin to contribute to the damage estimation.

The unit of the threshold depends on the direction. See setStretchThreshold, setBendThreshold, and setTwistThreshold.

Parameters
direction- The direction to set deformation threshold for.
threshold- The new deformation threshold.
See also
setStretchThreshold
setBendThreshold
setTwistThreshold

◆ setTwistDeformationWeight()

void agxCable::CableDamage::setTwistDeformationWeight ( agx::Real  weight)

Set the weight to use for damage caused by twist deformation.

Parameters
weight- The new weight for twist deformation damage estimation.

◆ setTwistRateWeight()

void agxCable::CableDamage::setTwistRateWeight ( agx::Real  weight)

Set the weight to use for damage caused by twist rate.

Twist rate is a measure of how fast the cable is being twisted, measured in radians per unit length per unit time.

Parameters
weight- The new weight for twist rate damage estimation.

◆ setTwistTensionWeight()

void agxCable::CableDamage::setTwistTensionWeight ( agx::Real  weight)

Set the weight to use for damage caused by twist tension.

Parameters
weight- The new weight for twist tension damage estimation.

◆ setTwistThreshold()

void agxCable::CableDamage::setTwistThreshold ( agx::Real  threshold)

Set the twist deformation threshold that must be surpassed before the twist deformation begin to contribute to the damage estimation.

The twist threshold is measured in radians per unit length.

Parameters
threshold- The minimum twist deformation for twist damage to be applied.

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

◆ setWeight()

void agxCable::CableDamage::setWeight ( agxCable::DamageTypes::DamageType  type,
agx::Real  weight 
)

Set the weight, or scaling, to use for the given damage source when summing it with all the other damage sources to form a total damage estimate.

Parameters
type- The damage type to set the weight for.
weight- The new weight.

◆ store()

virtual void agxCable::CableDamage::store ( agxStream::OutputArchive &  out) const
overridevirtual

Reimplemented from agxSDK::LinkedStructureComponent.

◆ unreference()

void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.

This method should be used with care, always balanced with the same number of calls to reference.

Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.

◆ ValidateCast()

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

Member Data Documentation

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.


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