Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

Vehicle Design Webinar Series

Vehicle Powertrain Modeling and Full Vehicle Simulation Using


MATLAB and Simulink

M V Krishna Teja, JK Tyres and Industries Ltd Sudhakar Kumar, MathWorks


Veer Alakshendra, MathWorks Pratyay Pande, MathWorks
Himanshu Jain, MathWorks

© 2021 The MathWorks, Inc.


1
Vehicle Design Webinar Series

Link: https://www.mathworks.com/company/events/seminars/vehicle-design-for-students-2021
2
During the Webinar

▪ Use Q&A to ask technical


questions
– Send the questions to “All Panelists”

▪ Use Chat Box for all other queries


– Send the query to “All Panelists”

3
Recap

▪ Racing Line Optimization

▪ Equation Based Vehicle Model

▪ Longitudinal and Lateral Vehicle


Dynamics and Controls

▪ Multibody Suspension System Model

4
Agenda

▪ Modeling of Physical Systems Using Simscape


– Basic battery electric model with motor cooling
– Electric vehicle powered by BLDC motor

▪ Electric Vehicle Reference Application Using Powertrain


Blockset

▪ Integration of Simscape and Powertrain Blockset

▪ Full Vehicle Simulation


– Talk by M V Krishna Teja

▪ Resources

▪ Q&A
7
Battery Equivalent Circuit

8
Simscape
Overview

▪ Enables physical modeling (acausal)


of multidomain physical systems
– Assemble a schematic
– Equations derived automatically V+
– Leverage MATLAB and Simulink
V-
▪ With Simscape you can:
– Refine requirements for system
– Discover integration issues early
– Design control systems and logic
– Optimize system-level performance
– Test embedded software
without hardware prototypes
9
Understanding Physical Variables

Sensor in
parallel
Energy flow = Across × Through

Sensor in Sensor in
parallel series

Power Power
[W] = Angular Velocity
[W] = Voltage [V][rad/s] × Torque
× Current [I] [Nm] Sensor in
series

10
Across and Through Variables

11
Battery Modeling
Equivalent Circuit

12
Software Demonstration

13
Resources
Battery Modeling

Link: Battery Modeling


14
15
Software Demonstration

16
17
Software Demonstration
>> sscfluids_ev_thermal_management

18
Resources
Battery Electric Model with Motor Cooling

Link: Battery Electric Model with Motor Cooling


19
Simscape
Simscape Onramp

▪ Self-paced, interactive tutorial for


getting started with Simscape

21
Resources
Simscape Vehicle Templates

Links: Simscape Vehicle Template

22
Software Demonstration

23
Powertrain Blockset

▪ Goals:
– Provide starting point for engineers to build good plant / controller models
– Provide open and documented models
– Provide very fast-running models that work with popular HIL systems

24
Drivetrain Energy Storage Propulsion Transmission Vehicle Dynamics Vehicle Scenario Builder
and Auxiliary Drive

26
Reference Applications
Full Vehicle
Models

Virtual Engine
Dynamometers

27
Software Demonstration
>> cd(setupExample('autoblks/EVReferenceApplicationExample'));helpersetupev

28
Powertrain Blockset and Simscape
Tools have overlap in what they can do, but they have a different emphasis
Analysis

Powertrain
Blockset

Equation-based Data-driven

Simscape

Design 30
Custom Drivetrain or Transmission

▪ Replace portions of reference


application with custom models
assembled from Simscape libraries

▪ Use Variant Subsystems to


shift back and forth based on
current simulation task

Pre-Built Drivetrain Custom Drivetrain

Custom Transmission
31
Powertrain Blockset / Simscape Integration

▪ Create detailed, multi-domain subsystem models with Simscape

▪ Incorporate them into system level vehicle models from Powertrain Blockset

▪ Validate subsystem performance with closed loop simulation

32
Resources
Model and Simulate Automotive Systems Using Powertrain Blockset

Link: Model and Simulate Automotive Systems Using Powertrain Blockset


33
Recap: Which Tools To Use?

Software Tool When To Choose


• System equations are already known or can be derived
MATLAB + Simulink
• “Need a calculator to solve my equations and process results”

• Combine pre-made, detailed, and customizable models for


Powertrain Blockset +
powertrain and vehicle dynamics components
Vehicle Dynamics Blockset
• Connect to Unreal Engine for virtual environments and sensing
• Model mechanisms (motors, shifter actuators, etc.)
Simscape • Model multidomain systems (mechatronic, fluid, thermal)
• Reduce visual complexity: model without deriving equations

• Model 3D rigid body systems (suspension, steering, etc.)


Simscape Multibody
• Import kinematic models from CAD and add dynamics

… and you can combine them all!


34
Tutorials

https://www.mathworks.com/ac
ademia/student-
competitions/tutorials-
videos.html

35
https://www.mathworks.com/
academia/superstar-
students.html

36
Student Competition Communities
Overview
Student Lounge blog
(for all competitions)
Video series - Facebook Group

Video series - Facebook Group

37
Student Communities
Engagement

▪ 100+ videos for automotive


and robotics

▪ 19k+ members across


2 Facebook groups

▪ Dedicated e-mails:
– roboticsarena@mathworks.com
– racinglounge@mathworks.com

38
Student Communities
MATLAB Central

▪ 50+ blog posts on


Student Lounge blog

▪ 50+ File Exchange entries


from MathWorks Student
Competitions Team

▪ MATLAB Answers tags


– roboticsarena
– racinglounge

39
Racing Lounge Resources

▪ Contact us
racinglounge@mathworks.com
facebook.com/groups/RacingLounge

▪ Student Tutorials and Videos


https://www.mathworks.com/academia/student-competitions/tutorials-videos/
▪ Software Offer
mathworks.com/academia/student-competitions
▪ Student Lounge Blog
https://blogs.mathworks.com/student-lounge/

40
Next Webinar
Communicating with CAN Networks Using Vehicle Network Toolbox

▪ Highlights
– Reading and processing CAN logs in
MATLAB

– Connecting to physical Networks in


MATLAB and Simulink

Link: https://www.mathworks.com/company/events/seminars/communicating-can-networks-vehicle-network-toolbox-
student-competitions-3606250.html

41
MathWorks Survey

Link: https://forms.office.com/r/XAGdpkgDF7

42
Q+A

43

You might also like