223 virtual
bool store(
agxStream::StorageStream& str) const override;
228 virtual
bool restore(
agxStream::StorageStream& str) override;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Single disk plate clutch with dry friction.
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
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
bool isManualMode() const
agx::Real m_minRelativeSlip
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
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...
Abstract base class for storing/restoring a line/drums with version control.
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::ref_ptr< DryClutch > DryClutchRef
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...