AGXDynamics  2.35.0.3
Deformable1DBulkProperties.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 #ifndef AGXMODEL_DEFORMABLE1DBULKPROPERTIES_H
18 #define AGXMODEL_DEFORMABLE1DBULKPROPERTIES_H
19 
20 #include <agxModel/export.h>
21 
22 #include <agxStream/Serializable.h>
23 
24 namespace agx
25 {
26  class Constraint;
27 }
28 
29 namespace agxModel
30 {
31  class Deformable1D;
32  class Deformable1DNode;
33 
35 
40  {
41  public:
46  enum Direction
47  {
48  SHEAR_X = 0,
56  };
57 
58  public:
63 
70  void setYoungsModulus( agx::Real youngsModulus, agxModel::Deformable1DBulkProperties::Direction direction );
71 
76  agx::Real getYoungsModulus( agxModel::Deformable1DBulkProperties::Direction direction ) const;
77 
84  void setPoissonsRatio( agx::Real poissonsRatio, agxModel::Deformable1DBulkProperties::Direction direction );
85 
90  agx::Real getPoissonsRatio( agxModel::Deformable1DBulkProperties::Direction direction ) const;
91 
98  void setYieldPoint( agx::Real yieldPoint, agxModel::Deformable1DBulkProperties::Direction direction );
99 
104  agx::Real getYieldPoint( agxModel::Deformable1DBulkProperties::Direction direction ) const;
105 
112  void setBreakPoint( agx::Real breakPoint, agxModel::Deformable1DBulkProperties::Direction direction );
113 
118  agx::Real getBreakPoint( agxModel::Deformable1DBulkProperties::Direction direction ) const;
119 
129 
133  agx::Real getDamping( agxModel::Deformable1DBulkProperties::Direction direction ) const;
134 
135 
140  agx::Bool isDirty() const;
141 
146  void clearDirtyFlag();
147 
153  virtual void updateBulkProperties( const agxModel::Deformable1D* d1d ) const;
154 
161  virtual void updateBulkProperties( agxModel::Deformable1DNode* node, const agxModel::Deformable1D* d1d ) const;
162 
172  virtual void updateBulkProperties( const agxModel::Deformable1DNode* prev,
173  agx::Constraint* constraint,
174  const agxModel::Deformable1DNode* curr,
175  const agxModel::Deformable1D* d1d ) const;
176 
178 
182  virtual void storeLightData( agxStream::StorageStream& str ) const override;
183 
187  virtual void restoreLightData( agxStream::StorageStream& str ) override;
188 
189  protected:
193  virtual ~Deformable1DBulkProperties();
194 
198  void setDefaultValues();
199 
200  protected:
201  agx::Real m_youngsModulus[ ALL_DIRECTIONS ];
202  agx::Real m_poissonsRatio[ ALL_DIRECTIONS ];
203  agx::Real m_yieldPoint[ ALL_DIRECTIONS ];
204  agx::Real m_breakPoint[ ALL_DIRECTIONS ];
205  agx::Real m_spookDamping[ ALL_DIRECTIONS ];
207  };
208 }
209 
210 #endif // AGXMODEL_DEFORMABLE1DBULKPROPERTIES_H
agx::Real
double Real
Definition: Real.h:42
agxModel
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
agxStream::Serializable
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
export.h
agxModel::Deformable1DBulkProperties::TENSILE
@ TENSILE
Along z axis.
Definition: Deformable1DBulkProperties.h:50
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
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
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agxModel::Deformable1DBulkProperties::SHEAR_Y
@ SHEAR_Y
Along y axis.
Definition: Deformable1DBulkProperties.h:49
agxModel::Deformable1D
One dimensional deformable construction, i.e., objects attached successively.
Definition: Deformable1D.h:36
agxModel::Deformable1DBulkProperties::m_dirty
agx::Bool m_dirty
Definition: Deformable1DBulkProperties.h:206
agxModel::Deformable1DBulkProperties::TORSIONAL
@ TORSIONAL
About z axis.
Definition: Deformable1DBulkProperties.h:54
Serializable.h
agxModel::Deformable1DBulkProperties::VERTICAL
@ VERTICAL
About y axis.
Definition: Deformable1DBulkProperties.h:53
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agx::Bool
bool Bool
Definition: Integer.h:48
agxModel::Deformable1DBulkProperties::Direction
Direction
Directions in each constraint.
Definition: Deformable1DBulkProperties.h:46
agxModel::Deformable1DBulkProperties
Class containing and updating material properties of a Deformable1D object.
Definition: Deformable1DBulkProperties.h:39
agx::Constraint
The base class for a constraint.
Definition: Constraint.h:88
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxFMI2::Export::Constraint::setDamping
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
agxCable::ALL_DIRECTIONS
@ ALL_DIRECTIONS
Definition: Direction.h:37
agxModel::Deformable1DBulkProperties::LATERAL
@ LATERAL
About x axis.
Definition: Deformable1DBulkProperties.h:52
agxModel::Deformable1DNode
Special node implementation of segments in e.g., a Deformable1D object.
Definition: Deformable1DNode.h:36