Hi Roz,
I understand that you encounter an error when running your simulation.
The simulation error you're encountering in MATLAB's Simscape indicates that the solver failed to converge while initializing the 'EV_system1/Motor Mechanical' subsystem and the 'Vehicle System'. The error message points to issues with the gear, torque, and branch components, as well as tire components using the Magic Formula.
To address this issue, you should:
- Verify and adjust initial conditions to be realistic.
- Experiment with different solver settings, such as changing the solver type, increasing iterations, and adjusting tolerances.
- Review and ensure component parameters are within realistic ranges.
- Simplify the model to isolate the issue.
- Check for and resolve any algebraic loops.
- Update MATLAB and Simscape to the latest versions for potential bug fixes.
Make sure to back up your model before making changes, and adjust solver settings in MATLAB using the 'getActiveConfigSet' and 'set_param' functions with appropriate parameters for your model.
