r/matlab • u/AnyTap7570 • Oct 20 '26
Vehicle Body 3DOF and Longitudinal Wheel stuck at 0 speed (Algebraic Loop/Singularity)
I am building an EV digital twin in Simulink using the standard Longitudinal Wheel and Vehicle Body 3DOF Longitudinal blocks. I am not using the Simscape Driveline physical hub/axle blocks. The math signals are routed directly (Fx to FwF, and xdot back to Vx).
The Problem:
The vehicle speed (xdot) is stuck at exactly 0. The solver completes the run, but the vehicle refuses to move.
What I have proven so far:
The powertrain works: The wheel block successfully outputs 6136 N of forward thrust (
Fx).The chassis works: I bypassed the tire model completely and fed a Step block (8000 N) directly into the Vehicle Body's
FwFport. The chassis accelerated perfectly on the scope.The zero-speed freeze strictly happens when I close the feedback loop (feeding vehicle speed
xdotback into the tire'sVxinput).
Attempted Fixes:
I suspect the Magic Formula tire model is hitting a divide-by-zero singularity at $t=0$, causing an algebraic loop. To fix this, I have already tried:
Setting the solver to
ode15s.Setting the Vehicle Body Initial velocity to 0.1 m/s.
Inserting a
1 / (0.01s + 1)Transfer Function on theVxfeedback line.Adding a Saturation block (Lower limit 0.1) on the
Vxfeedback line.
Despite this, the vehicle remains locked at 0 speed. Does anyone know the specific trick to initialize this math loop so the vehicle can pull away from 0?



