AGX Dynamics  2.37.3.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 
94  void setGeometryFactorTable(const agx::RealPairVector& velRatio_geometryFactor);
95 
99  void clearEfficiencyTable();
100 
104  void clearGeometryFactorTable();
105 
111  void insertEfficiencyLookupValue(agx::Real velocityRatio, agx::Real efficiency);
112 
118  void insertGeometryFactorLookupValue(agx::Real velocityRatio, agx::Real geometryFactor);
119 
124  const agxPowerLine::LinearLookupTable* getEfficiencyTable() const;
125 
130  const agxPowerLine::LinearLookupTable* getGeometryFactorTable() const;
131 
138  void enableLockUp(bool enable);
139 
144  bool getEnableLockUp() const;
145 
150  void setLockUpTime(agx::Real time);
151 
156  agx::Real getLockUpTime() const;
157 
160  virtual void initConstraint() override;
162  virtual bool preUpdate(agx::Real timeStep) override;
164  virtual bool store(agxStream::StorageStream& str) const override;
166  virtual bool restore(agxStream::StorageStream& str) override;
169 
170  protected:
171  virtual ~TorqueConverter();
174 
180 
185 
186  private:
187  void calculateInternalTorques(agx::Real inputVel, agx::Real outputVel);
188  void controlLock(agx::Real timeStep);
189 
190  };
192 }
Linear interpolation between the inserted variable/value pairs.
A torque converter is a connector, which transfers rotating power with the help of a fluid coupling...
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agxPowerLine::LinearLookupTableRef m_efficiencyTable
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
Templated vector class.
Definition: Vector.h:52
A gear is a connector between two rotational units.
Definition: Gear.h:34
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
#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
agxPowerLine::LinearLookupTableRef m_geometryFactorTable
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97