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
>
20
#include <
agxPowerLine/RotationalDimension.h
>
21
22
namespace
agxDriveTrain
23
{
24
80
class
AGXMODEL_EXPORT
DryClutch
:
public
agxPowerLine::RotationalConnector
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
208
DOXYGEN_START_INTERNAL_BLOCK
()
209
210
#ifndef SWIG
211
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
* createConstraint()
override
;
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
235
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxDriveTrain::DryClutch
);
236
#endif
237
238
DOXYGEN_END_INTERNAL_BLOCK
()
239
240
protected
:
241
virtual
~
DryClutch
();
242
243
agx::Real
m_torqueCapacity
;
244
bool
m_isEngaged
;
245
bool
m_isAutoLock
;
246
bool
m_isManual
;
247
agx::Real
m_timeConstant
;
248
agx::Real
m_minRelativeSlip
;
249
agx::Real
m_fraction
;
250
bool
m_isLocked
;
251
252
};
253
typedef
agx::ref_ptr<DryClutch>
DryClutchRef
;
254
255
}
// namespace agxDriveTrain
agxDriveTrain::DryClutch::m_fraction
agx::Real m_fraction
Definition:
DryClutch.h:249
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type...
Definition:
PowerLineConstraints.h:150
agxDriveTrain::DryClutch::m_minRelativeSlip
agx::Real m_minRelativeSlip
Definition:
DryClutch.h:248
agxDriveTrain
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
agxDriveTrain::DryClutchRef
agx::ref_ptr< DryClutch > DryClutchRef
Definition:
DryClutch.h:253
PowerLine.h
agxPowerLine::RotationalConnector
Defines a stiff gear constraint between two rotational dimensions.
Definition:
RotationalDimension.h:155
agxDriveTrain::DryClutch::m_isEngaged
bool m_isEngaged
Definition:
DryClutch.h:244
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::RegularizationParameters::VariableType
VariableType
Definition:
RegularizationParameters.h:32
agxDriveTrain::DryClutch::m_torqueCapacity
agx::Real m_torqueCapacity
Definition:
DryClutch.h:243
agxDriveTrain::DryClutch
Single disk plate clutch with dry friction.
Definition:
DryClutch.h:80
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
agxDriveTrain::DryClutch::m_isLocked
bool m_isLocked
Definition:
DryClutch.h:250
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
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:245
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agxDriveTrain::DryClutch::m_isManual
bool m_isManual
Definition:
DryClutch.h:246
agx::Real
double Real
Definition:
Real.h:42
agxDriveTrain::DryClutch::m_timeConstant
agx::Real m_timeConstant
Definition:
DryClutch.h:247
RotationalDimension.h
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
Object.h:98
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
Object.h:97
include
agxDriveTrain
DryClutch.h
Generated on Fri Apr 12 2024 12:40:22 for AGX Dynamics by
1.8.13