Description
The Motor Mechanical Controlled component is a DC motor model designed for scenarios where the mechanical dynamics are solved externally. The user provides the motor speed and load torque as inputs, and the motor calculates the resulting electrical characteristics, including current draw, voltage drop, and back-EMF. This approach is useful when the motor is coupled to an external physics solver or when the mechanical behavior is predetermined.
This component inherits from Motor Base, which provides the common electrical modeling including armature resistance, armature inductance (via companion model), and back-EMF calculations.
Example Use Cases
- External Physics Coupling: Interface with external dynamics solvers where mechanical motion is computed separately from the electrical system.
- Hardware-in-the-Loop Testing: Simulate the electrical impact of a motor when speed profiles are provided from external sources or test equipment.
- Predefined Motion Profiles: Analyze power consumption for motors following known speed trajectories.
Module Implementation
Speed and Torque Inputs
The motor accepts two primary inputs from the external solver:
- Speed Input (): The rotational speed of the motor shaft in rad/s.
- Load Torque (): The mechanical load torque applied to the motor shaft in Nm.
A convenience property is also available for specifying speed in RPM:
Back-EMF Calculation
The back-EMF voltage is computed based on the externally provided speed input:
where is the back-EMF constant (V/(rad/s)).
Armature Current
The armature current is determined by the motor’s electrical circuit, accounting for the applied voltage, back-EMF, and armature resistance:
where is the terminal voltage, is the back-EMF, and is the armature resistance. For transient behavior, the armature inductance is incorporated using a companion circuit model.
Electromagnetic Torque
The electromagnetic torque produced by the motor is:
where is the torque constant (Nm/A). For an ideal DC motor, .
Shaft Torque
The shaft torque available after accounting for viscous friction losses is:
where is the viscous friction coefficient.
Assumptions/Limitations
- The mechanical dynamics are not solved internally; the motor relies entirely on externally provided speed and load torque values.
- The electrical time constant of the armature inductance is modeled using a companion circuit approach for numerical stability.
- Friction is modeled as a simple viscous term; Coulomb or static friction effects are not included.