AGX Dynamics  2.37.2.0
agxDriveTrain::deprecated::HighLevelTorqueConverter Class Reference

Implementation of a torque converter (TQ) The characteristics of a real TQ is captured in two look up tables. More...

#include <HighLevelDriveTrain.h>

+ Inheritance diagram for agxDriveTrain::deprecated::HighLevelTorqueConverter:

Public Member Functions

 HighLevelTorqueConverter ()
 The only constructor. More...
 
const char * getClassName () const override
 
agx::Real getMu () const
 
agx::Real getNu () const
 
agx::Real getPumpRPM () const
 
agx::Real getPumpTorque () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::Real getTurbineRPM () const
 
agx::Real getTurbineTorque () const
 
virtual bool restore (agxStream::StorageStream &str) override
 Restores internal data from stream. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual bool store (agxStream::StorageStream &str) const override
 Stores internal data into stream. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
- Public Member Functions inherited from agxDriveTrain::deprecated::TorqueConverterTable
 TorqueConverterTable ()
 Create the converter. More...
 
void clearMuTable ()
 Clear the table mapping angular velocity ratio to torque multiplication. More...
 
agx::Real getCurrentEfficiency () const
 
agx::Real getCurrentMultiplication () const
 Return the torque multiplication given the current state. More...
 
agx::Real getMaxMultiplication () const
 
const agxPowerLine::LinearLookupTable * getMuTable () const
 Return pointer to table mapping angular velocity ratio to torque multiplication. More...
 
agx::Real getPumpTorqueReferenceRPM () const
 
const agxPowerLine::LinearLookupTable * getPumpTorqueTable () const
 
agxPowerLine::LinearLookupTable * getPumpTorqueTable ()
 
agx::Real getWantedEfficiency () const
 
void insertNuMuLookupValue (agx::Real nu, agx::Real mu)
 Insert value in the table mapping angular velocity ratio to torque multiplication. More...
 
void setMaxMultiplication (agx::Real maxMultiplication)
 When the efficiency goes to zero, the torque multiplication goes to infinity set/get the largest possible multiplication. More...
 
void setMuTable (agx::Vector< std::pair< agx::Real, agx::Real > > const &nu_to_mu)
 Set table mapping velocity ratio to torque multiplication. More...
 
void setPumpTorqueReferenceRPM (agx::Real rpm)
 Set the pump torque reference rpm for the table. More...
 
void setPumpTorqueTable (agx::Vector< std::pair< agx::Real, agx::Real > > const &nu_torques)
 Set the pump torque table. More...
 
- Public Member Functions inherited from agxDriveTrain::deprecated::DriveTrainComponent
 DriveTrainComponent (agxPowerLine::Connector *internalConnector)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxDriveTrain::deprecated::DriveTrainComponent)
 
virtual agxPowerLine::DimensionAndSide getConnectableDimension (agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
 
virtual void getConnectableDimensionTypes (agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
 
virtual agxPowerLine::Connector * getConnector ()
 
virtual const agxPowerLine::Connector * getConnector () const
 
virtual void getConnectorsRecursive (agxPowerLine::ConnectorPtrVector &connectors) override
 Fill the given vector with the Connectors that are held by this SubGraph. More...
 
virtual agx::Real getInertia () const override
 
const agxDriveTrain::Shaft * getInputShaft () const
 
const agxDriveTrain::Shaft * getOutputShaft () const
 
agxPowerLine::RotationalDimension * getRotationalDimension (agxPowerLine::Side side)
 
const agxPowerLine::RotationalDimension * getRotationalDimension (agxPowerLine::Side side) const
 
virtual void getUnitsRecursive (agxPowerLine::UnitPtrVector &units) override
 Fill the given vector with the Units that are held by this SubGraph. More...
 
virtual void setInertia (agx::Real inertia) override
 set the inertia for the rotational dimension of the rotational unit. More...
 
- Public Member Functions inherited from agxDriveTrain::Shaft
 Shaft ()
 Create a shaft. More...
 
agx::Real getAccumulatedAngle () const
 
const char * getClassName () const override
 
agxStream::StorageAgent * getStorageAgent () const override
 
virtual bool postUpdate (agx::Real timeStep) override
 Post update will update the accumulated angle. More...
 
virtual bool preUpdate (agx::Real timeStep) override
 Functions called by a static function. More...
 
void setAccumulatedAngle (agx::Real angle)
 Set the accumulated shaft angle in radians. More...
 
- Public Member Functions inherited from agxPowerLine::RotationalUnit
 RotationalUnit ()
 Create a rotational unit. More...
 
 RotationalUnit (agx::RigidBody *body, agx::UInt8 slot)
 
agx::Real getAngle () const
 
agx::Real getAngularVelocity () const
 returns the number of radians per second More...
 
const char * getClassName () const override
 
virtual agx::Real getDeliveredTorque () const
 returns the amount of torque delivered from the rotational dimension More...
 
virtual agx::Vec3 getDirection () const
 returns a vector in world coordinates that defines the rotational axis of the rotational unit. More...
 
agxPowerLine::RotationalDimension * getRotationalDimension () const
 returns a pointer to the rotational dimension More...
 
agx::Real getRPM () const
 returns the number of revolutions per minute More...
 
agxStream::StorageAgent * getStorageAgent () const override
 
void setAngularVelocityDamping (agx::Real damping)
 set the angular velocity damping around the local axis (direction) More...
 
- Public Member Functions inherited from agxPowerLine::Unit
 Unit ()
 Constructor. More...
 
void addNotification (agxPowerLine::PowerLine *powerLine)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Unit)
 
void attach (agx::RigidBody *body)
 Define which body in the simulation this Unit is attached to. More...
 
agx::String buildDimensionsName () const
 
virtual bool connect (agxPowerLine::Connector *connector)
 Connect the unit to a connector. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side connectorSide, agxPowerLine::Connector *connector)
 Connect the unit to a connector, specifying the side of each. More...
 
virtual bool connect (agxPowerLine::Unit *otherUnit)
 Connect the unit to another unit. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side otherSide, agxPowerLine::Unit *other)
 
virtual bool disconnect (agxPowerLine::Unit *unit)
 
void disconnectAll ()
 
agxPowerLine::PhysicalDimension * getActiveDimension (size_t index)
 
const agxPowerLine::PhysicalDimension * getActiveDimension (size_t index) const
 
agxPowerLine::PhysicalDimension * getConnectableInputDimension (agxPowerLine::PhysicalDimension::Type type)
 
agxPowerLine::PhysicalDimension * getConnectableOutputDimension (agxPowerLine::PhysicalDimension::Type type)
 
void getConnectedUnits (UnitPtrSetVector &result, agxPowerLine::Side side)
 
size_t getConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 Append all connectors connecting this Unit to the given Unit to the 'result' Vector. More...
 
size_t getConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
agxPowerLine::PhysicalDimension * getDimension (agxPowerLine::PhysicalDimension::Type type)
 
const agxPowerLine::PhysicalDimension * getDimension (agxPowerLine::PhysicalDimension::Type type) const
 
const agxPowerLine::PhysicalDimensionRefVector & getDimensions () const
 
agxPowerLine::PhysicalDimensionRefVector & getDimensions ()
 
Connector * getFirstInputConnector (const agxPowerLine::Unit *unit) const
 
Connector * getFirstOutputConnector (const agxPowerLine::Unit *unit) const
 
bool getIgnoreForStoreRestoreStream () const
 
size_t getInputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 
size_t getInputConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
size_t getNumActiveDimensions () const
 The number of non-null PhysicalDimension in this Unit, not including internal Units. More...
 
virtual size_t getNumConnectableDimensions (Side side) const
 
size_t getNumConnections () const
 
size_t getOutputConnectors (const agxPowerLine::Unit *unit, agxPowerLine::ConnectorPtrVector &result)
 
size_t getOutputConnectors (agxPowerLine::ConnectorPtrVector &result) const
 
void getOwnConnectedUnits (UnitPtrSetVector &unitSet, bool startFromCleanUnitSet=true) const
 Constructs the set of Units connected to this Unit's own dimensions. More...
 
void getOwnConnectedUnits (UnitPtrSetVector &unitSet, agxPowerLine::Side side, bool startFromCleanUnitSet=true) const
 
agxPowerLine::PowerLine * getPowerLine () const
 
agxPowerLine::Unit * getRoot () const
 
agxPowerLine::Side getSide (const Connector *connector) const
 
bool hasConnector (const Connector *connector) const
 
virtual bool isConnected (agxPowerLine::Unit *otherUnit) const
 
virtual bool isValid () const
 
virtual bool postRestore (agxStream::StorageStream &str)
 
virtual bool postStore (agxStream::StorageStream &str) const
 
void removeNotification (agxPowerLine::PowerLine *powerLine)
 
void setRoot (agxPowerLine::Unit *root)
 
void spreadRootToGraph ()
 
virtual bool vetoConnect (agxPowerLine::Connector *connector) const
 
- Public Member Functions inherited from agxPowerLine::SubGraph
 SubGraph ()
 
virtual bool addNotification (agxSDK::Simulation *simulation)=0
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph)
 
Connector * getEnclosingConnector ()
 
const Connector * getEnclosingConnector () const
 
SubGraph * getEnclosingGraph ()
 
const SubGraph * getEnclosingGraph () const
 
Unit * getEnclosingUnit ()
 
const Unit * getEnclosingUnit () const
 
const agxPowerLine::ConnectorRefVector & getInternalConnectors () const
 
const agxPowerLine::UnitRefVector & getInternalUnits () const
 
const agx::Name & getName () const
 
SubGraph * getRootEnclosingGraph ()
 
const SubGraph * getRootEnclosingGraph () const
 
bool isEnclosedWithin (const SubGraph *component) const
 
virtual void prepareForRestore ()
 
virtual void prepareForStore ()
 
virtual bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation)=0
 
void setName (const agx::Name &name)
 Set the name of this power line component. More...
 
void spreadPowerLineToGraph ()
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
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
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
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...
 
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...
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings. More...
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
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 setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agxDriveTrain::deprecated::TorqueConverterTable
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agxDriveTrain::Shaft
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- Static Public Member Functions inherited from agxPowerLine::RotationalUnit
static agx::Real convertAngularVelocityToRPM (const agx::Real angVel)
 Convert between m/s and rpm. More...
 
static agx::Real convertRPMtoAngularVelocity (const agx::Real rpm)
 
static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
- 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. More...
 

Protected Member Functions

virtual ~HighLevelTorqueConverter ()
 
- Protected Member Functions inherited from agxDriveTrain::deprecated::TorqueConverterTable
virtual ~TorqueConverterTable ()
 
- Protected Member Functions inherited from agxDriveTrain::deprecated::DriveTrainComponent
virtual ~DriveTrainComponent ()
 
void connectInternalConnector ()
 
bool replaceConnector (agxPowerLine::Connector *connector)
 
- Protected Member Functions inherited from agxDriveTrain::Shaft
virtual ~Shaft ()
 
- Protected Member Functions inherited from agxPowerLine::RotationalUnit
virtual ~RotationalUnit ()
 
- Protected Member Functions inherited from agxPowerLine::Unit
virtual ~Unit ()
 
bool activateDimension (PhysicalDimension *dimension)
 
virtual bool hasValidInputConnection () const
 returns if it is possible to connect to this unit More...
 
void restorePre46 (agxStream::InputArchive &in)
 
void setPowerLine (PowerLine *powerLine)
 Point to the power line the unit is a part of. More...
 
- Protected Member Functions inherited from agxPowerLine::SubGraph
virtual ~SubGraph ()
 
void addInternalConnector (agxPowerLine::Connector *connector)
 
void addInternalUnit (agxPowerLine::Unit *unit)
 
void removeInternalConnector (agxPowerLine::Connector *connector)
 
void removeInternalUnit (agxPowerLine::Unit *unit)
 
agx::Bool replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor. More...
 
 Serializable (const Serializable &other)
 Copy constructor. More...
 
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. More...
 
- Protected Attributes inherited from agxDriveTrain::deprecated::TorqueConverterTable
agxDriveTrain::deprecated::TorqueConverterRef m_torqueConverterConnector
 
- Protected Attributes inherited from agxDriveTrain::deprecated::DriveTrainComponent
agxPowerLine::ConnectorRef m_connector
 
agxDriveTrain::ShaftRef m_inputShaft
 
- Protected Attributes inherited from agxDriveTrain::Shaft
agx::Real m_accumulatedAngle
 
- Protected Attributes inherited from agxPowerLine::RotationalUnit
RotationalDimensionRef m_rotationalDimension
 
- Protected Attributes inherited from agxPowerLine::Unit
agx::observer_ptr< agx::RigidBody > m_attachBody
 
PhysicalDimensionRefVector m_dimensions
 
bool m_ignoreMeForStoreRestoreStream
 
agxPowerLine::Unit * m_rootUnit
 
- Protected Attributes inherited from agxPowerLine::SubGraph
SubGraphObserver m_enclosingGraph
 
ConnectorRefVector m_internalConnectors
 
UnitRefVector m_internalUnits
 
agx::Name m_name
 
PowerLine * m_powerLine
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Implementation of a torque converter (TQ) The characteristics of a real TQ is captured in two look up tables.

Lookup table 1: The nu /efficiency table - a lookup for TQ efficiency given rotational speed ratio between turbine and pump (nu).

To set the efficiency table use: void setEfficiencyTable(agx::Vector<std::pair<agx::Real, agx::Real> > const& nu_efficiency);

The efficiency table is directly correlated to the torque multiplier of TQ. To set the torque multiplication use: void setMuTable(agx::Vector<std::pair<agx::Real, agx::Real> > const& nu_mus);

Lookup table 2: The maximum possible torque delivery given nu from and to the unit connected to the TQ pump (usually the engine).

To set the table use: void setPumpTorqueTable(agx::Vector<std::pair<agx::Real, agx::Real> > const& nu_torques);

The torque delivery limit is dependent of RPM of the pump. The torque is scaled using T = T_ref*(rpm/rpm_ref)^2; The reference rpm is set using: void setPumpTorqueReferenceRPM( agx::Real rpm );

Both functions 'setPumpTorqueTable' and 'setPumpTorqueReferenceRPM' are implemented in the parent class "agxModel::TorqueConverterTable".

Definition at line 59 of file HighLevelDriveTrain.h.

Constructor & Destructor Documentation

◆ HighLevelTorqueConverter()

agxDriveTrain::deprecated::HighLevelTorqueConverter::HighLevelTorqueConverter ( )

The only constructor.

◆ ~HighLevelTorqueConverter()

virtual agxDriveTrain::deprecated::HighLevelTorqueConverter::~HighLevelTorqueConverter ( )
protectedvirtual

Member Function Documentation

◆ create() [1/2]

static agxStream::Serializable* agxDriveTrain::deprecated::HighLevelTorqueConverter::create ( )
inlinestatic

Definition at line 107 of file HighLevelDriveTrain.h.

◆ create() [2/2]

static agxStream::Serializable* agxDriveTrain::deprecated::HighLevelTorqueConverter::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 107 of file HighLevelDriveTrain.h.

◆ getClassName()

const char* agxDriveTrain::deprecated::HighLevelTorqueConverter::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxDriveTrain::deprecated::TorqueConverterTable.

Definition at line 107 of file HighLevelDriveTrain.h.

◆ getConstructClassId()

static const char* agxDriveTrain::deprecated::HighLevelTorqueConverter::getConstructClassId ( )
inlinestatic

Definition at line 107 of file HighLevelDriveTrain.h.

◆ getMu()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getMu ( ) const
Returns
the current torque multiplication.

◆ getNu()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getNu ( ) const
Returns
the current speed ratio between the turbine and the pump.

◆ getPumpRPM()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getPumpRPM ( ) const
Returns
the rpm of the pump

◆ getPumpTorque()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getPumpTorque ( ) const
Returns
the torque delivered by the pump

◆ getStorageAgent()

agxStream::StorageAgent* agxDriveTrain::deprecated::HighLevelTorqueConverter::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Reimplemented from agxDriveTrain::deprecated::TorqueConverterTable.

Definition at line 107 of file HighLevelDriveTrain.h.

◆ getTurbineRPM()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getTurbineRPM ( ) const
Returns
the rpm of the turbine.

◆ getTurbineTorque()

agx::Real agxDriveTrain::deprecated::HighLevelTorqueConverter::getTurbineTorque ( ) const
Returns
the torque delivered by the turbine.

◆ restore() [1/2]

virtual bool agxDriveTrain::deprecated::HighLevelTorqueConverter::restore ( agxStream::StorageStream &  str)
overridevirtual

Restores internal data from stream.

Reimplemented from agxDriveTrain::deprecated::TorqueConverterTable.

◆ restore() [2/2]

virtual void agxDriveTrain::deprecated::HighLevelTorqueConverter::restore ( agxStream::InputArchive &  in)
overridevirtual

◆ store() [1/2]

virtual bool agxDriveTrain::deprecated::HighLevelTorqueConverter::store ( agxStream::StorageStream &  str) const
overridevirtual

Stores internal data into stream.

Reimplemented from agxDriveTrain::deprecated::TorqueConverterTable.

◆ store() [2/2]

virtual void agxDriveTrain::deprecated::HighLevelTorqueConverter::store ( agxStream::OutputArchive &  out) const
overridevirtual

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