AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
DryClutch.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
21
22namespace agxDriveTrain
23{
24
81 {
82 public:
84
91 void setEngage(bool engage);
92
96 bool isEngaged() const;
97
101 void setFraction(agx::Real fraction);
102
108
116
124
130 void setManualMode(bool manual);
131
135 bool isManualMode() const;
136
141
146
151 void setLock(bool setLock);
152
156 bool isLocked() const;
157
165
170
176 void setAutoLock(bool autoLock);
177
181 bool isAutoLock() const;
182
187
192
197
202
208 void setMinRelativeSlip(agx::Real minRelativeSlip);
209
214
216
217
219
223 virtual bool store(agxStream::StorageStream& str) const override;
224
228 virtual bool restore(agxStream::StorageStream& str) override;
229
231
232 protected:
233
234#ifndef SWIG
236
245
247
248 bool preUpdate(agx::Real timeStep) override;
249
250 bool addNotification(agxSDK::Simulation* simulation) override;
251
252 bool postStore(agxStream::StorageStream& str) const override;
253
255
256#endif
257
258 virtual ~DryClutch();
259
269
270 };
272
273} // namespace agxDriveTrain
#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
Single disk plate clutch with dry friction.
Definition: DryClutch.h:81
void calculateTorqueCapacity(agx::Real maxForce, agx::Real mu, agx::Real radii[2])
Calculate the torque capacity based on the geometric and physical parameters of the friction plates.
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint() override
Create a gear constraint.
agx::Real m_disengageTimeConstant
Definition: DryClutch.h:265
void setAutoLock(bool autoLock)
In auto lock mode, the friction plates will lock when the slip is small enough in proportion to the v...
void setTorqueCapacity(agx::Real capacity)
This is the maximum torque that the friction plates can transfer: it will slip if this MinRelativeSli...
agx::Real getTorque() const
void setDisengageTimeConstant(agx::Real tau)
Set the time constant for clutch disengagement.
bool postStore(agxStream::StorageStream &str) const override
Set values of constraints.
agx::Real m_torqueCapacity
Definition: DryClutch.h:260
agx::Real m_minRelativeSlip
Definition: DryClutch.h:266
agx::Real getInputVelocity() const
agx::Real getSlip() const
void setFraction(agx::Real fraction)
bool postRestore(agxStream::StorageStream &str) override
agx::Real getEngageTimeConstant() const
agx::Real getMinRelativeSlip() const
void setManualMode(bool manual)
When manual mode is true, user must control all aspects of the clutch engagement and disengagement.
agx::Real getTorqueCapacity() const
void setEngage(bool engage)
Puts the clutch pedal in assisted mode so it will fully engage or disengage in a time period determin...
agx::Real m_engageTimeConstant
Definition: DryClutch.h:264
agx::Real getOutputVelocity() const
bool preUpdate(agx::Real timeStep) override
bool isLocked() const
Returns the lock status.
agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate a compliance that will result in the wanted efficiency.
void setMinRelativeSlip(agx::Real minRelativeSlip)
In autolock mode, the friction plates will lock with the ratio of slip to input shaft velocity is les...
agx::Real getDisengageTimeConstant() const
bool addNotification(agxSDK::Simulation *simulation) override
void setLock(bool setLock)
Lock or unlock the friction plates.
agx::Real getFraction() const
void setEngageTimeConstant(agx::Real tau)
Set the time constant for the clutch engagement.
Constraint implementation for constraining a number of physical dimensions of the same type.
Defines a stiff gear constraint between two rotational dimensions.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:131
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::ref_ptr< DryClutch > DryClutchRef
Definition: DryClutch.h:271
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
double Real
Definition: Real.h:41