AGX Dynamics  2.37.3.2
DryClutch.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 <agxPowerLine/PowerLine.h>
21 
22 namespace agxDriveTrain
23 {
24 
81  {
82  public:
83  DryClutch();
84 
91  void setEngage(bool engage);
92 
96  bool isEngaged() const;
97 
101  void setFraction(agx::Real fraction);
102 
107  agx::Real getFraction() const;
108 
115  void setTimeConstant(agx::Real tau);
116 
122  void setManualMode(bool manual);
123 
127  bool isManualMode() const;
128 
132  agx::Real getTimeConstant() const;
133 
138  void setLock(bool setLock);
139 
143  bool isLocked() const;
144 
149  void setTorqueCapacity(agx::Real capacity);
150 
154  agx::Real getTorqueCapacity() const;
155 
163  void calculateTorqueCapacity(agx::Real maxForce, agx::Real mu, agx::Real radii[2]);
164 
170  void setAutoLock(bool autoLock);
171 
175  bool isAutoLock() const;
176 
180  agx::Real getTorque() const;
181 
185  agx::Real getSlip() const;
186 
190  agx::Real getInputVelocity() const;
191 
195  agx::Real getOutputVelocity() const;
196 
201  void setMinRelativeSlip(agx::Real minRelativeSlip);
202 
206  agx::Real getMinRelativeSlip() const;
207 
209 
210 #ifndef SWIG
212 #endif
213 
214  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
215 
216  virtual bool preUpdate(agx::Real timeStep) override;
217 
218  virtual bool addNotification(agxSDK::Simulation* simulation) override;
219 
220 #ifndef SWIG
221  virtual bool postStore(agxStream::StorageStream& str) const override;
222 
223  virtual bool postRestore(agxStream::StorageStream& str) override;
224 
228  virtual bool store(agxStream::StorageStream& str) const override;
229 
233  virtual bool restore(agxStream::StorageStream& str) override;
234 
236 #endif
237 
239 
240  protected:
241  virtual ~DryClutch();
242 
251 
252  };
254 
255 } // namespace agxDriveTrain
Constraint implementation for constraining a number of physical dimensions of the same type...
agx::Real m_minRelativeSlip
Definition: DryClutch.h:248
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
agx::ref_ptr< DryClutch > DryClutchRef
Definition: DryClutch.h:253
Defines a stiff gear constraint between two rotational dimensions.
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agx::Real m_torqueCapacity
Definition: DryClutch.h:243
Single disk plate clutch with dry friction.
Definition: DryClutch.h:80
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
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
#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