AGX Dynamics  2.38.0.2
TorqueConverter.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agxModel/export.h>
20 #include <agxPowerLine/PowerLine.h>
21 #include <agxDriveTrain/Gear.h>
22 
23 namespace agxDriveTrain
24 {
33  {
34  public:
41 
46  agx::Real getPumpTorque();
47 
52  agx::Real getTurbineTorque();
53 
58  agx::Real getOilDensity() const;
59 
65  bool setOilDensity(agx::Real oilDensity);
66 
71  agx::Real getPumpDiameter() const;
72 
78  bool setPumpDiameter(agx::Real pumpDiameter);
79 
86  void setEfficiencyTable(const agx::RealPairVector& velRatio_efficiency);
87 
95  void setGeometryFactorTable(const agx::RealPairVector& velRatio_geometryFactor);
96 
100  void clearEfficiencyTable();
101 
105  void clearGeometryFactorTable();
106 
112  void insertEfficiencyLookupValue(agx::Real velocityRatio, agx::Real efficiency);
113 
119  void insertGeometryFactorLookupValue(agx::Real velocityRatio, agx::Real geometryFactor);
120 
125  const agxPowerLine::LinearLookupTable* getEfficiencyTable() const;
126 
131  const agxPowerLine::LinearLookupTable* getGeometryFactorTable() const;
132 
139  void enableLockUp(bool enable);
140 
145  bool getEnableLockUp() const;
146 
151  void setLockUpTime(agx::Real time);
152 
157  agx::Real getLockUpTime() const;
158 
161  virtual void initConstraint() override;
163  virtual bool preUpdate(agx::Real timeStep) override;
165  virtual bool store(agxStream::StorageStream& str) const override;
167  virtual bool restore(agxStream::StorageStream& str) override;
170 
171  protected:
172  virtual ~TorqueConverter();
175 
181 
186 
187  private:
188  void calculateInternalTorques(agx::Real inputVel, agx::Real outputVel);
189  void controlLock(agx::Real timeStep);
190 
191  };
193 }
agxDriveTrain::TorqueConverter
A torque converter is a connector, which transfers rotating power with the help of a fluid coupling.
Definition: TorqueConverter.h:32
agxDriveTrain::TorqueConverter::m_pumpTorque
agx::Real m_pumpTorque
Definition: TorqueConverter.h:179
PowerLine.h
agxPowerLine::LinearLookupTable
Linear interpolation between the inserted variable/value pairs.
Definition: PowerLineUtils.h:118
agx::Real
double Real
Definition: Real.h:42
agx::Vector
Templated vector class.
Definition: Vector.h:52
export.h
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
agxDriveTrain
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
agxDriveTrain::TorqueConverter::m_diameter
agx::Real m_diameter
Definition: TorqueConverter.h:177
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
agxDriveTrain::TorqueConverter::m_m0
agx::Real m_m0
Definition: TorqueConverter.h:178
agx::ref_ptr< LinearLookupTable >
Gear.h
agxDriveTrain::TorqueConverter::m_geometryFactorTable
agxPowerLine::LinearLookupTableRef m_geometryFactorTable
Definition: TorqueConverter.h:174
agxDriveTrain::TorqueConverter::m_turbineTorque
agx::Real m_turbineTorque
Definition: TorqueConverter.h:180
agxDriveTrain::TorqueConverter::m_lockEnabled
bool m_lockEnabled
Definition: TorqueConverter.h:182
agxDriveTrain::TorqueConverter::m_lockTime
agx::Real m_lockTime
Definition: TorqueConverter.h:183
agxDriveTrain::TorqueConverter::m_oilDensity
agx::Real m_oilDensity
Definition: TorqueConverter.h:176
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxDriveTrain::Gear
A gear is a connector between two rotational units.
Definition: Gear.h:34
agxDriveTrain::TorqueConverter::m_timeSinceLock
agx::Real m_timeSinceLock
Definition: TorqueConverter.h:184
agxDriveTrain::TorqueConverter::m_ratioAtLock
agx::Real m_ratioAtLock
Definition: TorqueConverter.h:185
agxDriveTrain::TorqueConverter::m_efficiencyTable
agxPowerLine::LinearLookupTableRef m_efficiencyTable
Definition: TorqueConverter.h:173