67 using RotationalUnit::getRotationalDimension;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Defines a viscous coupling between two rotational dimensions.
The gear box can have an arbitrary number of gears.
A Shaft is the most basic PowerLine Unit.
void setEfficiency(agx::Real efficiency)
Specify the efficiency of the clutch: 0 is freely coupled 1 is tightly coupled.
const agxDriveTrain::Clutch * getClutchConnector() const
agx::Real getTorqueTransferConstant() const
Clutch()
Create the clutch.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
void setTorqueTransferConstant(agx::Real constant)
The torque transfer constant (ttc) determines how fast the possible torque transfer goes to infinity.
agxDriveTrain::Clutch * getClutchConnector()
agx::Real getForcedCompliance() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real getEfficiency() const
void setForcedCompliance(agx::Real compliance)
Setting the forced compliance to a non negative overrides the Clutch internal compliance and torque l...
agxDriveTrain::Clutch * m_clutchConnector
A DriveTrainComponent is a Shaft that comes with a Connector and an input shaft.
virtual void getUnitsRecursive(agxPowerLine::UnitPtrVector &units) override
Fill the given vector with the Units that are held by this SubGraph.
const agxDriveTrain::Shaft * getInputShaft() const
void restore(agxStream::InputArchive &in) override
const agxPowerLine::RotationalDimension * getRotationalDimension(agxPowerLine::Side side) const
virtual void setInertia(agx::Real inertia) override
set the inertia for the rotational dimension of the rotational unit.
virtual const agxPowerLine::Connector * getConnector() const
virtual ~DriveTrainComponent()
virtual void getConnectorsRecursive(agxPowerLine::ConnectorPtrVector &connectors) override
Fill the given vector with the Connectors that are held by this SubGraph.
bool replaceConnector(agxPowerLine::Connector *connector)
virtual agxPowerLine::Connector * getConnector()
agxPowerLine::ConnectorRef m_connector
void store(agxStream::OutputArchive &out) const override
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
virtual agx::Real getInertia() const override
agxDriveTrain::ShaftRef m_inputShaft
agxPowerLine::RotationalDimension * getRotationalDimension(agxPowerLine::Side side)
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
const agxDriveTrain::Shaft * getOutputShaft() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
DriveTrainComponent(agxPowerLine::Connector *internalConnector)
void connectInternalConnector()
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxDriveTrain::deprecated::DriveTrainComponent)
The gear box can have an arbitrary number of gears.
agx::Real getGearRatio() const
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
FixedGear()
Create a gear box.
agxDriveTrain::GearRef m_gearConnector
FixedGear(agx::Real ratio)
void setGearRatio(agx::Real ratio)
Set the fixed gear ratio.
virtual bool preUpdate(agx::Real timeStep) override
Functions called by a static function.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
The gear box can have an arbitrary number of gears.
void setGearRatios(const agx::RealVector &gear_ratios)
Set the gear ratio for gear indexed like -2, -1, 0, 1, 2, 3, 4 (negative is reverse gears,...
agx::Real getCurrentGearRatio() const
agx::Real getGearRatio(int gearIndex) const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
GearBox()
Create a gear box.
void createBox(const agx::RealVector &gears)
const agxDriveTrain::GearBox * getGearBox() const
GearBox(const agx::RealVector &gears)
Create a gear box.
bool setGear(int gearIndex)
virtual bool preUpdate(agx::Real timeStep) override
Functions called by a static function.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agxDriveTrain::GearBoxRef m_gearBoxConnector
bool gearUp()
change gears
Base Torque converter for an automatic transmission.
void insertNuMuLookupValue(agx::Real nu, agx::Real mu)
Insert value in the table mapping angular velocity ratio to torque multiplication.
agx::Real getWantedEfficiency() const
TorqueConverterTable()
Create the converter.
agx::Real getCurrentEfficiency() const
virtual ~TorqueConverterTable()
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agx::Real getCurrentMultiplication() const
Return the torque multiplication given the current state.
void setMaxMultiplication(agx::Real maxMultiplication)
When the efficiency goes to zero, the torque multiplication goes to infinity set/get the largest poss...
agxPowerLine::LinearLookupTable * getPumpTorqueTable()
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
void setMuTable(agx::Vector< std::pair< agx::Real, agx::Real > > const &nu_to_mu)
Set table mapping velocity ratio to torque multiplication.
const agxPowerLine::LinearLookupTable * getPumpTorqueTable() const
void setPumpTorqueReferenceRPM(agx::Real rpm)
Set the pump torque reference rpm for the table.
agx::Real getMaxMultiplication() const
void setPumpTorqueTable(agx::Vector< std::pair< agx::Real, agx::Real > > const &nu_torques)
Set the pump torque table.
agx::Real getPumpTorqueReferenceRPM() const
const agxPowerLine::LinearLookupTable * getMuTable() const
Return pointer to table mapping angular velocity ratio to torque multiplication.
agxDriveTrain::deprecated::TorqueConverterRef m_torqueConverterConnector
void clearMuTable()
Clear the table mapping angular velocity ratio to torque multiplication.
Links two connections together.
Linear interpolation between the inserted variable/value pairs.
The rotational has one rotational degree of freedom.
Class for writing serialized data in binary format to a stream.
Abstract base class for storing/restoring a line/drums with version control.
agx::ref_ptr< TorqueConverterTable > TorqueConverterTableRef
agx::ref_ptr< FixedGear > FixedGearRef
agx::ref_ptr< GearBox > GearBoxRef
agx::ref_ptr< Clutch > ClutchRef
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide