AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
Clutch.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
22
23
24namespace agxDriveTrain
25{
26
33 {
34 public:
36
37 explicit Clutch(agx::Real efficiency);
38
39 void setEfficiency(agx::Real efficiency);
41
44
47
48
49
54
60
65
66
67
68
73
74
75 virtual bool addNotification(agxSDK::Simulation* simulation) override;
76
77#ifndef SWIG
78 virtual bool postStore(agxStream::StorageStream& str) const override;
79 virtual bool postRestore(agxStream::StorageStream& str) override;
80
84 virtual bool store(agxStream::StorageStream& str) const override;
85
89 virtual bool restore(agxStream::StorageStream& str) override;
90
92#endif
93
94 protected:
95 virtual ~Clutch();
96
100 };
102}
103
#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
Defines a viscous coupling between two rotational dimensions.
Definition: Clutch.h:33
bool getUseForcedCompliance() const
agx::Real getTorqueTransferConstant() const
agx::Real m_forcedCompliance
Definition: Clutch.h:99
Clutch(agx::Real efficiency)
agx::Real m_torqueTransferConstant
Definition: Clutch.h:98
void setForcedCompliance(agx::Real compliance)
agx::Real calculateCompliance(agx::Real limitTorque) const
Calculates a compliance for the clutch constraint given the wanted efficiency and a limitTorque.
void setTorqueTransferConstant(agx::Real constant)
agx::Real m_efficiency
Definition: Clutch.h:97
agx::Real getForcedCompliance() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real calculateLimitTorque() const
Calculates the limit torque given the given efficiency (eff) and torque transfer constant ttc(.
virtual bool postRestore(agxStream::StorageStream &str) override
agx::Real getEfficiency() const
void setEfficiency(agx::Real efficiency)
virtual bool postStore(agxStream::StorageStream &str) const override
Set values of constraints.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculates compliance according to a mathematical torque converter.
virtual bool addNotification(agxSDK::Simulation *simulation) override
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
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
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::ref_ptr< Clutch > ClutchRef
Definition: Clutch.h:101
double Real
Definition: Real.h:41