AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxVehicle::InitialTrackTension Struct Reference

Initial track tension representing either legacy distance offset per node, or an actual initial tension force. More...

#include <TrackRoute.h>

Public Member Functions

 InitialTrackTension ()=default
 
 InitialTrackTension (agx::Real tension)
 Define the initial tension of a track.
 
 InitialTrackTension (agx::Real tension, bool isDistance)
 Define the initial tension of a track.
 
agx::Real getTensionDistancePerNode (const TrackProperties &properties, agx::Real nodeLength) const
 This will give an estimate of the initial node distance for the given initial tension and track properties.
 
void restore (agxStream::InputArchive &in, const TrackRoute *route)
 
void store (agxStream::OutputArchive &out) const
 

Public Attributes

bool isDistance = false
 True the "value" is legacy "initial distance tension".
 
agx::Real value = 0.0
 Value of the initial tension.
 

Detailed Description

Initial track tension representing either legacy distance offset per node, or an actual initial tension force.

Definition at line 35 of file TrackRoute.h.

Constructor & Destructor Documentation

◆ InitialTrackTension() [1/3]

agxVehicle::InitialTrackTension::InitialTrackTension ( )
default

◆ InitialTrackTension() [2/3]

agxVehicle::InitialTrackTension::InitialTrackTension ( agx::Real  tension,
bool  isDistance 
)
inline

Define the initial tension of a track.

Note that the initial tension is always an estimate and depends heavy on track wheel layout and friction against e.g. the terrain.

Parameters
tension- initial tension in Newton.
isDistance- when this is set to true the initial tension value is given as legacy distance offset per node.

Definition at line 45 of file TrackRoute.h.

◆ InitialTrackTension() [3/3]

agxVehicle::InitialTrackTension::InitialTrackTension ( agx::Real  tension)
inlineexplicit

Define the initial tension of a track.

Note that the initial tension is always an estimate and depends heavy on track wheel layout and friction against e.g. the terrain.

Parameters
tension- initial tension in Newton.

Definition at line 56 of file TrackRoute.h.

Member Function Documentation

◆ getTensionDistancePerNode()

agx::Real agxVehicle::InitialTrackTension::getTensionDistancePerNode ( const TrackProperties &  properties,
agx::Real  nodeLength 
) const

This will give an estimate of the initial node distance for the given initial tension and track properties.

Parameters
properties- Track Properties used when calculating the node distance from initial tension value.
nodeLength- The length of one track node in the track.

◆ restore()

void agxVehicle::InitialTrackTension::restore ( agxStream::InputArchive &  in,
const TrackRoute *  route 
)

◆ store()

void agxVehicle::InitialTrackTension::store ( agxStream::OutputArchive &  out) const

Member Data Documentation

◆ isDistance

bool agxVehicle::InitialTrackTension::isDistance = false

True the "value" is legacy "initial distance tension".

Definition at line 82 of file TrackRoute.h.

◆ value

agx::Real agxVehicle::InitialTrackTension::value = 0.0

Value of the initial tension.

This is per default the tension force in Newton. Note that this value is in meter and means initial distance tension if the flag isDistance is true.

Definition at line 77 of file TrackRoute.h.


The documentation for this struct was generated from the following file: