407 void recomputeCurrentDamages();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The CableDamage class is used to estimate damage caused to a cable during a simulation.
const agxCable::Cable * getCable() const
Get the cable that this CableDamage is estimating damage for.
agxCable::Cable * getCable()
Get the cable that this CableDamage is estimating damage for.
void setTwistRateWeight(agx::Real weight)
Set the weight to use for damage caused by twist rate.
const agxCable::SegmentDamageVector & getCurrentDamages() const
Provides access to the per-segment damage estimate contributions that the last time step produced.
void setStretchDeformationWeight(agx::Real weight)
Set the weight to use for damage caused by stretch deformation.
agx::Real getNormalForceWeight()
void setFrictionForceWeight(agx::Real weight)
Set the weight to use for damage caused by friction forces from contacts.
agx::Real getTwistRateWeight()
CableDamage()
Create a new CableDamage instance.
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 dam...
void setBendDeformationWeight(agx::Real weight)
Set the weight to use for damage caused by bend deformation.
const agxCable::SegmentDamageVector & getAccumulatedDamages() const
Provides access to the per-segment damage estimates that has been accumulated over the simulation so ...
virtual void onAddNotification(agxSDK::LinkedStructure *linkedStructure) override
Called when this component is added to a linked structure.
void setNormalForceWeight(agx::Real weight)
Set the weight to use for damage caused by normal forces from contacts.
void setStretchThreshold(agx::Real threshold)
Set the stretch deformation threshold that must be surpassed before the stretch deformation begin to ...
void setTwistThreshold(agx::Real threshold)
Set the twist deformation threshold that must be surpassed before the twist deformation begin to cont...
void setStretchTensionWeight(agx::Real weight)
Set the weight to use for damage caused by stretch tension.
agx::Real getStretchDeformationWeight() const
agx::Real getStretchRateWeight()
const agxCable::SegmentDamage & getAccumulatedDamageAt(size_t index) const
Provides access to the accumulated damage estimation for a particular cable segment.
agx::Real getThreshold(agxCable::Direction direction) const
agx::Real getTwistThreshold()
const agxCable::SegmentDamage & getCurrentDamageAt(size_t index) const
Provides access to the last time step's damage contribution for a particular cable segment.
virtual void onPreStep() override
Called on simulation pre step event - after user preStep.
virtual void onAddNotification(agxSDK::Simulation *simulation) override
Called when addNotification is executed when this linked structure is added to the simulation.
void setTwistDeformationWeight(agx::Real weight)
Set the weight to use for damage caused by twist deformation.
void setBendTensionWeight(agx::Real weight)
Set the weight to use for damage caused by bend tension.
void setBendRateWeight(agx::Real weight)
Set the weight to use for damage caused by bend rate.
void setTwistTensionWeight(agx::Real weight)
Set the weight to use for damage caused by twist tension.
agx::Real getStretchThreshold()
agx::Real getBendRateWeight()
agx::Real getTwistDeformationWeight() const
void setThreshold(agxCable::Direction direction, agx::Real threshold)
Set the deformation threshold for the given direction that must be surpassed before the deformation b...
agx::Real getStretchTensionWeight()
static agxCable::CableDamage * getCableDamage(agxCable::Cable *cable)
Find the CableDamage instances that estimate damage for the given cable.
agx::Real getBendThreshold()
agx::Real getFrictionForceWeight()
agxCable::SegmentDamagePtrVector getAccumulatedDamagePtrs() const
size_t getNumDamages() const
May return zero until the cable for which damage is estimated has been fully initialized.
void setStretchRateWeight(agx::Real weight)
Set the weight to use for damage caused by stretch rate.
agx::Real getBendTensionWeight()
agxCable::SegmentDamagePtrVector getCurrentDamagePtrs() 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 damag...
void setBendThreshold(agx::Real threshold)
Set the bend deformation threshold that must be surpassed before the bend deformation begin to contri...
agx::Real getBendDeformationWeight() const
virtual void onPostStep() override
Called on simulation post step event - after user postStep.
agx::Real getTwistTensionWeight()
A model of a cable using a lumped elements model.
A SegmentDamage instance records damages estimates computed for a single cable segment.
Base implementation of a component (e.g., specific functionality) in linked structures.
Basic implementation of any structure where bodies are linked/constrained together in a well defined ...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Vector containing 'raw' data.
DamageType
Listing of all the cable damage sources that is used by the cable damage estimation model.
Contain classes for 6 DOF lumped element cables/wires/ropes.
Direction
The different directions in which a cable can be deformed.