an integrated approach for model-based systems and ... · pdf filesoftware engineering...

44
© 2014 ANSYS, Inc. 1 An Integrated Approach for Model-Based Systems and Software Engineering ROMs-Based Systems Analysis Jacques DUYSENS 03/06/2015 NAFEMS Séminaire Simulation des Systèmes - 3 juin 2015 Hôtel Novotel Marne la Vallée Noisy le Grand

Upload: ngotuong

Post on 16-Feb-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.1

An Integrated Approach for Model-Based Systems and Software Engineering

ROMs-Based Systems Analysis

Jacques DUYSENS

03/06/2015

NAFEMS – Séminaire Simulation des Systèmes - 3 juin 2015

Hôtel Novotel – Marne la Vallée – Noisy le Grand

Page 2: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.2*BusinessWeek, FORTUNE

Our Strengths

FOCUSEDThis is all we do.Leading product technologies in all physics areasLargest development team focused on simulation

CAPABLE 2,600+

75

40

employees

locations

countries

TRUSTED

FORTUNE 500 Industrials 96 of the top 100

ISO 9001 and NQA-1 certified

PROVENRecognized as one of the world’s MOST INNOVATIVE AND FASTEST-GROWING COMPANIES*

INDEPENDENTLong-term financial stability

CAD agnostic

Page 3: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.3

Diversified Portfolio Structured for Success

30%

35%

35%

Sales by Geography

GIA North America Europe

15%

14%

2%2%

7%

18%8%

2%

9%

8%

15%

Automotive Aerospace & Defense

Construction Consumer Products

Academic Electronics

Energy Bio-Med

Industrial Equipment Materials & Chemical

Semiconductors * Non-GAAP

2013*2013

Sales by Industry

Page 4: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.4

Scaling the deployment of simulation requires a platform strategy

Multiphysics

Simulation

Systems

Engineering

Simulation

Democratization

Robust

Design

Simulation Trends Integrated Platform

Managed dataConnected tools

Automated workflowsParametric

Open & extendable

Page 5: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.5

Example: ANSYS in the Automotive Industry

RKE

Touch PanelDisplay

EMC / EMI

Radiator

Brake

Crankshaft

ICE

TurbochargerElectric Motor

Battery

Exhaust

Power Electronics

Electric

Powertrain

Aerodynamics Underhood

Clutch

Climate

Control

Suspension

Cylinder Head

Antennas

Lighting

Water Jacket

Courtesy of Ferrari AF Corse

Page 6: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.6

Model Based Systems & Software Engineering

Page 7: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.7

Why Care about Systems?

In every industry major innovations

are based on electronics and embedded software.

Page 8: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.8

What is a System?

EnergyStorage

PowerGeneration

Software

Actuators

Sensors Temperature

Pressure

Humidity

The EnvironmentDisturbancesUncertaintyVariabilityExtremesFailures

Page 9: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.9

Modeling & Simulating a System

AmbientConditions

Inputs

• Turn on / off• Speed up• Follow a Profile• ...

Outputs

• How fast?• How accurate?• How efficient?

System Modeling• Mathematical descriptions of behavior• Captured in a formal modeling language• Connected together (so they can interact)

System Simulation• Injects inputs and sets conditions• Calculates the response of the system• Produces outputs to evaluate performance

Page 10: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.10

Complete Model Based Engineering Solution

Complete Virtual Prototypesof E/E Systems (Simplorer)

Model Based Embedded Software

Development(SCADE Suite, Display,

Test & LifeCycle)

Functional & Architectural Design(SCADE System)

Page 11: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.11

Comprehensive Component-Level Design

Fluids Structures Electronics Software

Page 12: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.12

ANSYS Solutions for Detailed Design

Fluids Structures Electronics

Need to optimize & verify interactions of multi-

domain components and embedded software

Embedded Software

Page 13: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.13

The Next Level: Virtual Prototypes ofComplete Systems

Fluids Structures Electronics Software

Systems

Page 14: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.14

Detailed 3D Multiphysics

Maxwell

Fluent

Mechanical

Software Engineering

Our Systems Vision

System Simulation

Simplorer

ROM

Page 15: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.15

Modeling the SystemPowerful Capabilities for Assembly and Reuse

Reduced Order

Model CreationFunctional Mockup

Interface (FMI)

3rd Party SystemModeling tools

(AMESim, Simulink, Dymola, GT Suite etc.)

Embedded Software

Integration

ANSYS SCADE

SimulinkC Code

Co-simulation

with 3D Physics

ANSYS 3D Physics

MechEM ThermalFluid

Multi-Domain Model

Libraries

Language-Based

Modeling

VHDL-AMSC/C++SPICESML

Modelica

Analog

Digital

Multi-Domain

App-Specific

Power Systems

Manufacturers

Page 16: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.16

The Webster Definition:

A methodology to transform a high dimensional subspace of ordinary differential equations (typically arising from FEM, FVM, etc) with a low-dimensional approximation for the purpose of reducing solution time or solving a larger or more complex model.

• The accuracy trade-off for ROMs is to obtain the time response of large systems which otherwise would be computationally impractical

• ROMs are compute and license intensive to create but very fast to simulate once they are built

• ROMs are design specific and multiple ROMs are required for a single design

ROM IntroductionROM

Page 17: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.17

Modèles Réduits

Philosophie

Construire le modèle de plus petite dimension qui capture l’effet dominant du système étudié

Ce n’est pas:

- Le modèle le plus simple

- Un modèle à fidélité variable

- Le modèle ayant le maillage le plus grossier

- Un modèle obtenu par sous-structuration

17

Page 18: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.18

Modèles Réduits

Philosophie

Construire le modèle de plus petite dimension qui capture le comportement dominant du système en projetant le modèle haute fidélité sur un sous-espace bien choisi

18

Page 19: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.19

A ROM created for non-traditional users to explore the design space. System response

and internal field data if of interest.

A system of interconnected heterogeneous ROMs (and other component models) where both the system and interface responses are

of interest.

A system of ROMs which are largely homogeneous with respect to an engineering

discipline, e.g. mechanical, electronics, or thermal management.

Electronics

Example

Three Types or ROM UsageROM Usage Types

Single DisciplineROMs

System Simulation ROMs

Simulation DemocratizationROMs

Page 20: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.20

Methodology - Design of experiments

The values of output parameters as a function of input parameters are obtained on the design points defined in the design of experiments

In order to get the values of output parameters for any value of the input parameters, ANSYS DesignXplorergives access to a large number of interpolation methods

Page 21: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.21

• We will propose you a different usage of the calculations done to overcome today’s limitations

• Data compression and interpolation based on Singular Value Decomposition (SVD)

• SVD works more or less like a Fourier Reconstruction of a signal :

– The model is a summation of modes

– The lower modes contains most of the signal energy

– The higher modes contains noise

ROM Technology - A new approach

Page 22: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.22

In Practice …

Two working stages :

• Offline stage: from a few calculated design points, it is possible to extract a few solution modes (from SVD)

• Online stage: for any given parameter values of the DoE, the full solution can be “instantaneously” shown as a linear combination of the basis modes

RomBuilder

RomReader

Page 23: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.23

RomBuilder - The general model - POD

Page 24: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.24

Generic underhood test case

• 3D thermoaerodynamiccoupled with radiation

• DO model for radiation

• 500,417 tetraedral cells without boundary layers

• Standard k-e model with standard wall-functions

• 2 parameters :

• Inlet velocity from 5 m/s to 20 m/s

• Exhaust Temperature from 700K to 900K

Inletvelocity

Exhaustpipe

Page 25: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.25

Reduced Model Generation Process

• 50 calculation were done

• 10 were used to create the model

• 40 other were made to verify its precision

• ROM Model creation is 9 seconds

• ROM Model is precision is access by comparison with the 40 verification points

• Average error on velocity : 0,06 m/s

• Average error on temperature : 0,49 K

• Quantitative differences in between Fluent calculation and ROM model are presented on the worse verification point

0

5

10

15

20

25

650 700 750 800 850 900 950

inle

t1-v

elo

city

exhaust temperature

5

6

1 1

1 12

1

3

4

test

Page 26: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.26

Static Pressure Comparison

ROM

Absolute DifferenceTexhaust = 723KVcar = 14,3 m/s

Fluent

2 hours on 16 cores cluster 3 seconds on this laptop

Page 27: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.27

Methodologies - Summary

• DOE + meta-modeling techniques (response surface, Kriging, …) including the non-linear scalar case.

• Linear Case – LTI method (modal approach – Linear Time Invariant)

• LTI + LPV (Linear Parameter Varying)

• Modal approach for non-linear steady-state case (intrusive) + limitation to quasi-linear transcient case

• Parametrized field-data compression and interpolation

• Reseach on transcient ROM building methods during a learning transcientsimulation

Page 28: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.28

ROM open doorto future Design Exploration

Page 29: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.29

• Fluent is used as a platform for the created ROM• With 10 points classical composite design :

– 21 hours on 16 cores with Fluent Solver– 9 minutes on one laptop with ROM

Rom can replace solver everywhere

RomReader

Bar temperature

Tb

TpVi

Page 30: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.30

• Fluent is used as a platform for the created ROM• 2 normal distribution on input parameters :

– 23 hours on 16 cores with Fluent Solver– 13 minutes on one laptop with ROM

6s in Design Explorer

Exhaust temperatureInlet velocity

Bar temperature

Page 31: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.31

ROMs-Based Systems ModelsIndustrial Applications

Page 32: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.32

Hybrid Electric Powertrain Control

System-Level Value

• Evaluate architectural selections and component choices to optimize fuel economy and cost

• Verify control strategies and calibrate control parameters

• Assess system reliability (worst-case analysis, fault injection)

Key System-Level Models

• Maxwell: Permanent magnet synchronous machine extracted as ROM

• Q3D: high-voltage bus bar parasitics• SCADE: Motor control software• Simplorer: High-power electronics

(inverter), behavioral multi-domain sensors

Page 33: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.33

System-Level Objectives

• Optimize component selection, sensor placement, and control strategies to improve fuel efficiency (lower emissions)

• Tune & optimize controller parameters to improve passenger comfort across a range of mission profiles and conditions

Aircraft Environmental Control System

Courtesy of Boeing

Key System-Level Models

• Fluent: Detailed cabin airflow model extracted as ROM

• SCADE: Cabin pressure / temperature control software

• Modelica: A/C system components (actuators, sensors, etc.)

• Simplorer: External conditions, mission profiles

Page 34: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.34

Complete System Virtual Prototyping

Courtesy of Boeing

EmbeddedSoftware

0-D/1-Dmodels

3-DROMs

Environmental Control Systems

Optimize component selection, sensor placement, and control strategies

Page 35: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.35

Electromechanical Flight Controls

0

VP

VN

TRQ_CMD MOT_ANG

FLANGE

+

Fpos_sensor

PMSM

fre

e

a

b

c

mech_rv

MOTOR

CTRL

tau_demand

plus

minus

a

free

b

c

r n

lead=0.01

ROT_V

ROT

damp_rotb2

System-Level Value

• Verify control strategies and calibrate control parameters

• Optimize performance and robustness to external disturbances

• Assess system reliability (worst-case analysis, fault injection)

Key System-Level Models

• Maxwell: Permanent magnet synchronous machine extracted as ROM

• SCADE: Autopilot control software, cockpit display

• Simplorer: Behavioral multi-domain sensors, mechanical assemblies

Other Electrified Aircraft Systems:• Electric Green Taxiing• Electric Braking• Electric Engine Start

Page 36: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.36

System-Level Objectives

• Predict and optimize battery life based on electrical and thermal performance

• Assess battery pack safety across a range of mission profiles

Automotive Battery Performance

Key System-Level Models

• Fluent: equivalent electrical circuits and thermal behavior of cells extracted as ROMs

• Modelica: ...• Simplorer: Electronics and multi-domain

sensors• SCADE: Power management and control

Page 37: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.37

Model Order Reduction Creation

→ Create CFD Model

→ Generate Step Responses

→ Extract ROM

t

Step Input Step Response

1

Page 38: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.38

Model Order Reduction Types

→ Foster Network – LTI (Linear Time Invariant)

Average or local temperatures

One single flow rate

Physical comprehension

→ LTI+LPV (Linear Parameter Varying) ROM

Average or local temperatures

Varying flow rates

→ SVD (Singular Value decomposition)

allows for quick temperature distribution

LTI + LPVBattery Temperature

Battery Heat

Flow Rate (Parameter)

Page 39: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.39

LPV ROM for GM Battery Module

The model gives similar results as CFD. The model runs in less than 20 seconds while the CFD runs a couple of days on 6 CPUs.

Page 40: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.40

GM Battery Module – ECM Coupled with ROMs

→ ECM calculates heat source and sends it to the two ROMs

→ LTI ROM calculates average temperature and sends it to ECM

→ SVD+LTI ROM calculates temperature distribution

Average Cell Temperature

Battery Voltage as a Function of Time

Page 41: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.41

Full Battery Simulation

Page 42: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.42

Full system simulation

Page 43: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.43

Hybrid Electric Vehicle (HEV) ExampleSystem Modeling with ROM Models

Compiled Control

ANSYS Fluent

ANSYS RMxprt

Page 44: An Integrated Approach for Model-Based Systems and ... · PDF fileSoftware Engineering ROMs-Based Systems Analysis ... Embedded Software Integration ANSYS SCADE Simulink C Code Co-simulation

© 2014 ANSYS, Inc.44

Summary

Control software modeling is achieved by using a formally defined deterministic notation

Embedded software implementation is performed by using a ISO 26262 qualified toolchain

Multi-disciplinary simulation (electrical, mechanical, fluid, software):

Through appropriate languages (VHDL/AMS, Modelica, SCADE)

In an appropriate environment (Simplorer)

Via appropriate interfaces (FMI, 2D & 3D ROMs)

Multi-order simulation is performed via coupling with 3D co-simulation and reduced order models (ROM)

Multi-physics & software model performances can be optimized via batch simulation campaigns