|
AGX Dynamics 2.42.3.1
|
Object containing properties of an agxVehicle::Track. More...
#include <TrackProperties.h>
Inheritance diagram for agxVehicle::TrackProperties:Public Types | |
| enum class | Axis : agx::UInt { LATERAL , VERTICAL } |
| Represents the primary axes used in the local coordinate system of the track in lateral and vertical directions. More... | |
Public Member Functions | |
| TrackProperties () | |
| Default constructor - all flags and values are set do default. | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxVehicle::TrackProperties) | |
| agx::Real | getBendingAttenuation (Axis axis) const |
| agx::Real | getBendingStiffness (Axis axis) const |
| Get the bending stiffness of the track, which defines its resistance to bending deformation. | |
| agx::Bool | getEnableHingeRange () const |
| agx::Bool | getEnableOnInitializeMergeNodesToWheels () const |
| agx::Bool | getEnableOnInitializeTransformNodesToWheels () const |
| agx::RangeReal | getHingeRange () const |
| agx::Real | getMinStabilizingHingeNormalForce () const |
| agx::Real | getNodesToWheelsMergeThreshold () const |
| agx::Real | getNodesToWheelsSplitThreshold () const |
| agx::UInt | getNumNodesIncludedInAverageDirection () const |
| agx::Real | getShearAttenuation (Axis axis) const |
| agx::Real | getShearStiffness (Axis axis) const |
| Get the shear stiffness of the track, which defines its resistance to shearing deformation, N/m for a 1 meter stretch of the track. | |
| agx::Real | getStabilizingHingeFrictionParameter () const |
| agx::Real | getTensileAttenuation () const |
| agx::Real | getTensileStiffness () const |
| Get the tensile stiffness of the track, which defines its resistance to stretching or compression, N/m for a 1 meter stretch of the track. | |
| agx::Real | getTorsionalAttenuation () const |
| agx::Real | getTorsionalStiffness () const |
| Get the torsional stiffness of the track, which defines its resistance to rotational deformation around the main axis of the track (torsion). | |
| agx::Real | getTransformNodesToWheelsOverlap () const |
| agx::Bool | hasBendingStiffness (Axis axis) const |
| bool | loadLibraryProperties (const agx::String &name) |
| Load named TrackProperties from the Material Library. | |
| void | resetToDefault () |
| Resets all flags and values to default. | |
| void | setBendingAttenuation (agx::Real attenuation, Axis axis) |
| Set the attenuation factor used in bending stiffness calculations for the specified axis. | |
| void | setBendingStiffness (agx::Real stiffness, Axis axis=Axis::LATERAL) |
| Sets the bending stiffness of the track, which defines its resistance to bending deformation. | |
| void | setEnableHingeRange (agx::Bool enable) |
| True to enable the range in the hinges between the track nodes to define how the track may bend. | |
| void | setEnableOnInitializeMergeNodesToWheels (agx::Bool enable) |
| When the track has been initialized some nodes are in contact with the wheels. | |
| void | setEnableOnInitializeTransformNodesToWheels (agx::Bool enable) |
| True to position/transform the track nodes to the surface of the wheels after the track has been initialized. | |
| void | setHingeRangeRange (agx::Real lowerAngle, agx::Real upperAngle) |
| Assign range used if the hinge range between the nodes are enabled. | |
| void | setMinStabilizingHingeNormalForce (agx::Real minNormalForce) |
| Minimum value of the normal force (the hinge force along the track) used in "internal" friction calculations. | |
| void | setNodesToWheelsMergeThreshold (agx::Real mergeThreshold) |
| Threshold when to merge a node to a wheel. | |
| void | setNodesToWheelsSplitThreshold (agx::Real splitThreshold) |
| Threshold when to split a node from a wheel. | |
| void | setNumNodesIncludedInAverageDirection (agx::UInt numIncludedNodes) |
| Average direction of non-merged nodes entering or exiting a wheel is used as reference direction to split of a merged node. | |
| void | setShearAttenuation (agx::Real attenuation, Axis axis) |
| Set the attenuation factor used in shear stiffness calculations for the specified axis. | |
| void | setShearStiffness (agx::Real stiffness) |
| Sets the shear stiffness of the track along both the lateral and vertical direction. | |
| void | setShearStiffness (agx::Real stiffness, Axis axis) |
| Sets the shear stiffness of the track, which defines its resistance to shearing deformation. | |
| void | setStabilizingHingeFrictionParameter (agx::Real frictionParameter) |
| Friction parameter of the internal friction in the node hinges. | |
| void | setTensileAttenuation (agx::Real attenuation) |
| Set the attenuation factor used in tensile stiffness calculations. | |
| void | setTensileStiffness (agx::Real stiffness) |
| Sets the tensile stiffness of the track, which defines its resistance to stretching (and when applicable compression), default is 1e10. | |
| void | setTorsionalAttenuation (agx::Real attenuation) |
| Set the attenuation factor used in torsional stiffness calculations. | |
| void | setTorsionalStiffness (agx::Real stiffness) |
| Sets the torsional stiffness of the track, which defines its resistance to rotational deformation around the main axis of the track (torsion). | |
| void | setTransformNodesToWheelsOverlap (agx::Real overlap) |
| When the nodes are transformed to the wheels, this is the final target overlap. | |
| agx::String | toString () const |
| void | updateComplianceDamping (agx::Hinge &hinge, agx::Real nodeLength, agx::Real timestep) const |
| Writes compliance and damping to the given hinge instance. | |
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 agx::StringVector | getAvailableLibraryProperties () |
| Returns a vector with all the named TrackProperties that were found in the Material Library. | |
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 Types | |
| enum | AttenuationValue : agx::UInt { BEND_VERTICAL_AXIS , BEND_LATERAL_AXIS , SHEAR_VERTICAL_AXIS , SHEAR_LATERAL_AXIS , TORSIONAL , TENSILE , NUM_ATTENUATION_VALUES } |
| using | Flags = agx::BitState< FlagsEnum, agx::UInt32 > |
| enum | FlagsEnum : agx::UInt32 { ON_INITIALIZE_MERGE_NODES_TO_WHEELS = 1 << 0 , ON_INITIALIZE_TRANSFORM_NODES_TO_WHEELS = 1 << 1 , HINGE_RANGE_ENABLED = 1 << 2 , HINGE_LOCK_ENABLED = 1 << 3 } |
| enum | RealValue : agx::UInt { HINGE_RANGE_LOWER , HINGE_RANGE_UPPER , NODE_TO_WHEEL_OVERLAP , NODE_TO_WHEEL_MERGE_THRESHOLD , NODE_TO_WHEEL_SPLIT_THRESHOLD , NUM_NODES_IN_AVERAGE_DIRECTION , MIN_STABILIZING_NORMAL_FORCE , STABILIZING_FRICTION_PARAMETER , NUM_REAL_VALUES } |
| using | RealValues = agx::RealVector |
Protected Member Functions | |
| virtual | ~TrackProperties () |
| Reference counted object - protected destructor. | |
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 () |
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. | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Object containing properties of an agxVehicle::Track.
Definition at line 34 of file TrackProperties.h.
|
protected |
Definition at line 387 of file TrackProperties.h.
|
protected |
Definition at line 401 of file TrackProperties.h.
|
protected |
| Enumerator | |
|---|---|
| BEND_VERTICAL_AXIS | |
| BEND_LATERAL_AXIS | |
| SHEAR_VERTICAL_AXIS | |
| SHEAR_LATERAL_AXIS | |
| TORSIONAL | |
| TENSILE | |
| NUM_ATTENUATION_VALUES | |
Definition at line 403 of file TrackProperties.h.
|
strong |
Represents the primary axes used in the local coordinate system of the track in lateral and vertical directions.
The longitudinal axis is omitted here. These axes are defined relative to the direction of the track.
| Enumerator | |
|---|---|
| LATERAL | The axis perpendicular to the track direction, lying in the horizontal plane (side to side). |
| VERTICAL | The vertical axis perpendicular to the track plane (upward/downward). |
Definition at line 42 of file TrackProperties.h.
|
protected |
| Enumerator | |
|---|---|
| ON_INITIALIZE_MERGE_NODES_TO_WHEELS | |
| ON_INITIALIZE_TRANSFORM_NODES_TO_WHEELS | |
| HINGE_RANGE_ENABLED | |
| HINGE_LOCK_ENABLED | |
Definition at line 380 of file TrackProperties.h.
|
protected |
Definition at line 389 of file TrackProperties.h.
| agxVehicle::TrackProperties::TrackProperties | ( | ) |
Default constructor - all flags and values are set do default.
|
protectedvirtual |
Reference counted object - protected destructor.
| agxVehicle::TrackProperties::AGXSTREAM_DECLARE_SERIALIZABLE_BASE | ( | agxVehicle::TrackProperties | ) |
|
inlinestatic |
Definition at line 364 of file TrackProperties.h.
|
static |
Returns a vector with all the named TrackProperties that were found in the Material Library.
| axis | - The axis for which the bending attenuation is requested: |
Get the bending stiffness of the track, which defines its resistance to bending deformation.
| axis | - The axis around which the bending resistance is applied:
|
| agx::Bool agxVehicle::TrackProperties::getEnableHingeRange | ( | ) | const |
| agx::Bool agxVehicle::TrackProperties::getEnableOnInitializeMergeNodesToWheels | ( | ) | const |
| agx::Bool agxVehicle::TrackProperties::getEnableOnInitializeTransformNodesToWheels | ( | ) | const |
| agx::RangeReal agxVehicle::TrackProperties::getHingeRange | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getMinStabilizingHingeNormalForce | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getNodesToWheelsMergeThreshold | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getNodesToWheelsSplitThreshold | ( | ) | const |
| agx::UInt agxVehicle::TrackProperties::getNumNodesIncludedInAverageDirection | ( | ) | const |
| axis | - The axis for which the shear attenuation is requested: |
Get the shear stiffness of the track, which defines its resistance to shearing deformation, N/m for a 1 meter stretch of the track.
| axis | - The axis along which the shear resistance is applied:
|
| agx::Real agxVehicle::TrackProperties::getStabilizingHingeFrictionParameter | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getTensileAttenuation | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getTensileStiffness | ( | ) | const |
Get the tensile stiffness of the track, which defines its resistance to stretching or compression, N/m for a 1 meter stretch of the track.
| agx::Real agxVehicle::TrackProperties::getTorsionalAttenuation | ( | ) | const |
| agx::Real agxVehicle::TrackProperties::getTorsionalStiffness | ( | ) | const |
Get the torsional stiffness of the track, which defines its resistance to rotational deformation around the main axis of the track (torsion).
Torsional stiffness of the track (Nm^2).
| agx::Real agxVehicle::TrackProperties::getTransformNodesToWheelsOverlap | ( | ) | const |
| bool agxVehicle::TrackProperties::loadLibraryProperties | ( | const agx::String & | name | ) |
Load named TrackProperties from the Material Library.
| void agxVehicle::TrackProperties::resetToDefault | ( | ) |
Resets all flags and values to default.
Set the attenuation factor used in bending stiffness calculations for the specified axis.
| axis | - The axis for which the bending attenuation is to be set: |
| attenuation | - The attenuation factor to apply. |
| void agxVehicle::TrackProperties::setBendingStiffness | ( | agx::Real | stiffness, |
| Axis | axis = Axis::LATERAL |
||
| ) |
Sets the bending stiffness of the track, which defines its resistance to bending deformation.
In principal hook's law is used to calculate the bending resistance. The stiffness is here defined per unit length.
| stiffness | - bending stiffness [Nm^2] depends on material properties and track design, e.g. bushings between the links. Bending stiffness is typically E * I_a, where E is Youngs Modulus [N/m^2] and I_a is the second moment of area [m^4] for the track in the specified axis. |
| axis | - The axis around which the bending resistance is applied:
|
| void agxVehicle::TrackProperties::setEnableHingeRange | ( | agx::Bool | enable | ) |
True to enable the range in the hinges between the track nodes to define how the track may bend.
| enable | - true to enable, false to disable (default: true) |
| void agxVehicle::TrackProperties::setEnableOnInitializeMergeNodesToWheels | ( | agx::Bool | enable | ) |
When the track has been initialized some nodes are in contact with the wheels.
If this flag is true the interacting nodes will be merged to the wheel directly after initialize, if false the nodes will be merged during the first (or later) time step.
| enable | - true to enable, false to disable (default: false) |
| void agxVehicle::TrackProperties::setEnableOnInitializeTransformNodesToWheels | ( | agx::Bool | enable | ) |
True to position/transform the track nodes to the surface of the wheels after the track has been initialized.
When false, the routing algorithm positions are used.
| enable | - true to enable, false to disable (default: true) |
Assign range used if the hinge range between the nodes are enabled.
| lowerAngle | - lower angle in radians, begin of range (default: -2 pi / 3) |
| upperAngle | - upper angle in radians, end of range (default: degreesToRadians( 20 )) |
| void agxVehicle::TrackProperties::setMinStabilizingHingeNormalForce | ( | agx::Real | minNormalForce | ) |
Minimum value of the normal force (the hinge force along the track) used in "internal" friction calculations.
I.e., when the track is compressed, this value is used with the friction coefficient as a minimum stabilizing compliance. If this value is negative there will be stabilization when the track is compressed. Default: 100.
| minNormalForce | - minimum normal force to calculate internal friction in the node hinges |
| void agxVehicle::TrackProperties::setNodesToWheelsMergeThreshold | ( | agx::Real | mergeThreshold | ) |
Threshold when to merge a node to a wheel.
Given a reference direction in the track, this value is the projection of the deviation (from the reference direction) of the node direction onto the wheel radial direction vector. I.e., when the projection is negative the node can be considered "wrapped" on the wheel. Default value: -0.1.
| mergeThreshold | - merge threshold (default: -0.1) |
| void agxVehicle::TrackProperties::setNodesToWheelsSplitThreshold | ( | agx::Real | splitThreshold | ) |
Threshold when to split a node from a wheel.
Given a reference direction in the track, this value is the projection of the deviation (from the reference direction) of the node direction onto the wheel radial direction vector. I.e., when the projection is negative the node can be considered "wrapped" on the wheel. Default value: -0.05.
| splitThreshold | - split threshold (default: -0.05) |
| void agxVehicle::TrackProperties::setNumNodesIncludedInAverageDirection | ( | agx::UInt | numIncludedNodes | ) |
Average direction of non-merged nodes entering or exiting a wheel is used as reference direction to split of a merged node.
This is the number of nodes to include into this average direction.
| numIncludedNodes | - number of nodes to include in average direction (default: 3) |
Set the attenuation factor used in shear stiffness calculations for the specified axis.
| axis | - The axis for which the shear attenuation is to be set: |
| attenuation | - The attenuation factor to apply. |
| void agxVehicle::TrackProperties::setShearStiffness | ( | agx::Real | stiffness | ) |
Sets the shear stiffness of the track along both the lateral and vertical direction.
Shear stiffness is influenced by the material’s shear modulus (G) and the cross-sectional area (A). The stiffness is here defined per unit length. Higher values indicate a track that resists lateral displacement under shear forces.
| stiffness | - Shear stiffness (N/m) for a 1 meter stretch of the track, stiffness = GA/L, where L is 1 meter. |
Sets the shear stiffness of the track, which defines its resistance to shearing deformation.
Shear stiffness is influenced by the material’s shear modulus (G) and the cross-sectional area (A). The stiffness is here defined per unit length. Higher values indicate a track that resists lateral displacement under shear forces.
| stiffness | - Shear stiffness (N/m) for a 1 meter stretch of the track, stiffness = GA/L, where L is 1 meter. |
| axis | - The axis along which the shear resistance is applied:
|
| void agxVehicle::TrackProperties::setStabilizingHingeFrictionParameter | ( | agx::Real | frictionParameter | ) |
Friction parameter of the internal friction in the node hinges.
This parameter scales the normal force in the hinge. Default: 1.0
| frictionParameter | - normal force scale parameter |
| void agxVehicle::TrackProperties::setTensileAttenuation | ( | agx::Real | attenuation | ) |
Set the attenuation factor used in tensile stiffness calculations.
| attenuation | - The attenuation factor to apply. |
| void agxVehicle::TrackProperties::setTensileStiffness | ( | agx::Real | stiffness | ) |
Sets the tensile stiffness of the track, which defines its resistance to stretching (and when applicable compression), default is 1e10.
Higher values indicate a more rigid track in the longitudinal direction. The stiffness is here defined per unit length.
| stiffness | - tensile stiffness (N/m) for a 1 meter stretch of the track. |
| void agxVehicle::TrackProperties::setTorsionalAttenuation | ( | agx::Real | attenuation | ) |
Set the attenuation factor used in torsional stiffness calculations.
| attenuation | - The attenuation factor to apply. |
| void agxVehicle::TrackProperties::setTorsionalStiffness | ( | agx::Real | stiffness | ) |
Sets the torsional stiffness of the track, which defines its resistance to rotational deformation around the main axis of the track (torsion).
Torsional stiffness depends on material properties and track design, e.g. via bushings between the links. Stiffness is typically (G * J) / L where G is shear modulus, J is polar second moment of inertia, and L is the track length. The stiffness is thus defined as torque per radian of twist for the entire track.
Higher values indicate a more torsionally rigid track, reducing unwanted torsional motion.
Note that the twisting torque, T, for a track of length L twisted at an angle theta can be approximated by: T = (GJ / L) * theta.
| stiffness | - Torsional stiffness of the track (Nm/rad). |
| void agxVehicle::TrackProperties::setTransformNodesToWheelsOverlap | ( | agx::Real | overlap | ) |
When the nodes are transformed to the wheels, this is the final target overlap.
| overlap | - target overlap (default: 1.0E-3) |
| agx::String agxVehicle::TrackProperties::toString | ( | ) | const |
| void agxVehicle::TrackProperties::updateComplianceDamping | ( | agx::Hinge & | hinge, |
| agx::Real | nodeLength, | ||
| agx::Real | timestep | ||
| ) | const |
Writes compliance and damping to the given hinge instance.
| hinge | - hinge to write compliance and damping to |
| nodeLength | - the length of the nodes in the track. |
| timestep | - the current simulation time step. |