AGX Dynamics  2.37.2.0
SegmentDamage.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agx/Real.h>
20 #include <agx/Vector.h>
21 
23 #include <agxCable/export.h>
24 
25 #include <cstddef>
26 
27 
28 namespace agxCable
29 {
30  class SegmentDamage;
33 
41  {
42  public:
46  SegmentDamage();
47 
48  agx::Real bendDeformation() const;
49  agx::Real twistDeformation() const;
50  agx::Real stretchDeformation() const;
51 
52  agx::Real bendRate() const;
53  agx::Real twistRate() const;
54  agx::Real stretchRate() const;
55 
56  agx::Real bendTension() const;
57  agx::Real twistTension() const;
58  agx::Real stretchTension() const;
59 
60  agx::Real contactNormalForce() const;
61  agx::Real contactFrictionForce() const;
62 
63  agx::Real& bendDeformation();
64  agx::Real& twistDeformation();
65  agx::Real& stretchDeformation();
66 
67 
68  agx::Real& bendRate();
69  agx::Real& twistRate();
70  agx::Real& stretchRate();
71 
72  agx::Real& bendTension();
73  agx::Real& twistTension();
74  agx::Real& stretchTension();
75 
76  agx::Real& contactNormalForce();
77  agx::Real& contactFrictionForce();
78 
82  agx::Real total() const;
83 
88  agx::Real operator[](DamageTypes::DamageType type) const;
89  agx::Real& operator[](DamageTypes::DamageType type);
90 
100  agx::Real operator[](size_t index) const;
101  agx::Real& operator[](size_t index);
102 
103  private:
105  };
106 
109 }
agx::VectorPOD< SegmentDamage * > SegmentDamagePtrVector
Definition: SegmentDamage.h:32
AGXCABLE_EXPORT SegmentDamage operator+(const SegmentDamage &lhs, const SegmentDamage &rhs)
DamageType
Listing of all the cable damage sources that is used by the cable damage estimation model...
A SegmentDamage instance records damages estimates computed for a single cable segment.
Definition: SegmentDamage.h:40
Contain classes for 6 DOF lumped element cables/wires/ropes.
Vector containing &#39;raw&#39; data.
Definition: Vector.h:245
double Real
Definition: Real.h:42
#define AGXCABLE_EXPORT
AGXCABLE_EXPORT SegmentDamage & operator+=(SegmentDamage &lhs, const SegmentDamage &rhs)