|
AGX Dynamics 2.42.3.1
|
Class containing and updating material properties of a Deformable1D object. More...
#include <Deformable1DBulkProperties.h>
Inheritance diagram for agxModel::Deformable1DBulkProperties:Public Types | |
| enum | Direction { SHEAR_X = 0 , SHEAR_Y , TENSILE , LATERAL , VERTICAL , TORSIONAL , ALL_DIRECTIONS } |
| Directions in each constraint. More... | |
Public Member Functions | |
| Deformable1DBulkProperties () | |
| Default constructor. | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxModel::Deformable1DBulkProperties) | |
| void | clearDirtyFlag () |
| Clear the dirty flag. | |
| agx::Real | getBreakPoint (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Real | getDamping (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Real | getPoissonsRatio (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Real | getYieldPoint (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Real | getYoungsModulus (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Bool | isDirty () const |
| Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints. | |
| virtual void | restoreLightData (agxStream::StorageStream &str) override |
| Restore structural independent data from stream. | |
| void | setBreakPoint (agx::Real breakPoint, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign break point to a given direction. | |
| void | setDamping (agx::Real damping, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1D. | |
| void | setPoissonsRatio (agx::Real poissonsRatio, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign Poisson's Ratio to a given direction. | |
| void | setYieldPoint (agx::Real yieldPoint, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign yield point to a given direction. | |
| void | setYoungsModulus (agx::Real youngsModulus, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign Young's Modulus to a given direction. | |
| virtual void | storeLightData (agxStream::StorageStream &str) const override |
| Store structural independent data to stream. | |
| virtual void | updateBulkProperties (agxModel::Deformable1DNode *node, const agxModel::Deformable1D *d1d) const |
| Updates the bulk properties of a given node. | |
| virtual void | updateBulkProperties (const agxModel::Deformable1D *d1d) const |
| Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag. | |
| 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 (current node), the target node for the update, i.e., the one assumed to be carrying the constraint. | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. | |
Static Public Member Functions | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. | |
Protected Member Functions | |
| virtual | ~Deformable1DBulkProperties () |
| Reference counted object, protected destructor. | |
| void | setDefaultValues () |
| Assigns default values to all parameters. | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. | |
| Serializable (const Serializable &other) | |
| Copy constructor. | |
| void | generateUuid () |
Protected Attributes | |
| agx::Real | m_breakPoint [ALL_DIRECTIONS] |
| agx::Bool | m_dirty |
| agx::Real | m_poissonsRatio [ALL_DIRECTIONS] |
| agx::Real | m_spookDamping [ALL_DIRECTIONS] |
| agx::Real | m_yieldPoint [ALL_DIRECTIONS] |
| agx::Real | m_youngsModulus [ALL_DIRECTIONS] |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Additional Inherited Members | |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
Class containing and updating material properties of a Deformable1D object.
Definition at line 39 of file Deformable1DBulkProperties.h.
Directions in each constraint.
The constraint axis is assumed to be along the z-axis.
| Enumerator | |
|---|---|
| SHEAR_X | Along x axis. |
| SHEAR_Y | Along y axis. |
| TENSILE | Along z axis. |
| LATERAL | About x axis. |
| VERTICAL | About y axis. |
| TORSIONAL | About z axis. |
| ALL_DIRECTIONS | |
Definition at line 46 of file Deformable1DBulkProperties.h.
| agxModel::Deformable1DBulkProperties::Deformable1DBulkProperties | ( | ) |
Default constructor.
|
protectedvirtual |
Reference counted object, protected destructor.
| agxModel::Deformable1DBulkProperties::AGXSTREAM_DECLARE_SERIALIZABLE_BASE | ( | agxModel::Deformable1DBulkProperties | ) |
| void agxModel::Deformable1DBulkProperties::clearDirtyFlag | ( | ) |
Clear the dirty flag.
This bulk material will not be used to update any Deformable1D constraint parameters until made dirty again.
|
inlinestatic |
Definition at line 177 of file Deformable1DBulkProperties.h.
| agx::Real agxModel::Deformable1DBulkProperties::getBreakPoint | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
| agx::Real agxModel::Deformable1DBulkProperties::getDamping | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
direction. | agx::Real agxModel::Deformable1DBulkProperties::getPoissonsRatio | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
| agx::Real agxModel::Deformable1DBulkProperties::getYieldPoint | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
| agx::Real agxModel::Deformable1DBulkProperties::getYoungsModulus | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
| agx::Bool agxModel::Deformable1DBulkProperties::isDirty | ( | ) | const |
Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints.
|
overridevirtual |
Restore structural independent data from stream.
| void agxModel::Deformable1DBulkProperties::setBreakPoint | ( | agx::Real | breakPoint, |
| agxModel::Deformable1DBulkProperties::Direction | direction | ||
| ) |
Assign break point to a given direction.
If direction is ALL_DIRECTIONS breakPoint will be assigned to all directions.
| breakPoint | - new value of the break point |
| direction | - direction |
| void agxModel::Deformable1DBulkProperties::setDamping | ( | agx::Real | damping, |
| agxModel::Deformable1DBulkProperties::Direction | direction | ||
| ) |
Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1D.
If direction is ALL_DIRECTIONS then spookDamping will be assigned to all directions.
| damping | - The new value to use for SPOOK damping. |
| direction | - direction |
|
protected |
Assigns default values to all parameters.
| void agxModel::Deformable1DBulkProperties::setPoissonsRatio | ( | agx::Real | poissonsRatio, |
| agxModel::Deformable1DBulkProperties::Direction | direction | ||
| ) |
Assign Poisson's Ratio to a given direction.
If direction is ALL_DIRECTIONS poissonsRatio will be assigned to all directions.
| poissonsRatio | - new value of Poisson's Ratio |
| direction | - direction |
| void agxModel::Deformable1DBulkProperties::setYieldPoint | ( | agx::Real | yieldPoint, |
| agxModel::Deformable1DBulkProperties::Direction | direction | ||
| ) |
Assign yield point to a given direction.
If direction is ALL_DIRECTIONS yieldPoint will be assigned to all directions.
| yieldPoint | - new value of the yield point |
| direction | - direction |
| void agxModel::Deformable1DBulkProperties::setYoungsModulus | ( | agx::Real | youngsModulus, |
| agxModel::Deformable1DBulkProperties::Direction | direction | ||
| ) |
Assign Young's Modulus to a given direction.
If direction is ALL_DIRECTIONS youngsModulus will be assigned to all directions.
| youngsModulus | - new value of Young's Modulus |
| direction | - direction |
|
overridevirtual |
Store structural independent data to stream.
|
virtual |
Updates the bulk properties of a given node.
The constraint between node and the previous node will be updated.
| node | - node to update (constraint between previous node and node) |
| d1d | the Deformable1D object |
|
virtual |
Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag.
After calling this method this object is no longer dirty.
| d1d | - the Deformable1D object |
|
virtual |
Updates the bulk properties given node before -> constraint -> node after where "node after" is curr (current node), the target node for the update, i.e., the one assumed to be carrying the constraint.
| prev | - node before curr |
| constraint | - constraint to assign properties to |
| curr | - current node |
| d1d | - the Deformable1D object |
|
protected |
Definition at line 204 of file Deformable1DBulkProperties.h.
|
mutableprotected |
Definition at line 206 of file Deformable1DBulkProperties.h.
|
protected |
Definition at line 202 of file Deformable1DBulkProperties.h.
|
protected |
Definition at line 205 of file Deformable1DBulkProperties.h.
|
protected |
Definition at line 203 of file Deformable1DBulkProperties.h.
|
protected |
Definition at line 201 of file Deformable1DBulkProperties.h.