|
AGXDynamics
2.31.1.0
|
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. More... | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| void | clearDirtyFlag () |
| Clear the dirty flag. More... | |
| agx::Real | getBreakPoint (agxModel::Deformable1DBulkProperties::Direction direction) const |
| const char * | getClassName () const override |
| agx::Real | getDamping (agxModel::Deformable1DBulkProperties::Direction direction) const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Real | getPoissonsRatio (agxModel::Deformable1DBulkProperties::Direction direction) const |
| int | getReferenceCount () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| agx::Uuid | getUuid () const |
| agx::Real | getYieldPoint (agxModel::Deformable1DBulkProperties::Direction direction) const |
| agx::Real | getYoungsModulus (agxModel::Deformable1DBulkProperties::Direction direction) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| agx::Bool | isDirty () const |
| Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints. More... | |
| bool | isFinished () const |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual void | restoreLightData (agxStream::StorageStream &str) override |
| Restore structural independent data from stream. More... | |
| void | setBreakPoint (agx::Real breakPoint, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign break point to a given direction. More... | |
| void | setDamping (agx::Real damping, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign SPOOK damping along given direction to the constraints linking the segments of the Deformable1D. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setPoissonsRatio (agx::Real poissonsRatio, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign Poisson's Ratio to a given direction. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| void | setYieldPoint (agx::Real yieldPoint, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign yield point to a given direction. More... | |
| void | setYoungsModulus (agx::Real youngsModulus, agxModel::Deformable1DBulkProperties::Direction direction) |
| Assign Young's Modulus to a given direction. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual void | storeLightData (agxStream::StorageStream &str) const override |
| Store structural independent data to stream. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| virtual void | updateBulkProperties (const agxModel::Deformable1D *d1d) const |
| Updates the bulk properties of the whole Deformable1D object, ignoring dirty flag. More... | |
| virtual void | updateBulkProperties (agxModel::Deformable1DNode *node, const agxModel::Deformable1D *d1d) const |
| Updates the bulk properties of a given node. More... | |
| 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. More... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~Deformable1DBulkProperties () |
| Reference counted object, protected destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
| void | setDefaultValues () |
| Assigns default values to all parameters. More... | |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| agx::Real | m_breakPoint [ALL_DIRECTIONS] |
| agx::Bool | m_dirty |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| agx::Real | m_poissonsRatio [ALL_DIRECTIONS] |
| AtomicValue | m_refCount |
| agx::Real | m_spookDamping [ALL_DIRECTIONS] |
| agx::Real | m_yieldPoint [ALL_DIRECTIONS] |
| agx::Real | m_youngsModulus [ALL_DIRECTIONS] |
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.
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
| 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.
|
inlinestatic |
Definition at line 177 of file Deformable1DBulkProperties.h.
|
protectedinherited |
|
protectedinherited |
| agx::Real agxModel::Deformable1DBulkProperties::getBreakPoint | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 177 of file Deformable1DBulkProperties.h.
|
inlinestatic |
Definition at line 177 of file Deformable1DBulkProperties.h.
| agx::Real agxModel::Deformable1DBulkProperties::getDamping | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
direction.
|
staticprotectedinherited |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
| agx::Real agxModel::Deformable1DBulkProperties::getPoissonsRatio | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
|
inherited |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 177 of file Deformable1DBulkProperties.h.
|
inherited |
Definition at line 268 of file Serializable.h.
| agx::Real agxModel::Deformable1DBulkProperties::getYieldPoint | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
| agx::Real agxModel::Deformable1DBulkProperties::getYoungsModulus | ( | agxModel::Deformable1DBulkProperties::Direction | direction | ) | const |
| direction | - direction |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
| agx::Bool agxModel::Deformable1DBulkProperties::isDirty | ( | ) | const |
Check if the bulk parameters are flagged as dirty and have to be read by Deformable1D constraints.
|
inherited |
Definition at line 252 of file Serializable.h.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
overridevirtual |
|
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.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
| 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 |
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
| 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 |
|
overridevirtual |
Store structural independent data to stream.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
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 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 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 |
|
staticinherited |
|
protected |
Definition at line 204 of file Deformable1DBulkProperties.h.
|
mutableprotected |
Definition at line 206 of file Deformable1DBulkProperties.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 202 of file Deformable1DBulkProperties.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.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.