AGX Dynamics  2.35.0.1
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 
71 
77 
85 
91 
99 
105 
113 
119 
129 
134 
135 
141 
147 
153  virtual void updateBulkProperties( const agxModel::Deformable1D* d1d ) const;
154 
162 
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:
194 
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
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#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
#define AGXMODEL_EXPORT
Class containing and updating material properties of a Deformable1D object.
virtual void storeLightData(agxStream::StorageStream &str) const override
Store structural independent data to stream.
agx::Real getBreakPoint(agxModel::Deformable1DBulkProperties::Direction direction) const
void setBreakPoint(agx::Real breakPoint, agxModel::Deformable1DBulkProperties::Direction direction)
Assign break point to a given direction.
void setYoungsModulus(agx::Real youngsModulus, agxModel::Deformable1DBulkProperties::Direction direction)
Assign Young's Modulus to a given direction.
agx::Real getDamping(agxModel::Deformable1DBulkProperties::Direction direction) const
void setDefaultValues()
Assigns default values to all parameters.
agx::Bool isDirty() const
Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints.
void setYieldPoint(agx::Real yieldPoint, agxModel::Deformable1DBulkProperties::Direction direction)
Assign yield point to a given direction.
agx::Real getYoungsModulus(agxModel::Deformable1DBulkProperties::Direction direction) const
virtual void updateBulkProperties(const agxModel::Deformable1D *d1d) const
Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag.
void clearDirtyFlag()
Clear the dirty flag.
agx::Real getPoissonsRatio(agxModel::Deformable1DBulkProperties::Direction direction) const
virtual ~Deformable1DBulkProperties()
Reference counted object, protected destructor.
virtual void restoreLightData(agxStream::StorageStream &str) override
Restore structural independent data from stream.
agx::Real getYieldPoint(agxModel::Deformable1DBulkProperties::Direction direction) const
Deformable1DBulkProperties()
Default constructor.
void setPoissonsRatio(agx::Real poissonsRatio, agxModel::Deformable1DBulkProperties::Direction direction)
Assign Poisson's Ratio to a given direction.
virtual void updateBulkProperties(agxModel::Deformable1DNode *node, const agxModel::Deformable1D *d1d) const
Updates the bulk properties of a given node.
virtual void updateBulkProperties(const agxModel::Deformable1DNode *prev, agx::Constraint *constraint, const agxModel::Deformable1DNode *curr, const agxModel::Deformable1D *d1d) const
Updates the bulk properties given node before -> constraint -> node after where "node after" is curr ...
void setDamping(agx::Real damping, agxModel::Deformable1DBulkProperties::Direction direction)
Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1...
Special node implementation of segments in e.g., a Deformable1D object.
One dimensional deformable construction, i.e., objects attached successively.
Definition: Deformable1D.h:37
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:45
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
The base class for a constraint.
Definition: Constraint.h:89
Base class providing referencing counted objects.
Definition: Referenced.h:114
@ ALL_DIRECTIONS
Definition: Direction.h:37
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:37
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
bool Bool
Definition: Integer.h:48
double Real
Definition: Real.h:42