AGXDynamics  2.35.0.3
DryClutch.h
Go to the documentation of this file.
1 #pragma once
2 /*
3 Copyright 2007-2022. Algoryx Simulation AB.
4 
5 All AGX source code, intellectual property, documentation, sample code,
6 tutorials, scene files and technical white papers, are copyrighted, proprietary
7 and confidential material of Algoryx Simulation AB. You may not download, read,
8 store, distribute, publish, copy or otherwise disseminate, use or expose this
9 material unless having a written signed agreement with Algoryx Simulation AB, or having been
10 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
11 valid commercial license from Algoryx Simulation AB.
12 
13 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
14 from using this software, unless otherwise stated in written agreements with
15 Algoryx Simulation AB.
16 */
17 
18 #pragma once
19 
20 #include <agxPowerLine/PowerLine.h>
22 
23 namespace agxDriveTrain
24 {
25 
82  {
83  public:
84  DryClutch();
85 
92  void setEngage(bool engage);
93 
97  bool isEngaged() const;
98 
102  void setFraction(agx::Real fraction);
103 
108  agx::Real getFraction() const;
109 
116  void setTimeConstant(agx::Real tau);
117 
123  void setManualMode(bool manual);
124 
128  bool isManualMode() const;
129 
133  agx::Real getTimeConstant() const;
134 
139  void setLock(bool setLock);
140 
144  bool isLocked() const;
145 
150  void setTorqueCapacity(agx::Real capacity);
151 
155  agx::Real getTorqueCapacity() const;
156 
164  void calculateTorqueCapacity(agx::Real maxForce, agx::Real mu, agx::Real radii[2]);
165 
171  void setAutoLock(bool autoLock);
172 
176  bool isAutoLock() const;
177 
181  agx::Real getTorque() const;
182 
186  agx::Real getSlip() const;
187 
191  agx::Real getInputVelocity() const;
192 
196  agx::Real getOutputVelocity() const;
197 
202  void setMinRelativeSlip(agx::Real minRelativeSlip);
203 
207  agx::Real getMinRelativeSlip() const;
208 
210 
211 #ifndef SWIG
213 #endif
214 
215  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
216 
217  virtual bool preUpdate(agx::Real timeStep) override;
218 
219  virtual bool addNotification(agxSDK::Simulation* simulation) override;
220 
221 #ifndef SWIG
222  virtual bool postStore(agxStream::StorageStream& str) const override;
223 
224  virtual bool postRestore(agxStream::StorageStream& str) override;
225 
229  virtual bool store(agxStream::StorageStream& str) const override;
230 
234  virtual bool restore(agxStream::StorageStream& str) override;
235 
237 #endif
238 
240 
241  protected:
242  virtual ~DryClutch();
243 
252 
253  };
255 
256 } // namespace agxDriveTrain
PowerLine.h
agx::Real
double Real
Definition: Real.h:42
agxDriveTrain::DryClutch::m_isManual
bool m_isManual
Definition: DryClutch.h:247
agx::RegularizationParameters::VariableType
VariableType
Definition: RegularizationParameters.h:32
agxDriveTrain::DryClutch::m_isLocked
bool m_isLocked
Definition: DryClutch.h:251
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.
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type.
Definition: PowerLineConstraints.h:150
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agxDriveTrain::DryClutch::m_torqueCapacity
agx::Real m_torqueCapacity
Definition: DryClutch.h:244
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
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
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
agxDriveTrain::DryClutch::m_isAutoLock
bool m_isAutoLock
Definition: DryClutch.h:246
agxDriveTrain::DryClutch
Single disk plate clutch with dry friction.
Definition: DryClutch.h:81
agxDriveTrain::DryClutchRef
agx::ref_ptr< DryClutch > DryClutchRef
Definition: DryClutch.h:254
agxDriveTrain::DryClutch::m_timeConstant
agx::Real m_timeConstant
Definition: DryClutch.h:248
agxPowerLine::RotationalConnector
Defines a stiff gear constraint between two rotational dimensions.
Definition: RotationalDimension.h:152
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxDriveTrain::DryClutch::m_isEngaged
bool m_isEngaged
Definition: DryClutch.h:245
RotationalDimension.h
agxDriveTrain::DryClutch::m_fraction
agx::Real m_fraction
Definition: DryClutch.h:250
agxDriveTrain::DryClutch::m_minRelativeSlip
agx::Real m_minRelativeSlip
Definition: DryClutch.h:249