building fast and accurate powertrain models for system ...€¦ · building fast and accurate...

43
1 © 2015 The MathWorks, Inc. Building Fast and Accurate Powertrain Models for System and Control Development Prasanna Deshpande

Upload: dinhliem

Post on 11-Apr-2018

228 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

1© 2015 The MathWorks, Inc.

Building Fast and Accurate Powertrain

Models for System and Control

Development

Prasanna Deshpande

Page 2: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

2

Challenges for the Powertrain Engineering Teams

How to design and test vehicle powertrain in a single environment?

How to perform powertrain matching, fuel economy, performance, and

emission simulations?

How to design and verify the controller at the vehicle system level?

Page 3: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

3

What Does the Solution Look Like?

Page 4: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

4

Key Message

Model-Based Design uses simulation to address the

challenges of system design and optimization

Calculate

Fuel UseOptimization

Algorithm

Parameter

Values

Powertrain

and Vehicle

Control

Algorithm

Page 5: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

5

Create

Optimize

Verify

Agenda

Page 6: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

6

Create

Optimize

Verify

Agenda

Page 7: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

7

Structure of a System Level Simulation Model

Dynamic System

Model

AUTOMOTIVE

POWERTRAIN

MODEL

Control Strategy

Model

POWERTRAIN

CONTROLLER

MODEL

Page 8: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

8

Data-Driven ModelingFirst Principles Modeling

Neural Networks(Neural Network

Toolbox)

Physical Networks(Simscape and other

Physical Modeling

products)

System Identification

(System Identification Toolbox)

Parameter Optimization(Simulink Design Optimization)

Code(MATLAB)

Block Diagram(Simulink)

Modeling Language(Simscape language)

Symbolic Methods(Symbolic Math

Toolbox)

Modeling Approaches

Modeling Dynamic Systems in the Simulink Environment

Statistical Methods(Model Based

Calibration Toolbox)

Page 9: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

9

Structure of a System Level Simulation Model

Dynamic System

Model

AUTOMOTIVE

POWERTRAIN

MODEL

Control Strategy

Model

POWERTRAIN

CONTROLLER

MODEL

Page 10: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

10

+-

Specify System Response

– Specify response characteristics

– Automatic tuning using Simulink®

Response Optimization™

Linear Control Theory

– Linearize system and perform linear control

design with Control System Toolbox™ and

Simulink® Control Design

– Retest controller in nonlinear system

A x + B u

Root Locus Bode Plot

Real Axis Frequency

+-

Control System Design in Simulink

Page 11: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

11

Structure of a System Level Simulation Model

Dynamic System

Model

AUTOMOTIVE

POWERTRAIN

MODEL

Control Strategy

Model

POWERTRAIN

CONTROLLER

MODEL

Page 12: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

12

Model-Based Design Challenges

Insufficient expertise / resources to build right kinds of models

Limited adoption of HIL

Significant impact on development time and cost

It’s hard to do good Model-Based Design without good models

Page 13: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

13

MathWorks’ Response

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

Lower the barrier to entry

Page 14: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

14

Powertrain Blockset

New product: R2016b+ web release (October 2016)

Goal: Provide pre-built, configurable and accurate models for real-time needs

Page 15: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

15

Drivetrain Propulsion Vehicle DynamicsEnergy Storage

and Auxiliary DriveTransmission Vehicle Scenario Builder

Page 16: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

16

Demo – HEV system level model

Page 17: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

17

Powertrain Blockset

Library of blocks Pre-built reference applications

Page 18: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

18

Create

Optimize

Verify

Agenda

Page 19: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

19

Challenges for the System Engineer

How do I know if my powertrain configuration will meet my requirements?

How can I squeeze a little more performance out of my existing architecture

without violating any design constraints?

Page 20: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

20

Multi-Mode HEV Review

EV Mode

Page 21: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

21

Multi-Mode HEV Review

SHEV Mode

Page 22: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

22

Multi-Mode HEV Review

Engine Mode

Page 23: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

23

Powertrain Blockset:

Four use cases. One framework.

Use Cases:

1. System design and optimization

2. Controller parameter optimization

3. Software integration test

4. Software-hardware integration test (HIL)

Requirements

Rapid

Prototyping

Subsystem

Design

Vehicle

Test

System

Test (HIL)

Production Code

Generation

Unit

Test

Closed-loop

Simulation

Unit

Design

UC1

UC2 UC3

Subsystem

Test

System

Test

UC4

Adapt

and

Reuse

Page 24: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

24

Powertrain Blockset Enables Accessible Optimization Capabilities

Speedup Ratio

• 50 to 100XEfficient

OptimizationPC,

UI

• Simulation Time /

Real-Time

• HEV Reference

Application

• More drive cycles and

design parameters

• Using fewer resources

• Easier implementation

• Simulink Design

Optimization UI

Page 25: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

25

Design Optimization Problem Statement

Maximize MPGe

– FTP75 and HWFET

– Weighted MPGe = 0.55(FTP75) + 0.45(HWFET)

Optimize Parameters:

– 5 control parameters

EV, SHEV, Engine mode boundaries

– 1 hardware parameter

Final differential ratio

Use PC

– Simulink Design Optimization (SDO)

– Parallel Computing Toolbox (PCT)

0 50 100 1500

1000

2000

3000

4000

5000

6000

7000

8000

Vehicle Speed [kph]

Re

qu

este

d T

rac

tive

Fo

rce [

N]

EV SHEV

Engine / Power Split

Differential Ratio

Lenovo ThinkPad T450s

Dual Core i7 2.60GHz

12 GB RAM

Page 26: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

31

Simulink Design Optimization

Speed Up Best practices

– Accelerator mode

– Fast Restart

– Use Parallel Computing Toolbox

– Specify Simulation timeout

Page 27: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

32

Optimization Results – Iteration Plot

Page 28: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

33

Optimization Results

Simulink Design Optimization → Response Optimization

3.42:1 2.92:1

+ 2% MPGe

~ 12 Hours

Page 29: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

34

How Can the Problem be Expanded?

Different Initial SOC Points

Battery Capacity or Cell Configuration

– Ah rating

– Number cells (or modules) in series / parallel

– Affects vehicle mass

Road Grade Profiles

Utilize ‘Uncertain Variables’ in SDO

– Optimize for Robustness

Battery Ah

# Series, # Parallel ?

b

Page 30: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

35

Create

Optimize

Verify

Agenda

Page 31: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

36

Challenges for the Automotive Controls Engineer

How do I know if my motor controller will produce the desired performance?

What will the interactions be between my motor and the rest of the vehicle

systems?

How will my motor operate under more extreme load cases?

Page 32: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

37

Different Motor Models for Different Needs

System Optimization

– Goal: Estimate fuel economy

– Requirements: fast simulation speed,

simple parameterization

– Model choice: empirical model

Subsystem Control Design

– Goal: Study controller interactions

– Requirements: higher accuracy,

inclusion of effects like saturation

– Model choice: nonlinear saturation

Detailed model = inverter controller + nonlinear motor model

Page 33: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

38

High Fidelity Detailed Motor Model in Simscape

FEA simulations or dynamometer data used to obtain non-linear flux table

Simscape-based model created to capture this effect

id

Mechanical Eqn.

λd

λqvq

vd

iq

-600

-400

-200

0

-500

0

500

-0.05

0

0.05

Id [A]

d Data Map

Iq [A]

d [

V.S

]

-600

-400

-200

0

-500

0

500

-0.2

-0.1

0

0.1

0.2

Id [A]

q Data Map

Iq [A]

q [

V.S

]

Page 34: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

39

Including Detailed Subsystem Variants

Add your own subsystem variants to

the existing vehicle models

– Simulink-based

– Simscape-based

– S-function

Page 35: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

40

Detailed Model Variant Simulation

Detailed variant gives

comparable response

Supervisory controller

handles both motor variants

Motor controller requires

further verification

Mapped Detailed Mapped Detailed

HWFET 42 44 50.5 51.8

FTP75 41.4 42.8 59.6 66.4

Cycle

Name

Final SOC (%) MPGe

Page 36: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

41

Torque Control Performance

FTP75 Drive Cycle

Motor torque response

accurately follows the

commanded torque at

different speeds

Actual Torque

Commanded Torque

Motor Speed

Page 37: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

42

Torque Control Performance

Actual Torque

Commanded Torque

Motor Speed

US06 Drive Cycle

Much higher power

demand reveals a

problem

Motor controller

becomes unstable

under certain operating

conditions

Page 38: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

43

Controller Enhancements

Controller robustness was improved via dynamic gain scheduling

Trq_cmd Speed

id_cmd iq_cmd

Flux-Weakening

Controller

Current Controller

Modulation

vd_ref vq_ref

Page 39: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

44

Torque Control Performance

Actual Torque

Commanded Torque

Motor Speed

US06 Drive Cycle

Even in more extreme

maneuvers, improved

motor controller is able

to provide the

commanded torque

Page 40: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

45

Powertrain Blockset and Simscape

Powertrain Blockset Focus Simscape Focus

Empirical studies Predictive studies

Engine modeling Electrical, fluid system design

Engine calibration Multi-domain modeling

Fuel economy studies Architecture concept evaluation

Simscape

Flexible

Architecture

Powertrain

Blockset

Pre-built

Applications

Complementary Technologies

Simscape Assembly

6.7 kWh

Battery

Clutch

Traction

Motor

Winter

Tires

Powertrain Blockset

2L

Engine

Engine

Control

Torque

Control

Clutch

Control

Batt.

ControlDriver

Page 41: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

46

System Level Verification

Started with a fast running system model

Incorporated a detailed subsystem model

Ran several use cases to identify problems

Modified subsystem controller to address problems

Verified the updated subsystem met requirements

-600

-400

-200

0

-500

0

500

-0.05

0

0.05

Id [A]

d Data Map

Iq [A]

d [

V.S

]

-600

-400

-200

0

-500

0

500

-0.2

-0.1

0

0.1

0.2

Id [A]

q Data Map

Iq [A]

q [

V.S

]

Page 42: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

47

Key Takeaways

Powertrain Blockset provides components and controllers for enabling rapid

Model-Based Design of vehicle powertrains

Fast simulation time enables efficient optimization using fewer resources

Powertrain Blockset can be combined with high fidelity subsystem models

to perform system level testing and verification

Page 43: Building Fast and Accurate Powertrain Models for System ...€¦ · Building Fast and Accurate Powertrain Models for System and Control ... AUTOMOTIVE POWERTRAIN MODEL ... CONTROLLER

48© 2017 The MathWorks, Inc.

Thank you

Please send your questions to Mike Sasena at

[email protected]