AGXDynamics
2.35.0.2
CablePlasticity.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. 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
20
#include <
agxSDK/LinkedStructureComponent.h
>
21
22
#include <
agxCable/export.h
>
23
#include <
agxCable/Direction.h
>
24
#include <
agxCable/DeformationData.h
>
25
26
namespace
agxCable
27
{
28
AGX_DECLARE_POINTER_TYPES
(
CablePlasticity
);
29
30
class
AGXCABLE_EXPORT
CablePlasticity
:
public
agxSDK::LinkedStructureComponent
31
{
32
public
:
33
CablePlasticity
();
34
35
void
setYieldPoint(
agx::Real
yieldPoint,
agxCable::Direction
direction);
36
agx::Real
getYieldPoint(
agxCable::Direction
direction)
const
;
37
38
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxCable::CablePlasticity
);
39
40
DOXYGEN_START_INTERNAL_BLOCK
()
41
public:
42
CablePlasticity
(const
agx
::
Real
(& yieldPoints)[
ALL_DIRECTIONS
],
43
agx
::Vector<
agxCable
::
DeformationData
>&& deformations);
44
45
virtual
void
onPreStep() override;
46
virtual
void
onPostStep() override;
47
DOXYGEN_END_INTERNAL_BLOCK
()
48
49
protected:
50
virtual ~
CablePlasticity
();
51
52
private:
53
agx
::
Real
m_yieldPoints[
ALL_DIRECTIONS
];
54
agx
::Vector<
agxCable
::
DeformationData
> m_deformations;
55
};
56
}
agx::Real
double Real
Definition:
Real.h:42
export.h
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
macros.h:97
agxCable
Contain classes for 6 DOF lumped element cables/wires/ropes.
Definition:
able/Attachment.h:36
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
macros.h:96
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition:
Serializable.h:207
Direction.h
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
AGXCABLE_EXPORT
#define AGXCABLE_EXPORT
Definition:
agxCable/export.h:41
DeformationData.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxCable::CablePlasticity
Definition:
CablePlasticity.h:30
agxSDK::LinkedStructureComponent
Base implementation of a component (e.g., specific functionality) in linked structures.
Definition:
LinkedStructureComponent.h:36
agxCable::ALL_DIRECTIONS
@ ALL_DIRECTIONS
Definition:
Direction.h:37
agxCable::DeformationData
Definition:
DeformationData.h:40
LinkedStructureComponent.h
agxCable::Direction
Direction
The different directions in which a cable can be deformed.
Definition:
Direction.h:31
include
agxCable
CablePlasticity.h
Generated on Mon Jan 30 2023 15:44:10 for AGXDynamics by
1.8.17