AGX Dynamics  2.37.2.0
Deformable1DBulkProperties.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 #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
bool Bool
Definition: Integer.h:48
The base class for a constraint.
Definition: Constraint.h:88
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Class containing and updating material properties of a Deformable1D object.
Base class providing referencing counted objects.
Definition: Referenced.h:119
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
One dimensional deformable construction, i.e., objects attached successively.
Definition: Deformable1D.h:36
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Direction
Directions in each constraint.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
#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
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42
Special node implementation of segments in e.g., a Deformable1D object.