Simulink As APlatform For Full Vehicle Simulation
Simulink As APlatform For Full Vehicle Simulation
Simulink As APlatform For Full Vehicle Simulation
2
Vehicle Dynamics Simulation
ADAS / AD 3
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
4
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
5
Background
▪ Context
– Automotive engineers need to evaluate powertrain systems as early as possible
▪ What is the expected fuel economy, performance and emissions of my vehicle?
▪ What is the impact of my controller on system efficiency?
▪ Which electrification strategy should we develop?
– Model-Based Design has become an important methodology for answering these
questions and accelerating the development process
▪ Challenges
– It’s hard to do good Model-Based Design without good models
6
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
8
Drivetrain Energy Storage Propulsion Transmission Vehicle Dynamics Vehicle Scenario Builder
and Auxiliary Drive
9
Reference Applications
▪ Full vehicle models (conventional, EV, multi-mode HEV, input power-split HEV)
▪ Virtual engine dynamometers (compression ignition, spark ignition)
10
Four Use Cases. One Framework.
Requirements Vehicle
Test
UC1 UC4 System
Closed-loop
Test (HIL)
Simulation
Rapid
UC2 Adapt UC3
System
Prototyping Test
and
Subsystem Reuse Subsystem
Design Test
Use Cases:
Unit Unit
1. System design and optimization Design Test
11
Powertrain Blockset Value Proposition
12
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
13
Background
▪ Context
– Automotive OEM’s and Tier 1 suppliers must assess vehicle’s dynamic performance
▪ Will the vehicle roll over?
▪ What’s the stopping distance of the vehicle?
▪ Do the stability controls perform adequately?
– Answer questions by building prototypes and / or running simulations
▪ Challenges
– Prototypes are expensive, so must achieve a good design as early as possible
– Specialized vehicle dynamics simulation software is quite expensive and difficult to use
– Integrating 3rd party vehicle dynamics software with Simulink controls is cumbersome
14
Vehicle Dynamics Blockset
New product (R2018a)
Library of blocks
Game engine
16
Block Library
17
Game Engine Co-Simulation
18
Reference Applications
19
Vehicle Dynamics Blockset Value Proposition
20
Powertrain Blockset and Vehicle Dynamics Blockset:
Flexible Modeling Framework
21
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
22
Engine Dynamometer Reference Application
▪ Powertrain Blockset
includes virtual engine
dynamometer reference
applications
25
Executable Test Specification
26
Flexible Testing Framework
28
Controls-oriented Model Creation
30
Engine Test Data Import
31
Engine Modeling and Calibration
32
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
33
Engine Cooling System
▪ Take customization
one step further
3. Temperature of cylinder
used to validate cooling
system performance 1
2
3
35
Cooling Circuit Modeling
▪ Incorporate them into system level vehicle models from Powertrain Blockset
36
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
37
Exothermia
Systems integration
Catalyst experts
Controls department
Concept analysis
3D 2D 1D Reduced Spreadsheet
CFD 3D+1D 2D+1D 1D+1D models calculations
More detail Less detail
(slower) (faster)
42
Use Cases: Aftertreatment Controls Development
43
Example: Conventional Vehicle + TWC / GPF
44
Results
Vehicle
Catalyst
speed
temp
Exhaust
gas flow Tailpipe
rate emissions
Lambda
Conversion
(post TWC)
efficiency
45
Aftertreatment Modeling
46
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
47
Reference Application: Double Lange Change
48
Reference Application: Double Lange Change (Maneuver)
50
Reference Application: Double Lange Change (Environment)
51
Reference Application: Double Lange Change (Controllers)
Vehicle body
Steering
Suspension
Tire
Transmission
Driveline
53
Reference Application: Double Lange Change (Visualization)
54
Ride and Handling Study: Double Lane Change at 30 mph
55
Ride and Handling Study: Double Lane Change at 50 mph
56
Ride and Handling
57
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
58
Chassis Controls Study: Braking Test
Disc brakes
59
Chassis Controls Study: Braking Test
60
Chassis Controls Study: ABS Controller
61
Chassis Controls Study: ABS Controller
Vehicle Speed
Open-loop brakes
MPC-based ABS
Tire lock-up
Slip Ratio
62
Chassis Controls Study: Braking Test with ABS
63
Split Mu Test
64
Chassis Controls Study: Split Mu Test
65
Chassis Controls Development
66
Agenda
▪ Product overview
– Powertrain Blockset
– Vehicle Dynamics Blockset
67
ADAS / AD Testing: Virtual 3D Scene
68
Stop Sign Detection and Braking
69
Customizing Scene with Support Package
▪ Create your own scenes with Unreal Editor and our Simulink plug-in
▪ Unreal Editor project files available in our Support Package:
“Vehicle Dynamics Blockset interface for Unreal Engine 4”
70
Editing Support Package Scene to Add Stop Sign
71
Training Stop Sign Detector
72
Implementing Detector as System Object
classdef StopSignDetector < matlab.System & ...
matlab.system.mixin.Propagates
% Stop Sign Detector
% Pre-computed constants
▪ Implement the stop sign detector properties(Access = private)
as a system object in Simulink detector
end
▪ Simulate using “Interpreted
methods(Access = protected)
execution” mode function setupImpl(obj)
d = load('acfDetector');
obj.detector = d.acfDetector;
end
75
ADAS / AD Testing
76
Value Proposition
77
Thank You