AGX Dynamics  2.37.2.0
deprecated/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 
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
47 
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 
91  agx::Real getMaxMultiplication() const;
92 
100  void setPumpTorqueTable(const agx::RealPairVector& nu_torques);
101 
105  void setMuTable(const agx::RealPairVector& nu_to_mu);
106 
110  agx::Real getCurrentMultiplication() const;
111 
115  const agxPowerLine::LinearLookupTable* getPumpTorqueTable() const;
116 
120  agxPowerLine::LinearLookupTable* getPumpTorqueTable();
121 
125  const agxPowerLine::LinearLookupTable* getMuTable() const;
126 
130  void clearMuTable();
131 
135  void insertNuMuLookupValue(agx::Real nu, agx::Real mu);
136 
142  void setPumpTorqueReferenceRPM(agx::Real rpm);
143 
147  agx::Real getPumpTorqueReferenceRPM() const;
148 
150  virtual void initConstraint() override;
151  agx::Real getWantedEfficiency() const;
153 
154 
157  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
158 
159 #ifndef SWIG
160 
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 
179  TorqueConverterSpeedRatioLookupRef m_pumpTorqueTable;
180  TorqueConverterSpeedRatioLookupRef m_muTable;
181 
182  };
184  }
185 }
Linear interpolation between the inserted variable/value pairs.
Defines a viscous coupling between two rotational dimensions.
Definition: Gear.h:93
agx::ref_ptr< TorqueConverter > TorqueConverterRef
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
Templated vector class.
Definition: Vector.h:52
agx::ref_ptr< TorqueConverterSpeedRatioLookup > TorqueConverterSpeedRatioLookupRef
Lookup table where the lookup variable depend on the velocity ratio between in and output...
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
Base Torque converter for an automatic transmission.
TorqueConverterSpeedRatioLookupRef m_pumpTorqueTable
#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