#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
An electric motor is a roational unit that is a source of power in a drive train.
void setInductance(agx::Real inductance)
Set the inductance of the motor.
agx::Real getTorqueConstant() const
agx::Real getResistance() const
agx::Real getCurrent() const
void setVoltage(agx::Real voltage)
Set the input voltage to the electrical motor.
virtual bool postStore(agxStream::StorageStream &str) const override
void setResistance(agx::Real resistance)
Set the electrical reistance of the motor.
void setTorqueConstant(agx::Real torqueConstant)
Set the torque constant of the motor.
virtual bool postRestore(agxStream::StorageStream &str) override
virtual bool addNotification(agxSDK::Simulation *simulation) override
ElectricMotor(agx::Real resistance, agx::Real torqueConstant, agx::Real emfConstant, agx::Real inductance)
Create an electrical motor with the properties of the given parameters.
agx::Real getEmfConstant() const
void setEmfConstant(agx::Real emfConstant)
Set the back electromotive force constant.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool removeNotification(agxUtil::ConstraintHolder *constraintHolder, agxSDK::Simulation *simulation) override
agx::Real getEmfVoltage() const
agx::Real getInductance() const
const agxDriveTrain::ElectricMotorConstraint * getConstraint() const
virtual bool preUpdate(agx::Real timeStep) override
agx::Real getVoltage() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
A rotational unit has one degree of freedom.
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.
Utility class to hold custom implementations of constraints.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.