AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
Deformable1DBulkProperties.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#ifndef AGXMODEL_DEFORMABLE1DBULKPROPERTIES_H
18#define AGXMODEL_DEFORMABLE1DBULKPROPERTIES_H
19
20#include <agxModel/export.h>
21
23
24namespace agx
25{
26 class Constraint;
27}
28
29namespace agxModel
30{
31 class Deformable1D;
32 class Deformable1DNode;
33
35
40 {
41 public:
47 {
48 SHEAR_X = 0,
55 ALL_DIRECTIONS
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: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 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.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Abstract base class for storing/restoring a line/drums with version control.
The base class for a constraint.
Definition Constraint.h:89
Base class providing referencing counted objects.
Definition Referenced.h:120
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:40
double Real
Definition Real.h:42