Main Content

Torsional Compliance Between Motor and Gearbox

R2026b

This example shows how to connect driveline components that contain inertia using the Rotational Inertia and Torsional Compliance blocks. You represent rigid connections by lumping inertias into a single equivalent inertia and model distributed inertia using a Torsional Compliance block. You then apply both approaches to the Mapped Motor and Gearbox blocks.

Open Model

Open the EVMotorGearboxCompliance model, allowing you to compare lumped and distributed inertia modeling approaches. The model contains four subsystems that represent the same motor-to-gearbox connection at different levels of physical detail. The subsystems share a Motor Torque Step block that applies a torque increase from 150 to 250 Nm at t = 2.5 s. This start time gives the subsystems time to accelerate from rest to a steady-state speed before applying the torque step.

open_system("EVMotorGearboxCompliance")
simulinkScreenshot("EVMotorGearboxCompliance")

Figure Screenshot: EVMotorGearboxCompliance contains an axes object. The hidden axes object contains an object of type image.

The four subsystems are:

  • Lumped Inertias — A single Rotational Inertia block combines motor and gear inertias into a first-order system, representing a rigid connection.

  • Distributed Inertias — Two Rotational Inertia blocks connected by a Torsional Compliance block form a second-order system with a restoring force that produces damped oscillations when a flexible shaft is present.

  • Lumped Motor and Gearbox — A Mapped Motor block and Gearbox block are connected directly, with the motor inertia lumped into the Gearbox block.

  • Motor and Gearbox Torsional Compliance — The Mapped Motor and Gearbox blocks are connected by a Torsional Compliance block.

Examine Lumped Inertia Baseline

Open the Lumped Inertias subsystem. This subsystem uses a single Rotational Inertia block that sums the motor rotor inertia (0.08 kg⋅m2) and gear assembly inertia (0.12 kg⋅m2) into a lumped value of J = 0.20 kg⋅m2.

open_system("EVMotorGearboxCompliance/Lumped Inertias")
simulinkScreenshot("EVMotorGearboxCompliance/Lumped Inertias")

Figure Screenshot: EVMotorGearboxCompliance/Lumped Inertias contains an axes object. The hidden axes object contains an object of type image.

The damping coefficient b = 0.5 N⋅m⋅s/rad represents speed-proportional viscous resistance reflected to the motor shaft. You determine this value from the ratio of torque to speed at steady state. This lumped approach is valid when the coupling between motor and gear is rigid enough that both rotate at the same angular velocity.

Model Distributed Inertias

When the physical coupling has finite stiffness, the motor and gear speeds can differ during transients, and the lumped model hides these oscillations. The Distributed Inertias subsystem separates the motor rotor and gear assembly into individual Rotational Inertia blocks connected through a Torsional Compliance block named Coupling Shaft. Open the subsystem.

open_system("EVMotorGearboxCompliance/Distributed Inertias")
simulinkScreenshot("EVMotorGearboxCompliance/Distributed Inertias")

Figure Screenshot: EVMotorGearboxCompliance/Distributed Inertias contains an axes object. The hidden axes object contains an object of type image.

This subsystem, unlike the Lumped Inertias subsystem, is second order because it stores energy in two places, the Motor Rotor and Gear Assembly blocks. Each Rotational Inertia block integrates net torque from its two inputs (RTrq and CTrq) to produce angular speed at its Spd output. The Motor Rotor and Gear Assembly blocks contain the same inertias that were lumped together in the previous subsystem but are now in separate blocks. Both have b = 0 N⋅m⋅s/rad because the Speed-Dependent Load block (-0.5 * u), applied to the gear assembly, provides all damping. This block represents the combined speed-dependent resistance (bearing friction, aerodynamic drag, rolling resistance) at the output shaft. The block establishes equilibrium speeds of 300 rad/s at 150 Nm and 500 rad/s at 250 Nm. The torsional oscillations occur around the transition between these equilibria.

The Torsional Compliance block computes restoring and damping torques from the twist angle and twist rate between its two speed inputs (RSpd and CSpd). The block feeds these torques back to the inertia blocks through RTrq and CTrq.

The parameters for the torsional compliance block are:

  • k = 100 N⋅m/rad — This value represents a soft elastomeric coupling typical of EV torsional damper inserts.

  • b = 0.05 N⋅m⋅s/rad — This value represents the low internal material damping of the elastomer.

  • theta_o = 1.5 rad — This value is the steady-state shaft deflection under the initial 150 Nm torque.

Together, these blocks form a feedback loop. Each Rotational Inertia block outputs speed to the Torsional Compliance block, which computes torques and feeds them back to the inertia blocks. This bidirectional coupling creates the two-mass torsional oscillator.

Simulate and Compare Responses

To observe how shaft flexibility affects the motor speed transient, simulate the model and plot the motor speed from the Lumped Inertias and Distributed Inertias subsystems.

simOut = sim("EVMotorGearboxCompliance");

motorSpeedLumped = simOut.motorSpeedLumped;
motorSpeedDistributed = simOut.motorSpeedDistributed;

figure
plot(motorSpeedLumped.Time, motorSpeedLumped.Data, "b-", "LineWidth", 2)
hold on
plot(motorSpeedDistributed.Time, motorSpeedDistributed.Data, "r-", "LineWidth", 2)
xlabel("Time (s)")
ylabel("Motor Speed (rad/s)")
legend("Lumped Inertias", "Distributed Inertias", "Location", "southeast")
xlim([2.4 5.5])
grid on

Figure contains an axes object. The axes object with xlabel Time (s), ylabel Motor Speed (rad/s) contains 2 objects of type line. These objects represent Lumped Inertias, Distributed Inertias.

The lumped model (blue) produces a smooth first-order rise from 300 to 500 rad/s because a single inertia with viscous damping has only one energy storage element. The distributed model (red) oscillates above and below this trajectory because the motor rotor accelerates faster than the gear assembly, causing the shaft to wind and unwind as it stores and releases elastic energy. These oscillations persist for several seconds because the coupling damping (b = 0.05 N⋅m⋅s/rad) is far below the critical damping value.

The Torsional Compliance block b parameter acts on relative speed (ωmotor-ωgear), not absolute speed. In the lumped model, both inertias rotate together, so their relative speed is always zero, and coupling damping has no effect. Rather than just hiding oscillations, the lumped model eliminates the mechanism that produces them.

Apply Lumped Inertia Approach to Mapped Motor and Gearbox Blocks

Component blocks such as Mapped Motor and Gearbox include built-in inertias. To see this configuration, open the Lumped Motor and Gearbox subsystem. You use this subsystem to lump the motor inertia into the gearbox inertia by configuring the Mapped Motor block to use the Speed port configuration. In this mode, the motor accepts speed as an input and outputs torque, so the motor no longer integrates its rotor inertia. You combine the motor inertia with the gearbox input inertia (J1 = 0.12 kg⋅m2 + 0.08 kg⋅m2 = 0.20 kg⋅m2) which allows the motor and gearbox to connect directly without a Torsional Compliance block. This configuration is analogous to the lumped-inertia configuration in the first pair of subsystems.

open_system("EVMotorGearboxCompliance/Lumped Motor and Gearbox")
simulinkScreenshot("EVMotorGearboxCompliance/Lumped Motor and Gearbox")

Figure Screenshot: EVMotorGearboxCompliance/Lumped Motor and Gearbox contains an axes object. The hidden axes object contains an object of type image.

Apply Compliance to Mapped Motor and Gearbox Blocks

You can also use a distributed-inertia modeling approach with these blocks. Open the Motor and Gearbox Torsional Compliance subsystem. In this subsystem, you keep the motor inertia separate from the gearbox inertia by configuring the Mapped Motor block to use the Torque port configuration. In this mode, the motor accepts torque as an input and outputs speed, so it integrates its rotor inertia. The Torsional Compliance block connects the Mapped Motor and Gearbox blocks.

open_system("EVMotorGearboxCompliance/Motor and Gearbox Torsional Compliance")
simulinkScreenshot("EVMotorGearboxCompliance/Motor and Gearbox Torsional Compliance")

Figure Screenshot: EVMotorGearboxCompliance/Motor and Gearbox Torsional Compliance contains an axes object. The hidden axes object contains an object of type image.

The Mapped Motor and Gearbox blocks use the same inertia values as the Rotational Inertia block, with required non-zero torque time constant Tc = 0.02 s on the motor. The Torsional Compliance block uses the same stiffness and damping parameters (k = 100, b = 0.05).

To compare the lumped and compliant responses for the Mapped Motor and Gearbox blocks, plot the signals together.

motorSpeedMotorGearboxLumped = simOut.motorSpeedMotorGearboxLumped;
motorSpeedMotorGearboxCompliance = simOut.motorSpeedMotorGearboxCompliance;

figure
plot(motorSpeedMotorGearboxLumped.Time, motorSpeedMotorGearboxLumped.Data, ...
    "b-", "LineWidth", 2)
hold on
plot(motorSpeedMotorGearboxCompliance.Time, motorSpeedMotorGearboxCompliance.Data, ...
    "r-", "LineWidth", 2)
xlabel("Time (s)")
ylabel("Motor Speed (rad/s)")
legend("Motor and Gearbox (Lumped)", ...
    "Motor and Gearbox (Compliant)", "Location", "southeast")
xlim([2.4 5.5])
grid on

Figure contains an axes object. The axes object with xlabel Time (s), ylabel Motor Speed (rad/s) contains 2 objects of type line. These objects represent Motor and Gearbox (Lumped), Motor and Gearbox (Compliant).

The lumped Motor and Gearbox response (blue) is monotonic, matching the behavior of the Lumped Inertias subsystem. The compliant Motor and Gearbox response (red) oscillates, matching the Distributed Inertias subsystem. The oscillation amplitude is slightly reduced because the motor torque time constant (Tc = 0.02 s) acts as a low-pass filter on the step input. This result confirms that the same distinction between lumped and compliant approaches applies whether you use standalone Rotational Inertia blocks or component blocks with built-in inertias.

Conclusion

This example demonstrates two approaches for connecting driveline components that contain inertia. You can lump inertias by reconfiguring the Mapped Motor to Speed port mode and combining its inertia into the Gearbox block. Alternatively, when you keep the inertia of each component separate using Torque port mode, you connect them with a Torsional Compliance block. The compliant approach reveals torsional oscillations that the lumped approach hides.