Simscape Essentials for Automotive Student Teams

The submission introduces a set of models to get the automotive student teams started with physical modeling using Simscape™.
596 Downloads
Updated 28 Feb 2023

Simscape Essentials for Automotive Student Teams

The submission introduces a set of models and supported video tutorials to get the automotive student teams started with physical modeling using Simscape™. Here is the link to the tutorial video series - Simscape Essentials for Automotive Student Teams. Referring to these models, students participating in competitions (Formula Student, BAJA competitions, Solar Challenge, etc.) can perform powertrain simulations, develop thermal cooling systems, battery cooling systems, etc.

The tutorial video series will help you get started with the fundamentals of vehicle development for student competitions like Formula Student using Simscape™.

  1. Longitudinal Vehicle Motion: https://youtu.be/FurgUbg_0zQ?si=uv-iPPJfcw1fOlvd
  2. Electric Powertrain: https://youtu.be/GtxbWL_Z2Bc?si=YQjtTGli4VI9DZQQ
  3. Motor Cooling System: https://youtu.be/pFKwL9Y5D6I?si=AQCCSlua1TcNIwxd

Simscape model of electric vehicle

View on MATLAB Online: Open in MATLAB Online

View on File Exchange: View Aircraft Performance Analyzer (APA) Live Task on File Exchange

Note

Please note that the models in this submission are built using real physical components present in Simscape. However, if users want a complete vehicle framework that they can parameterize with their own data please check out the following products: Powertrain Blockset™ and Vehicle Dynamics Blockset™.

Models

longitudinalMotion.slx

The model simulates the vehicle motion on a terrain. It consists of a Simscape Vehicle Body block that represents a two-axle vehicle body in longitudinal motion. The model has been used as vehicle body to design to build the powertrain and the cooling system.

Simscape model of vehicle chassis and wheels

Note: By default, all the models are built using Tire (Simple) block. To replace it with the Tire (Magic Formula) block follow the steps below:

  • Open the "Vehicle" subsystem
  • Open the "Chassis and Tires" subsystem
  • Click the annotation "model with Magic Formula Tires." This will open the "chassisTires_lib" library.
  • Replace the "Chassis and Tires" subsytem with the "Chassis and Tires Magic Formula" subsystem present in the "chassisTires_lib" library.

Simscape model of vehicle chassis and wheels

electricPowertrain.slx

The model simulates an electric vehicle model to track a reference drive cycle. It consists of a Simscape Motor and Drive (System Level) block to represents a generic motor and drive operating in torque-control mode, or equivalently current-control mode. Student teams can use this model to size the motor, battery and other electrical components and can also estimate the battery SOC and SOH.

Simscape model of electric powertrain

Note: By default, all the models are built using Tire (Simple) block. To replace it with the Tire (Magic Formula) block follow the steps below:

  • Open the "Vehicle" subsystem
  • Open the "Chassis and Tires" subsystem
  • Click the annotation "model with Magic Formula Tires." This will open the "chassisTires_lib" library.
  • Replace the "Chassis and Tires" subsytem with the "Chassis and Tires Magic Formula" subsystem present in the "chassisTires_lib" library.

Simscape model of vehicle chassis and wheels

motorCooling.slx

The model simulates a motor cooling system. It consists of Simscape™ Fluids™ Thermal Liquid and Gas blocks to model the cooling circuit. Student teams can utilize this model to size the components of the cooling system.

Simscape model of motor cooling system

How to open the models

Run the startup_SimscapeEssentialsAuto script to open the HTML startup file. From the HTML page, users can select the model they want to run.

Additional resources for complete vehicle network

Models in this submission are built using real physical components present in Simscape™, and designed to help you learn how to use the schematic-based modeling language Simscape provides. Users can explore the complete vehicle framework examples, such as this EV Reference Application available in the following product: Powertrain Blockset™.

Product Requirements

  1. MATLAB®
  2. Simulink®
  3. Simscape™
  4. Simscape™ Electrical™
  5. Simscape™ Fluids™
  6. Simscape™ Battery™
  7. Simscape™ Driveline™
  8. Powertrain Blockset™

Cite As

MathWorks Student Competitions Team (2024). Simscape Essentials for Automotive Student Teams (https://github.com/mathworks/Simscape-Essentials-for-Automotive-Student-Teams/releases/tag/v1.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with R2022b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Models/1_longitudinal_motion

Models/2_electric_powertrain

Models/3_motor_cooling

Scripts_Data

Models/1_longitudinal_motion

Models/1_longitudinal_motion/Utilities

Models/2_electric_powertrain

Models/2_electric_powertrain/Utilities

Models/3_motor_cooling

Models/3_motor_cooling/Utilities

Utilities

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.