AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
CableProperties.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18#pragma once
19
20#include <agxCable/export.h>
21#include <agxCable/Direction.h>
22
24
25namespace agxCable
26{
27 class Cable;
28
30
35 {
36 public:
43 void setYoungsModulus(agx::Real youngsModulus, agxCable::Direction direction);
44
49
55 void setDamping(agx::Real damping, agxCable::Direction direction);
56
61
62 void setPoissonsRatio(agx::Real poissonsRatio, agxCable::Direction direction);
64
66 public:
68
69
70 protected:
71 friend class agxCable::Cable;
73 virtual ~CableProperties();
74
75 bool isDirty() const;
76 void clearDirtyFlag();
77 void updateBulkProperties(Cable& cable) const;
78
79 private:
80 void restoreFromLinkedCable(agxStream::InputArchive& in);
81 void restoreFromDeformable1D(agxStream::InputArchive& in);
82
83 private:
84 agx::Real m_youngsModulus[ALL_DIRECTIONS];
85 agx::Real m_damping[ALL_DIRECTIONS];
86 agx::Real m_poissonsRatio[ALL_DIRECTIONS];
87
88 agx::Bool m_dirty;
90 };
91}
92
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXCABLE_EXPORT
Class controlling material properties of one or more cables.
agx::Real getDamping(agxCable::Direction direction) const
void setPoissonsRatio(agx::Real poissonsRatio, agxCable::Direction direction)
void setYoungsModulus(agx::Real youngsModulus, agxCable::Direction direction)
Set Young's modulus of the cable along the given direction.
agx::Real getPoissonsRatio(agxCable::Direction direction) const
void setDamping(agx::Real damping, agxCable::Direction direction)
Set the SPOOK damping of the constraints holding the cable together.
agx::Real getYoungsModulus(agxCable::Direction direction) const
A model of a cable using a lumped elements model.
Definition Cable.h:44
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Base class providing referencing counted objects.
Definition Referenced.h:120
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
Contain classes for 6 DOF lumped element cables/wires/ropes.
Direction
The different directions in which a cable can be deformed.
Definition Direction.h:32
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition Real.h:42