AGX Dynamics  2.35.0.1
deprecated/TorqueConverter.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 
20 #include <agxPowerLine/PowerLine.h>
22 #include <agxDriveTrain/Gear.h>
23 
24 namespace agxDriveTrain
25 {
26 
27  namespace deprecated
28  {
29 
34  {
35  public:
40 
44  virtual agx::Real variableLookupFunction() const override;
45 
46 #ifndef SWIG
50  virtual bool store(agxStream::StorageStream& str) const override;
51 
55  virtual bool restore(agxStream::StorageStream& str) override;
56 
58 #endif
59 
60  protected:
62  };
63 
65 
70  {
71  public:
76 
80  agx::Real getNu() const;
81 
86  void setMaxMultiplication(agx::Real maxMultiplication);
87 
92 
100  void setPumpTorqueTable(const agx::RealPairVector& nu_torques);
101 
105  void setMuTable(const agx::RealPairVector& nu_to_mu);
106 
111 
116 
121 
126 
130  void clearMuTable();
131 
136 
143 
148 
150  virtual void initConstraint() override;
151  agx::Real getWantedEfficiency() const;
153 
157  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
158 
159 #ifndef SWIG
163  virtual bool store(agxStream::StorageStream& str) const override;
164 
168  virtual bool restore(agxStream::StorageStream& str) override;
169 
171 #endif
172 
173  protected:
174 
175  virtual ~TorqueConverter();
178 
181 
182  };
184  }
185 }
#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
#define AGXMODEL_EXPORT
Defines a viscous coupling between two rotational dimensions.
Definition: Gear.h:94
Lookup table where the lookup variable depend on the velocity ratio between in and output.
virtual agx::Real variableLookupFunction() const override
This virtual function is called to find the current value of the lookup variable.
TorqueConverterSpeedRatioLookup()
Create a lookup table where the lookup variable is speed ratio between input and output.
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.
Base Torque converter for an automatic transmission.
const agxPowerLine::LinearLookupTable * getMuTable() const
Return pointer to table mapping angular velocity ratio to torque multiplication.
agx::Real getCurrentMultiplication() const
Return the torque multiplication iven 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...
void setPumpTorqueTable(const agx::RealPairVector &nu_torques)
Set the pump torque table.
void setPumpTorqueReferenceRPM(agx::Real rpm)
Set the pump torque reference rpm for the table.
void clearMuTable()
Clear the table mapping angular velocity ratio to torque multiplication.
agxPowerLine::LinearLookupTable * getPumpTorqueTable()
const agxPowerLine::LinearLookupTable * getPumpTorqueTable() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
TorqueConverterSpeedRatioLookupRef m_pumpTorqueTable
void insertNuMuLookupValue(agx::Real nu, agx::Real mu)
Insert value in the table mapping angular velocity ratio to torque multiplication.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
void setMuTable(const agx::RealPairVector &nu_to_mu)
Set table mapping velocity ratio to torque multiplication.
Linear interpolation between the inserted variable/value pairs.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
Templated vector class.
Definition: agx/Vector.h:53
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agx::ref_ptr< TorqueConverter > TorqueConverterRef
agx::ref_ptr< TorqueConverterSpeedRatioLookup > TorqueConverterSpeedRatioLookupRef
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition: Real.h:42