carmaker simulation in cluster - everything · • cevt is an innovation center for the geely...

25
CarMaker Simulation in Cluster CarMaker Implementation in SPDRM Hanjie Xu, Lei Xu CAE Department at CEVT 18/09/2018 Authors: Hanjie Xu, Lei Xu

Upload: others

Post on 14-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

CarMaker Simulation in Cluster

CarMaker Implementation in SPDRM

Hanjie Xu, Lei Xu

CAE Department at CEVT

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 2: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Agenda

• Introduction of CEVT

• CarMaker at CEVT

• CarMaker Implementation in SPDRM

1. Generate CarMaker data files

2. Run CarMaker in SPDRM

3. Postprocessing

• Benefits from running CarMaker in SPDRM

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 3: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

CEVT – China Euro Vehicle Technology

• CEVT is an innovation center for the Geely group, located in Gothenburg Sweden

• Founded in 2013, today there are about 2,000 people working at CEVT

• Our Compact Modular Architecture was brought to the market with the Lync & Co 01, 02, 03 and Volvo XC40

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 4: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

CEVT – China Euro Vehicle Technology

Lync & Co 01

Lync & Co 02

Lync & Co 03

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 5: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

CEVT ’s Role in Geely Group

CEVT is the innovation center in Geely

group.

Page 6: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Who are we and what do we do at CEVT?

Architecture

Vehicle Integration

CAE department

• 1d-CFD

• Fuel Economy & Performance

• Thermodynamics

• Contamination

• Aerodynamics

• Aero acoustics

• Climate

• Computational Electromagnetics

• Calculate fuel consumption or

pure electric range.

• 0-100km/h, overtaking

simulation.

• Focus on NEDC, WLTP and

future CLTC regulation.

18/09/2018Authors: Hanjie Xu, Lei Xu

Supply thermal model

Page 7: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Agenda

• Introduction of CEVT

• CarMaker at CEVT

• CarMaker Implementation in SPDRM

1. Generate CarMaker data files

2. Run CarMaker in SPDRM

3. Postprocessing

• Benifits from running CarMaker in SPDRM

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 8: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

CarMaker at CEVT

• CarMaker is used as the central simulation platform, where models built on other model authoring softwares

are plugged in for vehicle-level analysis and virtual test driving

• The Fuel Economy & Performance is one of the primary applications of CarMaker within CEVT

• CarMaker is also used in HIL testing at CEVT, thereby providing seamless testing on the left and right-hand

side of the V-model

18/09/2018

Page 9: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Powertrain

plant/controlResistance

force

Aero drag

Tire rolling friction

Vehicle inner friction

Engine/ECU

Electric motor

HV battery

Trans/TCU

Hybrid

Control

NEDC

WLTC

US

Results

CarMaker Driver

18/09/2018

Page 10: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

CarMaker at CEVT

- Central Simulation Platform for Co–simulation & Model Integration

Control models built in Simulink

Thermal models built in GT

18/09/2018

Page 11: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Benefit from such a setup

Virtual Prototype

IPG Driver

Magic Formula Tire

Environment

Model Integration

CarMaker’s

advantage

Engine/ECU

Electric motor

HV battery

Trans/TCU

Hybrid

Control

Control models are from real software in

Simulink.

Plant models are built in GT-suit, Dymola

Plugin

FMUs

18/09/2018

Page 12: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

• CarMaker is the integration platform

• It provides a breakdown of the vehicle into plant and controller models

• The Model Manager enables selecting the required model complexity and manages the heirarchy

• Takes advantage of high fidelity models from each authoring each software

• With CarMaker’s FMU import, models can be built outside CarMaker, fully customised and integrated into

the virtual prototype

• CarMaker driver can be trained to follow the speed profile from regulation very well

• Have the possibility to extend to real world driving fuel economy simulation

Benefit from such a setup

18/09/2018

Page 13: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Agenda

• Introduction of CEVT

• CarMaker at CEVT

• CarMaker Implementation in SPDRM

1. Generate CarMaker data files

2. Run CarMaker in SPDRM

3. Postprocessing

• Benifits from running CarMaker in SPDRM

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 14: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

What is SPDRM?

Authors: Hanjie Xu, Lei Xu

• SPDRM is a tool for Simulation, Process, Data & Resources Management, developed by BETA.

• SPDRM is already used widely within CAE department, we fuel economy and performance group is

implementing CarMaker in SPDRM.

• Simulation data management

• Execute CarMaker inside SPDRM

• Postprocess

18/09/2018

Page 15: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Today’s CarMaker Workflow

Authors: Hanjie Xu, Lei Xu

Execute model

Manually move

models into CM

Postprocessing

• Large amount of manual work

• One needs CarMaker experience for usage

• Not very good for traceability and reproducibility

SVN

model Lib

18/09/2018

Page 16: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

How do we implement CarMaker workflow in SPDRM ?

Migrate to

SPDRM

Generate

CM project

file

CM solver

in SPDRM

Postprocessing

in Python

• Enables high simulation automation

• One does not need CarMaker experience for usage

• Good traceability and reproducibility.

18/09/2018

SVN

model Lib

Page 17: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Generate CarMaker Project File from SPDRM

Basic sim setting, data

format, frequency…

Road length,

slope

Driving cycles,

NEDC, WLTCPowertrain

models

Postprocess

script

Main vehicle file

Vehicle

Tire

TestRun

Plugins

18/09/2018

Page 18: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Generate CarMaker Project File from SPDRM

Logic of picking different powertrain models

Variant Engine Driveline Trans. HV batteryElectric

machinePowertrain

controlTest mass[kg] Test Cycle

Tyre Normal Pressure

Tyre iso-pressure Tyre RRC Aero CdxA

NO.666 Engine_a FWD Gearbox_a Batt_a EM_a PTC_a aaa WLTP p P_iso rrc cda

What does the Python script do, if a vehicle variant has Engine_a ?

1. Copy and past Engine_a.FMU as well as its interface information from SPDRM to CarMaker Plugins

folder.

2. Modify the main vehicle file under data/vehicle, change the engine name to Engine_a.

18/09/2018

Page 19: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

What does the Python script do, if a WLTP simulation needs to be performed?

1. Copy and paste WLTP test speed profile to SimInput folder under CarMaker project

folder

2. Modify the Testrun file under Data/TestRun, change the speed profile name to the

existed WLTP speed profile name.

Generate CarMaker Project File from SPDRM

Variant Engine Driveline Trans. HV batteryElectric

machinePowertrain

controlTest mass[kg] Test Cycle

Tyre Normal Pressure

Tyre iso-pressure Tyre RRC Aero CdxA

NO.666 Engine_a FWD Gearbox_a Batt_a EM_a PTC_a aaa WLTP p P_iso rrc cda

Logic of setting testrun

18/09/2018

Page 20: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Generate CarMaker Project File from SPDRM

What does the Python script do?

1. Modify the vehicle file under

data/Vehicle

Variant Engine Driveline Trans. HV batteryElectric

machinePowertrain

controlTest mass[kg] Test Cycle

Tyre Normal Pressure

Tyre iso-pressure Tyre RRC Aero CdxA

NO.666 Engine_a FWD Gearbox_a Batt_a EM_a PTC_a aaa WLTP p P_iso rrc cda

Logic of setting vehicle & tire file

What does the Python script do?

1. Modify the tire file under data/Tire

18/09/2018

Page 21: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

• For each vehicle variant (Simulation), SPDRM generates one specific CarMaker project

folder.

• For each vehicle variant (Simulation), models that have been copied to CarMaker project

folder are also been recorded to sucure the traceability.

Run CarMaker in SPDRM

18/09/2018

Page 22: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu 18/09/2018

Run CarMaker in SPDRM

How to sucure traceability ? Example (Gearbox)

Model information/data

Gear ratio

3D Efficiency map

Torque limit

Model Interfaces

Model built in the original softwareGearbox.slx

Gearbox.m

Model as FMU and model interfaceGearbox.fmu

Gearbox.fmu.info

Result file

Page 23: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Authors: Hanjie Xu, Lei Xu

Postprocess in SPDRM

Engine Operation Time Distribution Plot

En

gin

e S

pee

d

Engine Torque

Time

Hyb

rid M

ode

Postprocess examples from Python scripts in SPDRM.

18/09/2018

Page 24: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

Agenda

• Introduction of CEVT

• CarMaker at CEVT

• CarMaker Implementation in SPDRM

1. Generate CarMaker data files

2. Run CarMaker in SPDRM

3. Postprocessing

• Benifits from running CarMaker in

SPDRM

18/09/2018Authors: Hanjie Xu, Lei Xu

Page 25: CarMaker Simulation in Cluster - Everything · • CEVT is an innovation center for the Geely group, located in Gothenburg Sweden • Founded in 2013, today there are about 2,000

What is the advantage ?

Authors: Hanjie Xu, Lei Xu

• It is not necessary for the user to have CarMaker or modelling experience to do simulations using such a

method

• Our customer within the company is able to calculate the vehicle fuel consumption/electric range as long as

they fill in the powertrain and vehicle general data in SPDRM

• We, as CarMaker and modelling experts, can therefore focus on CarMaker environment building, model

development and analysis, instead of spending time on running simulations for internal customers

• Increased simulation traceability and reproducibility

• Such a setup can be run on cluster to increase simulation speed

18/09/2018