carmaker simulation in cluster - everything · • cevt is an innovation center for the geely...
TRANSCRIPT
CarMaker Simulation in Cluster
CarMaker Implementation in SPDRM
Hanjie Xu, Lei Xu
CAE Department at CEVT
18/09/2018Authors: Hanjie Xu, Lei Xu
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
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
CEVT – China Euro Vehicle Technology
Lync & Co 01
Lync & Co 02
Lync & Co 03
18/09/2018Authors: Hanjie Xu, Lei Xu
CEVT ’s Role in Geely Group
CEVT is the innovation center in Geely
group.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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