AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxDriveTrain::TorqueConverter Class Reference

A torque converter is a connector, which transfers rotating power with the help of a fluid coupling. More...

#include <TorqueConverter.h>

+ Inheritance diagram for agxDriveTrain::TorqueConverter:

Public Member Functions

 TorqueConverter ()
 Create the torque converter. More...
 
virtual bool addNotification (agxSDK::Simulation *simulation) override
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph)
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Connector)
 
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
 
virtual
agx::RegularizationParameters::VariableType 
calculateComplianceAndDamping (const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
 Calculate a compliance that will result in the wanted efficiency. More...
 
agx::Real calculateEfficiency () const
 calculate simulated efficiency More...
 
virtual agx::Real calculateViolation () const
 calculate violation for constraint More...
 
void clearEfficiencyTable ()
 Clear the efficiency table from all values. More...
 
void clearGeometryFactorTable ()
 Clear the geometry factor table from all values. More...
 
bool compareWithInputTypes (PhysicalDimensionRefVector &dimensions) const
 
bool compareWithOutputTypes (PhysicalDimensionRefVector &dimensions) const
 
virtual bool connect (agxPowerLine::Unit *unit)
 Connect a unit to this Connector. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit)
 
bool connect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 Connect on the physical dimension level only. More...
 
virtual bool connect (agxPowerLine::PhysicalDimension *inputDimension, agxPowerLine::Side inputSide, agxPowerLine::Side outputSide, agxPowerLine::PhysicalDimension *outputDimension)
 
bool connectDimensions (Unit *unit, agxPowerLine::Side mySide, agxPowerLine::Side unitSide)
 
virtual
PhysicalDimensionMultiBodyConstraintImplementation * 
createConstraint () override
 Create a gear constraint. More...
 
virtual bool disconnect (agxPowerLine::Unit *unit)
 Disconnect the given unit from this Connector. More...
 
virtual bool disconnect ()
 
bool disconnect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 
void enableLockUp (bool enable)
 Control the lock in the torque converter. More...
 
agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side)
 
const agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side) const
 
agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit) const
 
agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit) const
 
const char * getClassName () const override
 
const
agxPowerLine::ConnectionRefVector & 
getConnections (agxPowerLine::Side side) const
 
virtual void getConnectorsRecursive (ConnectorPtrVector &connectors)
 Fill the given vector with the Connectors that are held by this SubGraph. More...
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getConstraint () const
 
agx::Real getDamping () const
 
const
agxPowerLine::LinearLookupTable * 
getEfficiencyTable () const
 Get the efficiency lookup table. More...
 
agxPowerLine::ElementaryPhysicalDimensionConstraint * getElementaryConstraint () const
 
bool getEnableLockUp () const
 Get if the lock is enabled or disabled. More...
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
Connector * getEnclosingConnector ()
 
const Connector * getEnclosingConnector () const
 
SubGraph * getEnclosingGraph ()
 
const SubGraph * getEnclosingGraph () const
 
Unit * getEnclosingUnit ()
 
const Unit * getEnclosingUnit () const
 
agx::Real getGearRatio () const
 
const
agxPowerLine::LinearLookupTable * 
getGeometryFactorTable () const
 Get the geometry factor lookup table. More...
 
bool getIgnoreForStoreRestoreStream () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
const agxPowerLine::Connection * getInputConnection (size_t index) const
 return a specific output connection More...
 
agxPowerLine::Connection * getInputConnection (size_t index)
 return a specific input connection More...
 
const
agxPowerLine::ConnectionRefVector & 
getInputConnections () const
 return vector to all input connections from this connector More...
 
agxPowerLine::ConnectionRefVector & getInputConnections ()
 return vector to all input connections from this connector More...
 
PhysicalDimension * getInputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getInputTypes () const
 
bool getInputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getInputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
const
agxPowerLine::ConnectorRefVector & 
getInternalConnectors () const
 
const agxPowerLine::UnitRefVector & getInternalUnits () const
 
agx::Real getLockUpTime () const
 Get how long time, in seconds, it will take the torque converter to lock up. More...
 
const agx::Name & getName () const
 
int getNumConnections (agxPowerLine::Side side) const
 
int getNumConnections () const
 
int getNumFreeConnections (agxPowerLine::Side side) const
 
int getNumFreeConnections () const
 
int getNumFreeInputConnections () const
 
int getNumFreeOutputConnections () const
 
int getNumInputConnections () const
 
int getNumOutputConnections () const
 
int getNumPossibleInputConnections () const
 
int getNumPossibleOutputConnections () const
 
agx::Real getOilDensity () const
 Get the value of the oil density, which is the liquid that is used to transfer power. More...
 
const agxPowerLine::Connection * getOutputConnection (size_t index) const
 return a specific output connection More...
 
agxPowerLine::Connection * getOutputConnection (size_t index)
 return a specific input connection More...
 
const
agxPowerLine::ConnectionRefVector & 
getOutputConnections () const
 return vector to all output connections from this connector More...
 
agxPowerLine::ConnectionRefVector & getOutputConnections ()
 return vector to all output connections from this connector More...
 
PhysicalDimension * getOutputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getOutputTypes () const
 
bool getOutputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getOutputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
agx::Real getPowerIn () const
 
agxPowerLine::PowerLine * getPowerLine () const
 
agx::Real getPowerOut () const
 
agx::Real getPumpDiameter () const
 Get the diamerter of the pump. More...
 
agx::Real getPumpTorque ()
 Get the calculated pump torque, which is the counter torque on the pump side in the model. More...
 
agx::Real getRatio () const
 
virtual agx::Real getRatio (agx::Real x) const
 
agx::Real getRatioDerivative () const
 
virtual agx::Real getRatioDerivative (agx::Real x) const
 
int getReferenceCount () const
 
SubGraph * getRootEnclosingGraph ()
 
const SubGraph * getRootEnclosingGraph () const
 
virtual agxPowerLine::Side getSide (const agxPowerLine::Unit *unit) const
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::Real getTurbineTorque ()
 Get the calculated torque output from the turbine side. More...
 
const DimensionTypeVector & getTypes (agxPowerLine::Side side) const
 
bool getUnits (UnitPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitConstPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) const
 
bool getUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
virtual void getUnitsRecursive (UnitPtrVector &units)
 Fill the given vector with the Units that are held by this SubGraph. More...
 
agx::Uuid getUuid () const
 
virtual agx::Real getViolation () const
 Returns the constraint violation for connectors with holonomic constraints. More...
 
bool hasFreeConnection (agxPowerLine::Side side) const
 
bool hasFreeConnection () const
 
bool hasFreeInputConnection () const
 
bool hasFreeOutputConnection () const
 
bool hasInputConnection (Connection *connection)
 Find out if the connection belongs to this connector. More...
 
bool hasOutputConnection (Connection *connection)
 
virtual void initConstraint ()
 
void insertEfficiencyLookupValue (agx::Real velocityRatio, agx::Real efficiency)
 Insert a value into the efficiency lookup table. More...
 
void insertGeometryFactorLookupValue (agx::Real velocityRatio, agx::Real geometryFactor)
 Insert a value into the geometry factor lookup table. More...
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isConstraintValid () const
 
bool isEnclosedWithin (const SubGraph *component) const
 
bool isFinished () const
 
virtual bool isInput (const agxPowerLine::PhysicalDimension *dimension) const
 Determine if the given dimension is part of any of the input connections of this Connector. More...
 
virtual bool isOutput (Connection *connection) const
 Find out if a connection is output from this connector. More...
 
virtual bool isOutput (const agxPowerLine::PhysicalDimension *dimension) const
 Find out if the given dimension is part of any of the output connections. More...
 
virtual bool postRestore (agxStream::StorageStream &str)
 
virtual bool postStore (agxStream::StorageStream &str) const
 Set values of constraints. More...
 
virtual bool postUpdate (agx::Real timeStep)
 
virtual void prepareForRestore ()
 
virtual void prepareForStore ()
 
virtual bool preUpdate (agx::Real timeStep)
 
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 bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
 remove connector and constraint from simulation More...
 
virtual bool restore (agxStream::StorageStream &str) override
 Restores internal data from stream. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
void setConstraint (agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *constraint)
 set the constraint that represents this connector in the solver. More...
 
void setDamping (agx::Real damping)
 Set the damping of the constraint. More...
 
void setEfficiencyTable (const agx::RealPairVector &velRatio_efficiency)
 Set the values in the efficiency table, will clear the old values from the table. 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 setGearRatio (agx::Real ratio)
 Set the gear ratio. More...
 
void setGeometryFactorTable (const agx::RealPairVector &velRatio_geometryFactor)
 Set the values in the geometry factor table, will clear the old values from the table. More...
 
void setIgnoreForStoreRestoreStream (bool ignore)
 
void setLockUpTime (agx::Real time)
 Set how long time it should take to lock up the torque converter. More...
 
void setName (const agx::Name &name)
 Set the name of this power line component. More...
 
void setNumPossibleInputConnections (int num)
 Define number of input dimensions the constraint should handle. More...
 
void setNumPossibleOutputConnections (int num)
 Define number of output dimensions the constraint should handle. More...
 
bool setOilDensity (agx::Real oilDensity)
 Set the oil density, which is the liquid that is used to transfer power. More...
 
void setPowerLine (agxPowerLine::PowerLine *powerLine)
 
bool setPumpDiameter (agx::Real pumpDiameter)
 Set the pump diameter. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
void spreadPowerLineToGraph ()
 
virtual bool store (agxStream::StorageStream &str) const override
 Stores internal data into stream. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
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 bool vetoConnect (agxPowerLine::Unit *unit) const
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
static PhysicalDimension * getDimension (const ConnectionRefVector &connections, const PhysicalDimension::Type dimensionType)
 
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 ~TorqueConverter ()
 
void addInternalConnector (agxPowerLine::Connector *connector)
 
void addInternalUnit (agxPowerLine::Unit *unit)
 
void allocateObserverVector () const
 
virtual bool connect (agxPowerLine::Unit *inputUnit, agxPowerLine::Side inputUnitSide, agxPowerLine::Side outputUnitSide, agxPowerLine::Unit *outputUnit)
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
bool getUnits (UnitPtrSetVector &units, ConnectionRefVector &connections, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitConstPtrSetVector &units, const ConnectionRefVector &connections, const bool startFromCleanUnitSet=true) const
 
bool hasNonValidInputConnection () const
 
bool hasNonValidOutputConnection () const
 
void removeInternalConnector (agxPowerLine::Connector *connector)
 
void removeInternalUnit (agxPowerLine::Unit *unit)
 
agx::Bool replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
 
void setRatio (agx::Real ratio)
 set/get the ratio (scaling of load through the constraint). More...
 
void setRatioDerivative (agx::Real ratioDerivative)
 
void uninitialize ()
 

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

PhysicalDimensionMultiBodyConstraintImplementation * m_constraint
 
agx::Real m_damping
 
agx::Real m_diameter
 
agxPowerLine::LinearLookupTableRef m_efficiencyTable
 
SubGraphObserver m_enclosingGraph
 
agx::Real m_gearRatio
 
agxPowerLine::LinearLookupTableRef m_geometryFactorTable
 
bool m_ignoreMeForStoreRestoreStream
 
ConnectionRefVector m_inputConnections
 
DimensionTypeVector m_inputTypes
 
ConnectorRefVector m_internalConnectors
 
UnitRefVector m_internalUnits
 
bool m_lockEnabled
 
agx::Real m_lockTime
 
agx::Real m_m0
 
Mutex m_mutex
 
agx::Name m_name
 
int m_numPossibleInputs
 
int m_numPossibleOutputs
 
ObserverContainer m_observers
 
agx::Real m_oilDensity
 
ConnectionRefVector m_outputConnections
 
DimensionTypeVector m_outputTypes
 
PowerLine * m_powerLine
 
agx::Real m_pumpTorque
 
agx::Real m_ratio
 
agx::Real m_ratioAtLock
 
agx::Real m_ratioDerivative
 
AtomicValue m_refCount
 
agx::Real m_timeSinceLock
 
agx::Real m_turbineTorque
 

Detailed Description

A torque converter is a connector, which transfers rotating power with the help of a fluid coupling.

The implementation is based on two tables, one descibing the efficiency of the transfered torque and one describing how the geometry of it affects the counter torque present in the torque converter. The torque converter also has a lock up clutch, which makes it possible to lock the torque converter, and let input and output shafts rotate at the same speed.

Definition at line 32 of file TorqueConverter.h.

Constructor & Destructor Documentation

agxDriveTrain::TorqueConverter::TorqueConverter ( )

Create the torque converter.

The torque converter has default values for all parameters, also the efficiency and geometry tables, which will give the torque converter typical characteristics.

virtual agxDriveTrain::TorqueConverter::~TorqueConverter ( )
protectedvirtual

Member Function Documentation

void agxPowerLine::SubGraph::addInternalConnector ( agxPowerLine::Connector *  connector)
protectedinherited
void agxPowerLine::SubGraph::addInternalUnit ( agxPowerLine::Unit *  unit)
protectedinherited
virtual bool agxPowerLine::Connector::addNotification ( agxSDK::Simulation *  simulation)
overridevirtualinherited

Implements agxPowerLine::SubGraph.

Reimplemented in agxDriveTrain::Clutch.

agxPowerLine::SubGraph::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE ( agxPowerLine::SubGraph  )
inherited
agxPowerLine::Connector::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE ( agxPowerLine::Connector  )
inherited
void agx::Referenced::allocateObserverVector ( ) const
protectedinherited
template<typename T >
T* agx::Referenced::as ( )
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().

template<typename T >
const T* agx::Referenced::as ( ) const
inherited
template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited
virtual agx::RegularizationParameters::VariableType agxPowerLine::RotationalConnector::calculateComplianceAndDamping ( const agx::Real  timeStep,
agx::Real &  compliance,
agx::Real &  damping 
)
overridevirtualinherited
agx::Real agxPowerLine::Connector::calculateEfficiency ( ) const
inherited

calculate simulated efficiency

virtual agx::Real agxPowerLine::Connector::calculateViolation ( ) const
virtualinherited

calculate violation for constraint

Reimplemented in agxDriveTrain::HolonomicGear, and agxPowerLine::RotationalTranslationalHolonomicConnector.

void agxDriveTrain::TorqueConverter::clearEfficiencyTable ( )

Clear the efficiency table from all values.

void agxDriveTrain::TorqueConverter::clearGeometryFactorTable ( )

Clear the geometry factor table from all values.

bool agxPowerLine::Connector::compareWithInputTypes ( PhysicalDimensionRefVector &  dimensions) const
inherited
bool agxPowerLine::Connector::compareWithOutputTypes ( PhysicalDimensionRefVector &  dimensions) const
inherited
virtual bool agxPowerLine::Connector::connect ( agxPowerLine::Unit *  unit)
virtualinherited

Connect a unit to this Connector.

Reimplemented in agxDriveTrain::MultiGear.

virtual bool agxPowerLine::Connector::connect ( agxPowerLine::Side  mySide,
agxPowerLine::Side  unitSide,
agxPowerLine::Unit *  unit 
)
virtualinherited
bool agxPowerLine::Connector::connect ( agxPowerLine::PhysicalDimension *  dimension,
agxPowerLine::Side  connectorSide,
agxPowerLine::Side  dimensionSide 
)
inherited

Connect on the physical dimension level only.

Will not update the parent Unit's root node and will not spread the power line over the graph.

virtual bool agxPowerLine::Connector::connect ( agxPowerLine::PhysicalDimension *  inputDimension,
agxPowerLine::Side  inputSide,
agxPowerLine::Side  outputSide,
agxPowerLine::PhysicalDimension *  outputDimension 
)
virtualinherited
virtual bool agxPowerLine::Connector::connect ( agxPowerLine::Unit *  inputUnit,
agxPowerLine::Side  inputUnitSide,
agxPowerLine::Side  outputUnitSide,
agxPowerLine::Unit *  outputUnit 
)
protectedvirtualinherited

Reimplemented in agxHydraulics::FlowConnector.

bool agxPowerLine::Connector::connectDimensions ( Unit *  unit,
agxPowerLine::Side  mySide,
agxPowerLine::Side  unitSide 
)
inherited
static agxStream::Serializable* agxDriveTrain::Gear::create ( )
inlinestaticinherited

Definition at line 77 of file Gear.h.

static agxStream::Serializable* agxDriveTrain::Gear::create ( agxStream::InputArchive &  )
inlinestaticinherited

Definition at line 77 of file Gear.h.

virtual PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::RotationalConnector::createConstraint ( )
overridevirtualinherited

Create a gear constraint.

Implements agxPowerLine::Connector.

Reimplemented in agxDriveTrain::HolonomicGear.

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited
virtual bool agxPowerLine::Connector::disconnect ( agxPowerLine::Unit *  unit)
virtualinherited

Disconnect the given unit from this Connector.

Will reduce the refCount of the Connector, so the instance may have been deleted when this method returns. Keep an extra ConnectorRef, at the call site of elsewhere, to avoid this.

Reimplemented in agxHydraulics::SpoolValve, agxDriveTrain::Differential, and agxDriveTrain::MultiGear.

virtual bool agxPowerLine::Connector::disconnect ( )
virtualinherited

Reimplemented in agxHydraulics::SpoolValve.

bool agxPowerLine::Connector::disconnect ( agxPowerLine::PhysicalDimension *  dimension,
agxPowerLine::Side  connectorSide,
agxPowerLine::Side  dimensionSide 
)
inherited
void agxDriveTrain::TorqueConverter::enableLockUp ( bool  enable)

Control the lock in the torque converter.

A locked torque converter will have the same pump and turbine velocities. The lock should be released in a gear change, when braking or when quickly increasing the velocity at the pump side.

Parameters
enable- when true, it will enable the lock. If it is false, the lock will be disabled.
agxPowerLine::Connection* agxPowerLine::Connector::findConnection ( const agxPowerLine::Unit *  unit,
agxPowerLine::Side  side 
)
inherited
const agxPowerLine::Connection* agxPowerLine::Connector::findConnection ( const agxPowerLine::Unit *  unit,
agxPowerLine::Side  side 
) const
inherited
agxPowerLine::Connection* agxPowerLine::Connector::findInputConnection ( const agxPowerLine::Unit *  unit)
inherited
const agxPowerLine::Connection* agxPowerLine::Connector::findInputConnection ( const agxPowerLine::Unit *  unit) const
inherited
agxPowerLine::Connection* agxPowerLine::Connector::findOutputConnection ( const agxPowerLine::Unit *  unit)
inherited
const agxPowerLine::Connection* agxPowerLine::Connector::findOutputConnection ( const agxPowerLine::Unit *  unit) const
inherited
void agxStream::Serializable::generateUuid ( )
protectedinherited
const char* agxDriveTrain::Gear::getClassName ( ) const
inlineoverridevirtualinherited
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Reimplemented in agxDriveTrain::HolonomicGear, and agxDriveTrain::SlipGear.

Definition at line 77 of file Gear.h.

const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getConnections ( agxPowerLine::Side  side) const
inherited
virtual void agxPowerLine::SubGraph::getConnectorsRecursive ( ConnectorPtrVector &  connectors)
virtualinherited

Fill the given vector with the Connectors that are held by this SubGraph.

The collection is recursive, so internal Connectors will be collected.

Reimplemented in agxDriveTrain::Differential, and agxDriveTrain::deprecated::DriveTrainComponent.

agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::Connector::getConstraint ( ) const
inherited
Returns
the constraint representing this connector in the solver.
static const char* agxDriveTrain::Gear::getConstructClassId ( )
inlinestaticinherited

Definition at line 77 of file Gear.h.

agx::Real agxPowerLine::Connector::getDamping ( ) const
inherited
static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.
static PhysicalDimension* agxPowerLine::Connector::getDimension ( const ConnectionRefVector &  connections,
const PhysicalDimension::Type  dimensionType 
)
staticinherited
const agxPowerLine::LinearLookupTable* agxDriveTrain::TorqueConverter::getEfficiencyTable ( ) const

Get the efficiency lookup table.

Returns
Table with the efficency values at given velocity ratios.
agxPowerLine::ElementaryPhysicalDimensionConstraint* agxPowerLine::Connector::getElementaryConstraint ( ) const
inherited
Returns
The first elementary constraint in the constraint returned by getConstraint(), or nullptr if there is no constraint.
bool agxDriveTrain::TorqueConverter::getEnableLockUp ( ) const

Get if the lock is enabled or disabled.

Returns
true if lock is enabled, false if it is disabled
bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object
Connector* agxPowerLine::SubGraph::getEnclosingConnector ( )
inherited
const Connector* agxPowerLine::SubGraph::getEnclosingConnector ( ) const
inherited
SubGraph* agxPowerLine::SubGraph::getEnclosingGraph ( )
inherited
const SubGraph* agxPowerLine::SubGraph::getEnclosingGraph ( ) const
inherited
Unit* agxPowerLine::SubGraph::getEnclosingUnit ( )
inherited
const Unit* agxPowerLine::SubGraph::getEnclosingUnit ( ) const
inherited
agx::Real agxDriveTrain::Gear::getGearRatio ( ) const
inherited
Returns
The gear ratio.
const agxPowerLine::LinearLookupTable* agxDriveTrain::TorqueConverter::getGeometryFactorTable ( ) const

Get the geometry factor lookup table.

Returns
Table with the geometry factor values at given velocity ratios.
bool agxPowerLine::Connector::getIgnoreForStoreRestoreStream ( ) const
inherited
agx::UInt32 agxStream::Serializable::getIndex ( ) const
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.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

const agxPowerLine::Connection* agxPowerLine::Connector::getInputConnection ( size_t  index) const
inherited

return a specific output connection

agxPowerLine::Connection* agxPowerLine::Connector::getInputConnection ( size_t  index)
inherited

return a specific input connection

const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getInputConnections ( ) const
inherited

return vector to all input connections from this connector

agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getInputConnections ( )
inherited

return vector to all input connections from this connector

PhysicalDimension* agxPowerLine::Connector::getInputDimension ( const PhysicalDimension::Type  dimensionType) const
inherited
const DimensionTypeVector& agxPowerLine::Connector::getInputTypes ( ) const
inherited
bool agxPowerLine::Connector::getInputUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)
inherited
bool agxPowerLine::Connector::getInputUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const
inherited
const agxPowerLine::ConnectorRefVector& agxPowerLine::SubGraph::getInternalConnectors ( ) const
inherited
const agxPowerLine::UnitRefVector& agxPowerLine::SubGraph::getInternalUnits ( ) const
inherited
agx::Real agxDriveTrain::TorqueConverter::getLockUpTime ( ) const

Get how long time, in seconds, it will take the torque converter to lock up.

Returns
Lock up time, in seconds
const agx::Name& agxPowerLine::SubGraph::getName ( ) const
inherited
Returns
The name of this power line component.
int agxPowerLine::Connector::getNumConnections ( agxPowerLine::Side  side) const
inherited
int agxPowerLine::Connector::getNumConnections ( ) const
inherited
int agxPowerLine::Connector::getNumFreeConnections ( agxPowerLine::Side  side) const
inherited
int agxPowerLine::Connector::getNumFreeConnections ( ) const
inherited
int agxPowerLine::Connector::getNumFreeInputConnections ( ) const
inherited
int agxPowerLine::Connector::getNumFreeOutputConnections ( ) const
inherited
int agxPowerLine::Connector::getNumInputConnections ( ) const
inherited
int agxPowerLine::Connector::getNumOutputConnections ( ) const
inherited
int agxPowerLine::Connector::getNumPossibleInputConnections ( ) const
inherited
Returns
number of input dimensions the constraint can handle.
int agxPowerLine::Connector::getNumPossibleOutputConnections ( ) const
inherited
Returns
number of output dimensions the constraint can handle.
agx::Real agxDriveTrain::TorqueConverter::getOilDensity ( ) const

Get the value of the oil density, which is the liquid that is used to transfer power.

Returns
The oil density, in kilograms per cubic meter
const agxPowerLine::Connection* agxPowerLine::Connector::getOutputConnection ( size_t  index) const
inherited

return a specific output connection

agxPowerLine::Connection* agxPowerLine::Connector::getOutputConnection ( size_t  index)
inherited

return a specific input connection

const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getOutputConnections ( ) const
inherited

return vector to all output connections from this connector

agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getOutputConnections ( )
inherited

return vector to all output connections from this connector

PhysicalDimension* agxPowerLine::Connector::getOutputDimension ( const PhysicalDimension::Type  dimensionType) const
inherited
const DimensionTypeVector& agxPowerLine::Connector::getOutputTypes ( ) const
inherited
bool agxPowerLine::Connector::getOutputUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)
inherited
bool agxPowerLine::Connector::getOutputUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const
inherited
agx::Real agxPowerLine::Connector::getPowerIn ( ) const
inherited
agxPowerLine::PowerLine* agxPowerLine::Connector::getPowerLine ( ) const
inherited
agx::Real agxPowerLine::Connector::getPowerOut ( ) const
inherited
agx::Real agxDriveTrain::TorqueConverter::getPumpDiameter ( ) const

Get the diamerter of the pump.

Returns
The pump diameter, in meters
agx::Real agxDriveTrain::TorqueConverter::getPumpTorque ( )

Get the calculated pump torque, which is the counter torque on the pump side in the model.

Returns
The pump torque
agx::Real agxPowerLine::Connector::getRatio ( ) const
inherited
virtual agx::Real agxPowerLine::Connector::getRatio ( agx::Real  x) const
virtualinherited
agx::Real agxPowerLine::Connector::getRatioDerivative ( ) const
inherited
virtual agx::Real agxPowerLine::Connector::getRatioDerivative ( agx::Real  x) const
virtualinherited
int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.
SubGraph* agxPowerLine::SubGraph::getRootEnclosingGraph ( )
inherited
const SubGraph* agxPowerLine::SubGraph::getRootEnclosingGraph ( ) const
inherited
virtual agxPowerLine::Side agxPowerLine::Connector::getSide ( const agxPowerLine::Unit *  unit) const
virtualinherited
agxStream::StorageAgent* agxDriveTrain::Gear::getStorageAgent ( ) const
inlineoverridevirtualinherited
Returns
the storage agent

Implements agxStream::Serializable.

Reimplemented in agxDriveTrain::HolonomicGear, and agxDriveTrain::SlipGear.

Definition at line 77 of file Gear.h.

agx::Real agxDriveTrain::TorqueConverter::getTurbineTorque ( )

Get the calculated torque output from the turbine side.

Returns
The turbine torque
const DimensionTypeVector& agxPowerLine::Connector::getTypes ( agxPowerLine::Side  side) const
inherited
bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
agxPowerLine::Side  side,
const bool  startFromCleanUnitSet = true 
)
inherited
bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)
inherited
bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
agxPowerLine::Side  side,
const bool  startFromCleanUnitSet = true 
) const
inherited
bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const
inherited
bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
ConnectionRefVector &  connections,
const bool  startFromCleanUnitSet = true 
)
protectedinherited
bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
const ConnectionRefVector &  connections,
const bool  startFromCleanUnitSet = true 
) const
protectedinherited
virtual void agxPowerLine::SubGraph::getUnitsRecursive ( UnitPtrVector &  units)
virtualinherited

Fill the given vector with the Units that are held by this SubGraph.

The collection is recursive, so internal Units will be collected.

Reimplemented in agxDriveTrain::deprecated::DriveTrainComponent.

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

virtual agx::Real agxPowerLine::Connector::getViolation ( ) const
virtualinherited

Returns the constraint violation for connectors with holonomic constraints.

bool agxPowerLine::Connector::hasFreeConnection ( agxPowerLine::Side  side) const
inherited
bool agxPowerLine::Connector::hasFreeConnection ( ) const
inherited
bool agxPowerLine::Connector::hasFreeInputConnection ( ) const
inherited
bool agxPowerLine::Connector::hasFreeOutputConnection ( ) const
inherited
bool agxPowerLine::Connector::hasInputConnection ( Connection *  connection)
inherited

Find out if the connection belongs to this connector.

bool agxPowerLine::Connector::hasNonValidInputConnection ( ) const
protectedinherited
bool agxPowerLine::Connector::hasNonValidOutputConnection ( ) const
protectedinherited
bool agxPowerLine::Connector::hasOutputConnection ( Connection *  connection)
inherited
Returns
true if if the connection belongs to this connector.
virtual void agxPowerLine::Connector::initConstraint ( )
virtualinherited
void agxDriveTrain::TorqueConverter::insertEfficiencyLookupValue ( agx::Real  velocityRatio,
agx::Real  efficiency 
)

Insert a value into the efficiency lookup table.

Parameters
velocityRatio- velocity ratio. Turbine velocity divided by pump velocoty.
efficiency- efficiency of torque converter, for the given velocity ratio
void agxDriveTrain::TorqueConverter::insertGeometryFactorLookupValue ( agx::Real  velocityRatio,
agx::Real  geometryFactor 
)

Insert a value into the geometry factor lookup table.

Parameters
velocityRatio- velocity ratio. Turbine velocity divided by pump velocoty.
geometryFactor- effect on counter torque due to geometry, for the given velocity ratio
template<typename T >
bool agx::Referenced::is ( ) const
inherited
bool agxPowerLine::Connector::isConstraintValid ( ) const
inherited
bool agxPowerLine::SubGraph::isEnclosedWithin ( const SubGraph *  component) const
inherited
Returns
True if this component is enclosed within the given component.
bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

virtual bool agxPowerLine::Connector::isInput ( const agxPowerLine::PhysicalDimension *  dimension) const
virtualinherited

Determine if the given dimension is part of any of the input connections of this Connector.

Parameters
dimension- The dimension to look for.
Returns
True if the dimension was found on the input side of this Connector. False otherwise.
virtual bool agxPowerLine::Connector::isOutput ( Connection *  connection) const
virtualinherited

Find out if a connection is output from this connector.

virtual bool agxPowerLine::Connector::isOutput ( const agxPowerLine::PhysicalDimension *  dimension) const
virtualinherited

Find out if the given dimension is part of any of the output connections.

virtual bool agxPowerLine::Connector::postRestore ( agxStream::StorageStream &  str)
virtualinherited
virtual bool agxPowerLine::Connector::postStore ( agxStream::StorageStream &  str) const
virtualinherited

Set values of constraints.

Must be called after the constraints are created.

Reimplemented in agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::Clutch.

Referenced by agxHydraulics::detail::SpoolValveConnector::postStore().

virtual bool agxPowerLine::SubGraph::postUpdate ( agx::Real  timeStep)
virtualinherited
virtual void agxPowerLine::SubGraph::prepareForRestore ( )
virtualinherited
virtual void agxPowerLine::SubGraph::prepareForStore ( )
virtualinherited
void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

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().

void agxPowerLine::SubGraph::removeInternalConnector ( agxPowerLine::Connector *  connector)
protectedinherited
void agxPowerLine::SubGraph::removeInternalUnit ( agxPowerLine::Unit *  unit)
protectedinherited
virtual bool agxPowerLine::Connector::removeNotification ( agxUtil::ConstraintHolder *  holder,
agxSDK::Simulation *  simulation 
)
overridevirtualinherited

remove connector and constraint from simulation

Implements agxPowerLine::SubGraph.

Reimplemented in agxDriveTrain::HolonomicGear, and agxDriveTrain::Differential.

agx::Bool agxPowerLine::SubGraph::replaceInternalUnit ( agxPowerLine::Unit *  oldUnit,
agxPowerLine::Unit *  newUnit 
)
protectedinherited
virtual bool agxDriveTrain::Gear::restore ( agxStream::StorageStream &  str)
overridevirtualinherited
void agxPowerLine::Connector::setConstraint ( agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *  constraint)
inherited

set the constraint that represents this connector in the solver.

void agxPowerLine::Connector::setDamping ( agx::Real  damping)
inherited

Set the damping of the constraint.

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

void agxDriveTrain::TorqueConverter::setEfficiencyTable ( const agx::RealPairVector &  velRatio_efficiency)

Set the values in the efficiency table, will clear the old values from the table.

The table describes how efficiently the torque can be transfered for a given velocity ratio.

Parameters
velRatio_efficiency- vector pairs describing the table. x-values should correspond to velocity ratio and y-values to efficiency
void agxStream::Serializable::setEnableSerialization ( bool  flag)
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.

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

void agxDriveTrain::Gear::setGearRatio ( agx::Real  ratio)
inherited

Set the gear ratio.

A higher gear ratio causes the output to rotate more slowly.

void agxDriveTrain::TorqueConverter::setGeometryFactorTable ( const agx::RealPairVector &  velRatio_geometryFactor)

Set the values in the geometry factor table, will clear the old values from the table.

The table describes how the counter torque changes with the velocity ratio.

Parameters
velRatio_geometryFactor- vector pairs describing the table. x-values should correspond to velocity ratio and y-values to geometry factor
void agxPowerLine::Connector::setIgnoreForStoreRestoreStream ( bool  ignore)
inherited
void agxDriveTrain::TorqueConverter::setLockUpTime ( agx::Real  time)

Set how long time it should take to lock up the torque converter.

Parameters
time- locking time in seconds
void agxPowerLine::SubGraph::setName ( const agx::Name &  name)
inherited

Set the name of this power line component.

Parameters
name- The new name.
void agxPowerLine::Connector::setNumPossibleInputConnections ( int  num)
inherited

Define number of input dimensions the constraint should handle.

void agxPowerLine::Connector::setNumPossibleOutputConnections ( int  num)
inherited

Define number of output dimensions the constraint should handle.

bool agxDriveTrain::TorqueConverter::setOilDensity ( agx::Real  oilDensity)

Set the oil density, which is the liquid that is used to transfer power.

Parameters
oilDensity- oil density, in kilograms per cubic meter
Returns
true of successful, false otherwise
void agxPowerLine::Connector::setPowerLine ( agxPowerLine::PowerLine *  powerLine)
inherited
bool agxDriveTrain::TorqueConverter::setPumpDiameter ( agx::Real  pumpDiameter)

Set the pump diameter.

Parameters
pumpDiameter- pump diameter, in meters
Returns
true of successful, false otherwise
void agxPowerLine::Connector::setRatio ( agx::Real  ratio)
protectedinherited

set/get the ratio (scaling of load through the constraint).

void agxPowerLine::Connector::setRatioDerivative ( agx::Real  ratioDerivative)
protectedinherited
void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

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 agxPowerLine::SubGraph::spreadPowerLineToGraph ( )
inherited
virtual bool agxDriveTrain::Gear::store ( agxStream::StorageStream &  str) const
overridevirtualinherited
void agxPowerLine::Connector::uninitialize ( )
protectedinherited
void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

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.

void agx::Referenced::unreference_nodelete ( ) const
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.

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited
virtual bool agxPowerLine::Connector::vetoConnect ( agxPowerLine::Unit *  unit) const
virtualinherited

Member Data Documentation

PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::Connector::m_constraint
protectedinherited

Definition at line 397 of file Connector.h.

agx::Real agxPowerLine::Connector::m_damping
protectedinherited

Definition at line 393 of file Connector.h.

agx::Real agxDriveTrain::TorqueConverter::m_diameter
protected

Definition at line 176 of file TorqueConverter.h.

agxPowerLine::LinearLookupTableRef agxDriveTrain::TorqueConverter::m_efficiencyTable
protected

Definition at line 172 of file TorqueConverter.h.

SubGraphObserver agxPowerLine::SubGraph::m_enclosingGraph
protectedinherited

Definition at line 162 of file SubGraph.h.

agx::Real agxDriveTrain::Gear::m_gearRatio
protectedinherited

Definition at line 82 of file Gear.h.

agxPowerLine::LinearLookupTableRef agxDriveTrain::TorqueConverter::m_geometryFactorTable
protected

Definition at line 173 of file TorqueConverter.h.

bool agxPowerLine::Connector::m_ignoreMeForStoreRestoreStream
protectedinherited

Definition at line 399 of file Connector.h.

ConnectionRefVector agxPowerLine::Connector::m_inputConnections
protectedinherited

Definition at line 388 of file Connector.h.

DimensionTypeVector agxPowerLine::Connector::m_inputTypes
protectedinherited

Definition at line 390 of file Connector.h.

ConnectorRefVector agxPowerLine::SubGraph::m_internalConnectors
protectedinherited

Definition at line 164 of file SubGraph.h.

UnitRefVector agxPowerLine::SubGraph::m_internalUnits
protectedinherited

Definition at line 163 of file SubGraph.h.

bool agxDriveTrain::TorqueConverter::m_lockEnabled
protected

Definition at line 181 of file TorqueConverter.h.

agx::Real agxDriveTrain::TorqueConverter::m_lockTime
protected

Definition at line 182 of file TorqueConverter.h.

agx::Real agxDriveTrain::TorqueConverter::m_m0
protected

Definition at line 177 of file TorqueConverter.h.

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

agx::Name agxPowerLine::SubGraph::m_name
protectedinherited

Definition at line 166 of file SubGraph.h.

int agxPowerLine::Connector::m_numPossibleInputs
protectedinherited

Definition at line 386 of file Connector.h.

int agxPowerLine::Connector::m_numPossibleOutputs
protectedinherited

Definition at line 387 of file Connector.h.

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

agx::Real agxDriveTrain::TorqueConverter::m_oilDensity
protected

Definition at line 175 of file TorqueConverter.h.

ConnectionRefVector agxPowerLine::Connector::m_outputConnections
protectedinherited

Definition at line 389 of file Connector.h.

DimensionTypeVector agxPowerLine::Connector::m_outputTypes
protectedinherited

Definition at line 391 of file Connector.h.

PowerLine* agxPowerLine::SubGraph::m_powerLine
protectedinherited

Definition at line 165 of file SubGraph.h.

agx::Real agxDriveTrain::TorqueConverter::m_pumpTorque
protected

Definition at line 178 of file TorqueConverter.h.

agx::Real agxPowerLine::Connector::m_ratio
protectedinherited

Definition at line 395 of file Connector.h.

agx::Real agxDriveTrain::TorqueConverter::m_ratioAtLock
protected

Definition at line 184 of file TorqueConverter.h.

agx::Real agxPowerLine::Connector::m_ratioDerivative
protectedinherited

Definition at line 396 of file Connector.h.

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

agx::Real agxDriveTrain::TorqueConverter::m_timeSinceLock
protected

Definition at line 183 of file TorqueConverter.h.

agx::Real agxDriveTrain::TorqueConverter::m_turbineTorque
protected

Definition at line 179 of file TorqueConverter.h.


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