Vous êtes sur la page 1sur 7

2003-01-2249

The Development of an Object-Oriented Tool for the Modeling


and Simulation of Hybrid Powertrains for Vehicular
Applications
Steven Wilkins, Michael Lampérth
Mechanical Engineering Department, Imperial College London

Copyright © 2003 SAE International

ABSTRACT INTRODUCTION

The use of computer aided design tools has now In recent years efforts to reduce polluting emissions
proliferated to many areas of engineering and the use of created by road transport have increased. This
robust and flexible design tools is paramount to combined with attempts to improve on fuel economy,
modeling complex systems. Hybrid powertrains present development of alternative technologies (fuel cells etc.)
often complex systems where simulation and modeling and reliance on fossil fuels has driven the continued
are important issues. research of hybrid electric vehicles.

This paper presents the development of a simulation One of the key aspects of the research into this area is
tool for the modeling of hybrid powertrains for vehicular the need for well-designed simulation software due to
applications. The software is developed in Object the complexity of the new concept systems being
Oriented code presenting a conceptually intuitive investigated and their effective design. The majority of
representation of real components. simulation packages available are based on fixed
powertrain layouts and hence do not allow the
The importance of matching vehicle design against exploitation of all the possibilities offered by the
required drive-cycle is addressed, the various hybridization of powertrains.
approaches for drive cycles discussed and methodology
for making use of GPS data for vehicle simulation PREVIOUS AND CONCURRENT WORK
presented.
Vehicle simulation software has been developed at
DEFINITION Imperial College in London for the last decade starting
with simulators written in FORTRAN77 [1, 2], then later
GPS Global Positioning System FORTRAN 90 [3, 4] and Matlab/Simulink [5] with a fixed
vehicle and component structure. HEVSIM [4] (1995)
OOL Optimum Operating Line can model electric and series hybrid electric vehicles
with a flexible powertrain layout. Moreover this code
LNG Liquid Natural Gas provided the starting point for the backwards-facing
iterative solving via ‘cycle feedback’. The code also
PEM Proton Exchange Membrane featured ‘powertrain feedback’ which allowed the
automatic resizing of components to meet a drive cycle.
OO Object-Oriented
Elsewhere, simulators such as SIMPLEV[6], CarSim[7],
GUI Graphical User Interface HVEC[8], CSM HEV[9], Elph/V-Elph[10], ADVISOR[11]
& HE-VESIM[12] have all tended towards component-
OOM Object-Oriented Modeling based codes in Modular languages, albeit with fixed
powertrain layouts.
COMPONENT MODELLING AND SIMULATION GENERALIZED METHOD
METHOD
The simulation tool is based on a network of component
The developed code employs different types of models models that describe the individual behavior of the
based on experimental data, scripted calculations or vehicle parts. These components are treated in terms of
empirical models. power input and output generally and take onto account
the load history as well as transient conditions.
OVERVIEW OF COMPONENTS
Components initialised from
Simulation Start. input data files.

The developed code employs different types of models


based on experimental data, scripted calculations or Demand/Power data files
empirical models. A great variety of component models initialised.

are readily available in the software. Due to open


Time-Step
structure, it is very easy to add new components and Read next speed demand from
file.

employing scripting technology this can be done without Adjust demanded speed by
the requirement to recompile. The scripting uses a correction factor.

simple interpreted language based on BASIC. Component Read component power outputs.

Calculate power losses.


For electric machine modeling, the simulation code
includes models for Electric Motor, Generator and Calculate power input.

Motor-Generator which use efficiency maps to describe YES

total efficiency in dependence of speed and torque [3].


Generator houses the Optimum Operating Line (OOL). Can Component power
demand be met?
Cycle Feedback mode?

For the modeling of energy storage devices, YES


NO

battery/battery bank model is included based on an Find next component. NO Final Component in
empirical model based on a two-tank fluid analogy is drive-train?

employed to represent the non-linear behavior of YES

batteries including transient behavior [13]. Also includes NO


Last step in drive-
ultra capacitor/capacitor bank based on an iterative cycle?

solution based on an empirical RC network. Additionally YES

a flywheel model is included based on descriptive Output results.


formulae are used to describe energy content, inertial
and windage losses. [5] Simulation End.

For fuel processors, the simulator includes modeling for


engines (Diesel, Gasoline, LNG) and gas turbines [3].
This uses fuel consumption maps to describe total Fig 1 Flowchart for Backwards-Facing Solution
efficiency dependant on output speed and torque. Methodology [15]
Emission maps are used to predict CO, HC, NOx and
particulate emissions [5]. The package also includes
The majority of simulation codes which exist make use
modeling for PEM fuel cells using performance maps
of a backward-facing approach over discrete time-steps
used to model fuel cell stack performance. [14]
[7, 11, 16]. This methodology starts with a known power
output from a component, calculates the power losses
Also included are many of the mechanical transmission based on the operating point, and therefore the required
elements required such as gearbox transmission, which power input. The power input of one component is the
includes a scripted, customizable algorithm for manual
power output of the previous one in the drive-train, and
or automatic gear changing. This can be used to model so using this method the operating points of all the
driver behavior. The clutch and brake models behave as components in the drive-train can be determined.
power-sink components not normally included in vehicle
simulations which give insight into the required driver
Figure 1 above shows a flowchart for the generalized
behavior.
simulation method used for the majority of codes. The
chart includes cycle-feedback which is a backwards-
An important component model included is the modular
facing iterative solution when a required vehicle output
scripted controller model, allowing linear, switched or is not achievable. The main demand parameter for
fuzzy logic control strategies. Other components include simulation is typically the required vehicle speed, either
typical transmission elements, and various accessories.
in form of a drive cycle, or the real-time pedal input.

ITERATIVE BACKWARD-FACING DYNAMIC


FEEDBACK SOLVING
The majority of components defined are backwards- slow forward-based solution make backwards-iterative
facing only; e.g. motor, engine, shaft, batteries. A few of by far the most appealing method.
the components however are principally dynamic
feedback components. These components require SOFTWARE
information from any one of the components further up
the powertrain path, typically of power supply capacity. PROGRESS IN SOFTWARE
The limiting components from each path must
communicate their limit back to the feedback Object Orientated (OO) modeling and design is a new
component. The commonality for dynamic feedback way of thinking about problems using models organized
components is that they require more than one power around real-world concepts [18]. Since the 1980’s the
input and have more unknowns than relationships. Such proliferation of Object Orientation as a favored
components include the clutch, brake and controllers. methodology for robust and flexible software design has
The feedback is illustrated by Figure 2 with calculation flourished. In contrast to modular software languages
starting at the far left component. which are grouped based on procedure functionality, OO
software focuses more on the grouping of data.
Additionally for modular design interaction between
COMPONENT
Thick arrows
COMPONENT modules is hierarchical rather than direct. A vast
indicating majority of the simulation packages have been based in
COMPONENT convention of
power flow the Matlab/Simulink environment which is a modular
code.
COMPONENT COMPONENT

Feedback
OO software is more than just a tidy method for
software design however; it inherently has many
properties which are useful in the design of large
software packages. These include correctness,
Fig 2 Schematic of Components in Powertrain with robustness, extendibility and reusability which are
Component Feedback [16] largely a result of the rigorous design method.

A work-around for these instances can be to formulate STRUCTURE OVERVIEW


relationships for unknowns based on known values. This
normally requires an assumption which is often where Object oriented structuring relies on the decomposition
the model is at its weakest, for example replacing clutch of a system into its individual parts, followed by further
use with a pre-defined profiled clutch application, or decomposition of these objects themselves. There are
frictional brake use being represented by resistance two different forms of this decomposition, that of object
braking in the energy storage device. decomposition and subject decomposition. This is
discussed more by Maffezzoni et al. [19].
The feeding-back of component limiting information is
an iterative process for each powertrain path, however Object decomposition of a system reflects the
computation time is reduced by firstly trialing the representation of part which reflects the physical
powertrain limit in a similar range to the previous step. components themselves. Subject decomposition makes
The system demand component itself can also be use of the ability for objects to inherit characteristics
thought of as a dynamic feedback component. from other components. In this way data or functions
common to several components can be shared easily
ADVISOR is hybrid vehicle simulator which incorporates and inherited from several other classes.
a forward-facing solving. In the paper by Wipke et al
[11], it is suggested that a forward-facing empirical Applying this strategy to the decomposition of a vehicle
model is more suitable for maximum acceleration powertrain into objects implies that by object
testing where a component is limiting. Forward solving decomposition, the vehicle’s components involved in the
alone is computationally much more costly due to the powertrain are directly represented; engine, battery,
need for smaller time-steps and higher order integration wheel, transmission etc. Subject decomposition leads to
and therefore less preferable when no component is component properties involved in the transmission of
limiting. ADVISOR compares the required values power common to all components to be grouped. This
(backwards-facing results), with achievable values leads to the formulation of a base Component class
(forward-facing results). This approach requires the from which all components are derived where common
definition of two models for each component leading to functionality and data are inherited. Figure 3 shows a
a large programming overhead for introducing new generalized UML diagram for the code structure.
components.

The drawback of the dynamic feedback solution is the


increased amount of computation required to find
solutions iteratively. However, the reduction in
component modeling required and comparison to the
creation and destruction of components, the simulation
SYSTEM COMPONENT itself, all interaction with the external environment. It
manages the linking of components to each other and
provides a recursive algorithm to step through
component in the correct order during calculation.

… The System class also performs some important


ENGINE WHEEL
functions which cannot be addressed easily by the
components themselves. These include determining the
vehicle’s mass, managing the vehicle’s velocity and
Fig 3 Unified Modeling Language (UML) Generalized
simulation time-step length.
Representation [16]
Graphical User Interface: - The Graphical User Interface
Component Class: - The Component class holds data
(GUI) is completely independent of the simulation code.
and functions common to all objects and provides a
The reason for this strategy is to allow the core of the
common interface between components. The common
code to be recompiled as part of other software
interfacing is due to the OO feature of polymorphism
packages. Currently the GUI will run on any version of
which enables virtual Component interface functions to
Microsoft Windows and features familiar drag and drop
be overridden by derived member functions. Where
functionality.
overriding is not required, virtual member functions
provide a default handling of component functionality.
As an important part of the simulation tool, the GUI is
able to plot numerous simulation-time plots of
In reality, an instance of the base class will never exist.
information about the vehicle from the virtual CANbus.
Instead only derived classes are used to create the
This is a powerful tool for visualizing at an early stage
objects which represent the drive-train.
how a vehicle is performing without a post-processor.
Multiple simulations can also be run in parallel for direct
System Class: - A System class can be thought of as
comparison. Figure 4 shows a typical simulation
the container class for a powertrain. It manages the window.

Fig 4 GUI Screen Image Showing Example HEV layout [16]

CONTROLLERS Maffezzoni et al [19] give a detailed breakdown of


control theory in relation to software structure. They
This type of modular control has certain advantages discuss how object-orientated modeling (OOM) forces
over the more conventional centralized controller. the modularity of design, separating the mechanism of
Powers at al. [20], observes how control modules can data exchange from that of control implementation.
easily be reused, and have features seamlessly added Additionally it is recognized that recursive aggregation
and/or removed. They go on the point out however, that and links amongst objects allows component and sub-
understanding of how these modules can be used in components of a system to be defined for hierarchical
hybrid systems is not fully understood. control strategies. Further the ‘functional block’ [21] is
discussed which has many parallels to what has been
developed here.
Controller objects require a degree of configuration by undertaken. The variable may also be a combination of
the user due to the complexity of how they can be used. measurements over the cycle with some weighting. [23]
However the intelligent control of hybrid electric vehicles
will play a large factor in the development of low- Both these arguments of switch trends and user-defined
emission, highly fuel efficient vehicles. Increasing use of design performance variables justify the use of scripting
sophisticated microprocessor-based electronics in more for parametric studies. Using the scripting method, a
recent vehicles [20] is allowing more elaborate control powertrain can be optimized to a viable solution, based
systems to be implemented. This will no-doubt be an exactly on a formulation of the user’s design
active area of research in the near future. requirements.

Controller strategies are user-defined in a script file. DRIVE CYCLE METHODOLOGY


This enables the use of linear and switched control
strategies as required. The controller has access to the Existing methods for evaluating performance of vehicles
virtual CANbus in order to determine the control are based on standardized drive-cycles which consist of
strategy. In addition it is a forward-facing component, a velocity-time data. In Cycle Feedback mode,
knowing the power capacity of any power supply paths simulation programs will calculate the best performance
attached to it. by lowering the vehicle speed from that required when
the vehicle is unable to achieve it. If the velocity limits
PARAMETRIC STUDIES at any point, the vehicle will not travel as far as required
by the original cycle. Figure 6 illustrates the effect of
One of the most useful features of the code is the ability Cycle Feedback during a drive cycle.
to measure a performance variable when altering one or
more parameters of components in the simulated
vehicle. Typically from a component viewpoint, the
resizing of component parameters might be part of a 20 1000

design issue for the development of a new component. 18 Required Velocity (m/s) 900
However, hybridization of vehicles often features the Achieved Velocity (m/s)
16 Required Distance (m) 800
combination of existing components. Achieved Distance (m)
14 700
Velocity (m/s)

Distance (m)
12 600

10 500

8 400

6 300

4 200

2 100

0 0
0 25 50 75 100
Time (s)

Fig 6 Deviation of Distance Traveled for Cycle


Feedback mode

Typically if gradeability or the vehicles performance up


Fig 5 Statistical Data Mass versus Nominal Torque for an incline is to be considered it is either done as a
Induction Motors. [22] separate performance evaluation or the grade and
velocity data are stated at given time intervals. If for a
Linear trends for one component parameter against Cycle Feedback mode simulation the velocity is not met
another can be formulated from statistical data. Figure 5 this creates a problem. With linear simulations, if the
shows real data for how induction motor mass varies velocity is not met the time and velocity data can still be
with nominal torque. Additionally, trends which involve linked in that for a given time, the simulation of a given
switched trends either due to commercial or physical velocity can be attempted.
limitations of component sizes may also be
encountered. An extreme case of this might be where If the grade data is also included this becomes more
the evaluation of a small number of components is difficult, since a lower velocity over a given time step
required, where each is considered individually. implies that a smaller distance over that grade is
achieved. Therefore unless time and velocity/grade are
The design variable for the vehicle performance unlinked the simulation can change the landscape over
evaluation may be different for each parametric study which the vehicle is intended to travel in the simulation.
An alternative way of encapsulating the drive cycle is to points, as does the drive cycle sampling, the number of
base it on positional data, which can also include the points would need to be sufficiently high when large
grade. Given this approach, two ways of dealing with the positional changes occur.
Cycle Feedback are possible. The first is to vary the
time period over which the step takes place and
maintaining the distance vector. The second method is
to vary the distance over which the step takes place, in DISCUSSION
the same direction as the original distance vector.
Figure 7 and 8 summarize the differences between the
The simulation code developed can be used a research
two approaches.
or design tool for the evaluation of new concept hybrid
electric vehicles. Although initially intended for the sole
purpose of simulating hybrid vehicle, there is no
30
apparent limitation to the powertrains which the
simulation software can model, using backwards-facing
solving methodology.

The dynamic feedback method enables components to


20
be included which would conventionally require a
forward-facing solution. These components can give
Y Position (m)

insight into driver or external input which is often not


Vehicle Path
Completed Path included in many typical backwards-facing simulations
[11].
Time-Based Methodology:
10 When vehicle speed is limiting, the time
step is lengthened for the achieved
positional location to match the required
The minimal amount of code for the introduction of a
positional location. new component consists of the definition of three
The step is not possible when the time step length
time becomes sufficiently large for the component
functions, due largely to inheritance from the base
models' validity to break down. Component class. The OO design means that the code
is intuitively structured with flexible, easy-to-use GUI.
0
0 10 20 30
X Position (m)
The use of a simple scripting implementation extends
the user-base for the code, requiring no special
Fig 7 Time-Based Methodology programming skills to customize control strategies or
parametric analysis.

A novel way to specify drive-cycles was presented


30 based on position-time data rather than the more
traditional velocity-time data. Two methods were
indicated which could make use of this data in Cycle
Feedback mode owing to the difficulties associated with
adjusting the cycle to find the possible velocity.
20
Y Position (m)

REFERENCES
Vehicle Path
Completed Path
1. Liebenberg, L., A.L. Nel, and K.R. Pullen.
Distance-Based Methodology: Computer simulation of electric-, gas turbine-, and gas
10 When vehicle speed is limiting, the distance turbine hybrid electric vehicles, SAE technical paper
travelled in the time step is decreased, but the time
step time length is preserved so that the achieved number 941733. in SAE International Off-Highway and
time step end time matches the required.
Powerplant Congress and Exposition. 1994. Milwaukee,
Proceeding steps' velocities are taken from the
required velocity based on position. Required time Wisconsin: Society of Automotive Engineers (SAE).
step end postions are then taken from linear
interpolation from the path between points

0 2. Yaxas, Y., Hybrid vehicle simulation, in


0 10 20 30
X Position (m)
Mechanical Engineering. 1994, Imperial College,
University of London: London.

Fig 8 Distance-Based Methodology 3. Leontopoulos, C., Vibration analysis for the


design of a turbo-generator based powertrain for hybrid
The distance-based methodology provides simulation vehicles. 1997.
points at the same time stepping as the original data
which would be more useful for direct comparison, since 4. Lampérth, M., Pullen, K. Turbogenerator based
any real data is more likely to be at fixed sampling rate. hybrid versus dieselelectric hybrid - a parametric
Since the simulation assumes linear movement between optimisation simulation study. in SAE Future
Transportation Technology Conference. 2000. Costa 14. Mistry, S., Modelling Fuel Cell Behaviour for
Mesa, California: SAE. Vehicle Performance Simulation. 2001, Imperial
College, University of London: London.
5. Lefebvre, F., Modelling and simulation of
conventional and hybrid vehicles, in Mechanical 15. Pangalis, M.M.-B., R; Brandon,N, Integration of
Engineering. 1999, Imperial College, University of solid oxide fuel cells into gas turbine power generation
London: London. cycles, Part 1: fuel cell thermodynamic modelling.
Journal of Power and Energy, 2002. 216.
6. Cole, G.H., SIMPLEV; A simple electric vehicle
simulation program, version 2.0. 1993, EG&G Idaho 16. Wilkins, S., A. Walker, and M.U. Lampérth,
Inc.: Idaho. Robust Software Strategy for Powertrain Modelling.
2002, Imperial College: London.
7. Cuddy, M. A comparison of modeled and
measured energy use in hybrid electric vehicles, SAE 17. Butler, K.L., M. Ehsani, and P. Kamath, A
technical paper number 950959. in SAE International Matlab-based modeling and simulation package for
Congress and Exposition. 1995. Detroit, Michigan: electric and hybrid electric vehicle design. Ieee
Society of Automotive Engineers (SAE). Transactions on Vehicular Technology, 1999. 48(6): p.
1770-1778.
8. Aceves, S.M. and J.R. Smith. A hybrid vehicle
evaluation code and its application to vehicle design, 18. Rumbaugh, J., Blaha, M., Premerlani, W., Eddy,
SAE technical paper number 950491. in SAE F., & Lorensen, W, Object-oriented modelling and
International Congress and Exposition. 1995. Detroit, design. 1991, NJ, USA: Prentice-Hall.
Michigan: Society of Automotive Engineers (SAE).
19. Maffezzoni, C., Ferrarini, L., Carpanzano, E.,
9. Braun, C. and D. Busse. A modular Simulink Object-oriented models for advanced automation
model for hybrid electric vehicles, SAE technical paper engineering. Control Engineering Practices, 1999. 7: p.
number 961659. in SAE Future Transportation 957-968.
Technology Conference and Exposition. 1996.
Vancouver, Canada: Society of Automotive Engineers 20. Powers, W., Nicastri, P, Automotive vehicle
(SAE). control challenges in the 21st century. Control
Engineering Practice, 2000. 8: p. 605-618.
10. Butler, K.L., K.M. Stevens, and M. Ehsani. A
versatile computer simulation tool for design and 21. Standard-IEC-1499, Function Blocks for
analysis of electric and hybrid drive trains, SAE Industrial-Process Measurement and Control Systems.
technical paper number 970199. in SAE International 1996, IEC TC65/WG6.
Congress and Exposition. 1997. Detroit, Michigan:
Society of Automotive Engineers (SAE). 22. Mueller, K.G., Life Cycle Assessment in
Engineering Design, in Mechanical Engineering. 2000,
11. Wipke, K., Cuddy, M., Burch, S., ADVISOR Imperial College, University of London: London.
2.1:A User-Friendly Advanced Powertrain Simulation
Using a Combined Backward/Forward Approach. 1994, 23. Hellgren, J. and B. Jacobson. A systematic way
National Renewable Research Laboratory. of choosing driveline configuration and sizing
components in hybrid vehicles, SAE technical paper
12. Lin, C., et al., Integrated, Feed-Forward Hybrid number 2000-01-3098. in SAE Future Transportation
Electric Vehicle Simulation in SIMULINK and its Use for Technology Conference and Exposition. 2000. Costa
Power Management Studies. SAE Society of Mesa, California: Society of Automotive Engineers
Automotive Engineers, 2001. (SAE).

13. Lampérth, M., Simulation of Hybrid Electric


Vehicle, in Mechanical Engineering. 1996, Imperial
College: London.

CONTACT

Email: sw8@ic.ac.uk, m.lamperth@ic.ac.uk

URL: http://www.HybridPower.org

Vous aimerez peut-être aussi