InTechOpen uses cookies to offer you the best online experience. By continuing to use our site, you agree to our Privacy Policy.

Engineering » Vehicle Engineering » "Electric Vehicles - Modelling and Simulations", book edited by Seref Soylu, ISBN 978-953-307-477-1, Published: September 12, 2011 under CC BY-NC-SA 3.0 license. © The Author(s).

Chapter 2

Modeling and Simulation of High Performance Electrical Vehicle Powertrains in VHDL-AMS

By K. Jaber, A. Fakhfakh and R. Neji
DOI: 10.5772/16650

Article top


Model of traction chain
Figure 1. Model of traction chain
Forces on a vehicle
Figure 2. Forces on a vehicle
SIMPLORER model of the PMSM in the d-q rotor frame
Figure 3. SIMPLORER model of the PMSM in the d-q rotor frame
Stator current and EMF in the d-q rotor frame
Figure 4. Stator current and EMF in the d-q rotor frame
Inverter connected to a balanced load
Figure 5. Inverter connected to a balanced load
SIMULINK models for a vector control and his interaction in a chain of traction for vehicle
Figure 6. SIMULINK models for a vector control and his interaction in a chain of traction for vehicle
Vehicle speed response in MATLAB/SIMULINK
Figure 7. Vehicle speed response in MATLAB/SIMULINK
Electric Vehicle description in Simplorer environment
Figure 8. Electric Vehicle description in Simplorer environment
Dynamic response of the vehicle speed in Simplorer and Matlab
Figure 9. Dynamic response of the vehicle speed in Simplorer and Matlab
Overview of residual: Normal probability and residual plot
Figure 10. Overview of residual: Normal probability and residual plot
Contour plot and response surface (Y) of the Torque gear ratio (rm) and Stator d-q axes inductances (Ld&Lq).
Figure 11. Contour plot and response surface (Y) of the Torque gear ratio (rm) and Stator d-q axes inductances (Ld&Lq).
Dynamic response of the vehicle speed after optimization
Figure 12. Dynamic response of the vehicle speed after optimization

Modeling and Simulation of High Performance Electrical Vehicle Powertrains in VHDL-AMS

K. Jaber1, A. Fakhfakh1 and R. Neji1

1. Introduction

Nowadays the air pollution and economical issues are the major driving forces in developing electric vehicles (EVs). In recent years EVs and hybrid electric vehicles (HEVs) are the only alternatives for a clean, efficient and environmentally friendly urban transportation system (Jalalifar et al., 2007). The electric vehicle (EV) appears poised to make a successful entrance to the personal vehicle mass market as a viable alternative to the traditional internal combustion engine vehicles (ICE): Recent advances in battery technology indicate decreasing production costs and increasing energy densities to levels soon acceptable by broad consumer segments. Moreover, excluding the generation of the electricity, EVs emit no greenhouse gases and could contribute to meeting the strict CO2 emission limits necessary to dampen the effect of global warming. Several countries around the world have therefore initiated measures like consumer tax credits, research grants or recharging station subsidies to support the introduction of the EV. Finally, the success alternative vehicles like the Toyota Prius Hybrid proves a shift in consumer interest towards cleaner cars with lower operating costs (Feller et al., 2009).

Nonetheless, the EV will first need to overcome significant barriers that might delay or even prevent a successful mass market adoption. Permanent Magnet Synchronous Motor (PMSM) is a good candidate for EVs.

In this work, a high level modelling and an optimization is reported for the determination of time response (Tr) and power (P) of Electric Vehicle. The electric constant of back-electromotive-force, stator d- and q- axes inductances, switching period, battery voltage, stator resistance and torque gear ratio were selected as factors being able to influence Tr and P. The optimization process was carried out with Doehlert experimental design (Jaber et al., 2010).

The optimization is based on simulations of the chain of the electric vehicle; every block is simulated with a different abstraction level using the hardware description language VHDL-AMS. The chain of electric traction is shown in Figure 1. It consists of 4 components: Control strategy, Inverter, PMSM model and Dynamic model. A right combination of these four elements determines the performance of electric vehicles.

VHDL (Very High Speed Integrated Circuit Hardware Description Language) is a commonly used modelling language for specifying digital designs and event-driven systems. The popularity of VHDL prompted the development of Analog and Mixed-Signal (AMS) extensions to the language and these extensions were standardized as IEEE VHDL-AMS in 1999. Some of the main features of this ASCII-based language include Model Portability, Analog and Mixed-Signal modeling, Conserved System and Signal Flow Modeling, Multi-domain modeling, Modeling at different levels of abstraction, and Analysis in time, frequency and quiescent domains. Since VHDL-AMS is an open IEEE standard, VHDL-AMS descriptions are simulator-independent and models are freely portable across tools. This not only prevents model designers from being locked in to a single tool or tool vendor but also allows a design to be verified on multiple platforms to ensure model fidelity.


Figure 1.

Model of traction chain

VHDL-AMS is a strict superset of VHDL and inherently includes language support for describing event-driven systems such as finite state machines. The standard not only provides language constructs for digital and analog designs but also specifies the interactions between the analogue and digital solvers for mixed-signal designs. The analog (continuous time) extensions allow the description of conserved energy systems (based on laws of conservation) as well as signal-flow models (based on block diagram modeling).

VHDL-AMS distinguishes between the interface (ENTITY) of a model and its behavior (ARCHITECTURE). VHDL-AMS allows the association of multiple architectures with the same entity and this feature is typically used to describe a model at different levels of abstraction.

With VHDL-AMS, it is possible to specify model behaviour for transient, frequency and quiescent domain simulations. Depending on the user’s choice of an analysis type, the appropriate behavior is simulated.

The language is very flexible in that it allows different modeling approaches to be used, both individually and collectively. It is possible to describe model behavior with differential algebraic equations, value assignments and subprograms at a very abstract and mathematical level (Mc Dermott et al., 2006).

The VHDL-AMS language is an undiscovered asset for FPGA designers—a powerful tool to define and verify requirements in a non-digital context.

As an electric vehicle is a multidisciplinary system, the new standard VHDL-AMS is suitable for the modelling and the simulation of such system in the same software environment and with different abstraction levels (Jaber et al., 2009).

2. Dynamic model

The first step in vehicle performance modelling is to write an electric force model. This is the force transmitted to the ground through the drive wheels, and propelling the vehicle forward. This force must overcome the road load and accelerate the vehicle (Sadeghi et al., 2009).

For any mission profile, an electric road vehicle is subjected to forces that the onboard propulsion system has to overcome in order to propel or retard the vehicle. These forces are

composed of several components as illustrated in Figure 2.The effort to overcome these forces by transmitting power via the vehicle drive wheels and tyres to the ground is known as the total tractive effort or total tractive force.


Figure 2.

Forces on a vehicle

The rolling resistance is primarily due to the friction of the vehicle tires on the road and can be written as (Jalalifar et al., 2007):

The aerodynamic drag is due to the friction of the body of vehicle moving through the air. The formula for this component is as in the following:


An other resistance force is applied when the vehicle is climbing of a grade. As a force in the opposite direction of the vehicle movement is applied:

The power that the EV must develop at stabilized speed is expressed by the following equation:


The power available in the wheels of the vehicle is expressed by:


According to the fundamental principle of dynamics the acceleration of the vehicle is given by:


3. PMSM model

A permanent magnet synchronous motor (PMSM) has significant advantages, attracting the interest of researchers and industry for use in many applications.

Usage of permanent magnet synchronous motors (PMSMs) as traction motors is common in electric or hybrid road vehicles (Dolecek et al., 2008). The dynamic model of the PMSM can be described in the d-q rotor frame as follows:


WhereK=Pϕm is the electric constant of back-electromotive-force (EMF), it is calculated according to the geometrical magnitudes of the motor so that it can function with a high speed. The equations giving the stator current can be written in the following form:


The electromagnetic torque developed by the motor is given by the following equation:


The equation giving the angle by the motor can be written in the following form:

Figure 3 shows the description of the model of the PMSM in Simplorer 7.0 software.


Figure 3.

SIMPLORER model of the PMSM in the d-q rotor frame

4. Control strategy

In recent years, vector-controlled ac motors, such as induction motor, permanent-magnet synchronous motor (PMSM), and synchronous reluctance motor, have become standard in industrial drives and their performance improvement is an important issue. Particularly, improvement of control performance and drive efficiency is essentially required for drives used in electric vehicles (Ben Salah et al., 2008):


To achieve an optimal control, which means a maximum torque, it is necessary to satisfy the following condition:


from where

Is=Iq    and    Id=0

Figure 4.

Stator current and EMF in the d-q rotor frame

The first part (A) in figure 1 illustrates the control strategy. It presents a first PI speed control used for speed regulation. The output of the speed control is Iqref; its application to a second PI current regulator makes the adjustment of phase and squaring currents. The outputs of current regulators are Vdref and Vqref; they are applied to a Park transformation block. Where, Vdref and Vqref are the forcing function to decide the currents in d-q axis model which may be obtained from 3-phase voltages (Va, Vb and Vc) through the park transformation technique as:


The generation of the control signals of the inverter is made by comparison of the simple tensions obtained following the regulation with a triangular signal. Its period is known as switching period.

The different blocks constituting the traction chain were described in a VHDL-AMS structural model by including all expressions detailed above.

5. Inverter model

The structure of a typical three-phase VSI is shown in figure 6. As shown below, Va, Vb and Vc are the output voltages of the inverter. S1 through S6 are the six power transistors IGBT that shape the output, which are controlled by a, a’, b, b’, c and c’. When an upper transistor is switched on (i.e., when a, b or c are 1), the corresponding lower transistor is switched off (i.e., the corresponding a’, b’ or c’ is 0). The on and off states of the upper transistors, S1, S3 and S5, or equivalently, the state of a, b and c, are sufficient to evaluate the output voltage.


Figure 5.

Inverter connected to a balanced load

The relationship between the switching variable vector [a, b, c]t and the line-to-line output voltage vector [Vab Vbc Vca]t and the phase (line-to-neutral) output voltage vector [Va Vb Vc]t are given by the following relationships, where a, b, c are the orders of S1, S3, S5 respectively.


The different blocks constituting the traction chain were introduced both in MATLAB and SIMPLORER 7.0 softwares. They were described in structural models by including all expressions detailed above. The different simulation parameters are summarized in table 1:

VmaxMax Speed80 km/h
CxDrag coefficient of the vehicle0.55
SFrontal surface of the vehicle1.8 m2
fCoefficient of rolling friction0.025
MvTotal mass of the vehicle800 kg
pPair of pole number4

Table 1.

Simulation parameters

6. Simulation results

6.1. MATLAB environment

Figure 6 details the vector control (Id=0 strategy) of the vehicle, implemented under Matlab/simulink software.


Figure 6.

SIMULINK models for a vector control and his interaction in a chain of traction for vehicle

Figure 7 shows the simulation result. The reference speed of the EV is reached after 8.5s. Simulations with MATLAB are useful to verify that our system works well without any dysfunction. But in this case, the traction chain of the EV is described with ideal functional models. Going down in the hierarchical design level, more suitable software should be applied. For this reason, our system was described in VHDL-AMS and simulated with Simplorer 7.0 software.


Figure 7.

Vehicle speed response in MATLAB/SIMULINK

6.2. VHDL-AMS virtual prototype

VHDL-AMS descriptions were developed for each block of the electric vehicle including structural models. The obtained blocks were connected in Simplorer 7.0 Software environment to obtain a high level description our system as detailed on figure 8. The exposed blocks include analogue/digital electronic behavioural descriptions. It represents a so complex multi-domain system (Fakhfakh et al., 2006).


Figure 8.

Electric Vehicle description in Simplorer environment

6.3. Comparison

The dynamic response of the vehicle speed is depicted in figure 9, obtained with both Simplorer and Matlab software. In table 2, we compare the simulation runtime and the obtained response time of the Electric Vehicle. We can distinguish clearly the difference between the two simulation results.


Figure 9.

Dynamic response of the vehicle speed in Simplorer and Matlab

SoftwareSimulation runtimeTime response of max speed
Matlab24s8.5 s
Simplorer66s6.5 s

Table 2.

Simulation runtime simulation

To conclude, Matlab executes simulations more rapidly (24s); we obtained a dynamic response equal to 8.5s. Simplorer simulation runtime is three times longer due to the fact that the modelling abstraction level is lower compared to the functional description with Matlab; the dynamic response is about 6.5s. The power of the Electric Vehicule is about 42 kW.

To resume, we can clearly conclude that simulating a mathematical model with MATLAB software is useful to verify the ideal response of our EV. But with Simplorer environment we can attend the lower abstraction models. In this case, it is possible to simulate the effect of physical parameters such as temperature, battery voltage, etc.

7. Optimization with experimental designs

To optimize our control strategy, we have adopted an experimental design approach by applying the Doehlert design. Six factors have been considered as shown on table 3: Ke, Ld, Ts, E, R and rm. According to the number of factors, in order to limit the number of runs and to take into account the major effects, a screening study is necessary. Consequently, a first step of screening was conducted using a fractional factorial design. The last with six factors is a design involving a minimum of 45 experiments (see appendix).

For each factor, we define three levels: low, center and high levels as detailed on table 3.

Naturel VariableParametersCoded variableLow LevelCenter LevelHigh Level
Keelectric constant of back-electromotive-force (EMF)X10.050.10.2
Ld= LqStator d- and q- axes inductances (mH).X20.2160.4160.616
TsSwitching period (μs)X3100300500
EBattery voltage (V)X4200300400
RStator resistance (Ω)X50.020.050.08
rmTorque gear ratioX6135

Table 3.

Description of experimental variables in the screening design

Our goal is to optimize both the response time and the power of the studied system. The analysis of results and the building of experimental designs were carried out with the NEMRODW mathematical statistical software (El Ati-Hellal et al., 2009).

Because of the none-linearity of the studied system, the experimental response Yi can be represented by a quadratic equation of the response surface (Elek et al., 2004):


Y1 : response representing the response time;

Y2 : response representing the power;

To find an optimum, we should minimize (Y1) and maximize (Y2). So we define the following experimental response Y:

with α=350 and β=0.6 α and β are ponderation factors. In our case, we give the same weight to the response time and the power.

Coefficients bi of the response surface (19) were calculated with Nemrodw software without taking into account experiment 45 due to high residual.

To decide about the efficiency of the obtained regression equation, we compute R2 as:

R2 = (Sum of squares attributed to the regression)/ Total Sum of squares)

We found R² = 0.976; it is well within acceptable limits of R2>= 0.8 which revealed that the experimental data well fitted the second-order polynomial equation as detailed on table 4.

Standard error of response 8.4837
R2 0.976
R2A 0.939
R2 pred 0.777
PRESS 11512.167
Degrees of freedom 17

Table 4.

Statiscal data and coefficients of y response model: y= f(x1, x2, x3, x4, x5, x6)

To estimate the quality of the model and validate it, analysis of the variance and the residual values (difference between the calculated and the experimental result) were examined. According to the residual (Figure 10), the choice of the model was appropriate: a systematic behavior was not observed in the plot, for example, an increase in residual suggesting the necessity to transform the response.

After the validation of the proposed second-order polynomial model, we can draw 2D and 3D plots representing the evolution of Y versus 2 factors.

Using contour plot graphs makes the evaluation of the influences of the selected factors easier.

Figure 11 illustrates the experimental response obtained by the simultaneous variation of X2 (Ld&Lq) and X6 (rm). We concluded that in order to increase the response Y, an increase of X6 and decrease of X2 is necessary (Danion et al., 2004) & (El Hajjaji et al., 2005).


Figure 10.

Overview of residual: Normal probability and residual plot


Figure 11.

Contour plot and response surface (Y) of the Torque gear ratio (rm) and Stator d-q axes inductances (Ld&Lq).

An optimal result of control strategy on the electrical vehicle is obtained with NEMRODW software to obtain an optimal dynamic response. It is detailed on table 5.

Response Before optimizationAfter optimization
Tr (Y1)6.5s4.65s
P (Y2)42 Kw58 K w

Table 5.

Optimization result

The optimal values of variables corresponding to the optimal dynamic response (Tr) and power (P) are resumed on table 6.

VariableFactorOptimal value in NEMRODWReal values before optimizationReal values after optimization
X1 K 1.00940.10.2
X2 Ld=Lq0.39760.416 mH0.216 mH
X3 Ts 1.0086300 μs500 μs
X4 E 1.0052300 V400 V
X5 R 1.00610.05 Ω0.08 Ω
X6 rm 0.993435

Table 6.

Optimal values of variables

The speed response shows the good dynamic suggested of our vehicle. The reference speed is attained in 4.65 second. The direct current is equal to zero in the permanent mode, the quadratic current present the image of the electromagnetic torque. The power is increased to reach 58 kW.


Figure 12.

Dynamic response of the vehicle speed after optimization

8. Conclusion

In this paper, we developed a VHDL-AMS description of a vehicle traction chain and we adopt the vector control Id=0 strategy to drive the designed PMSM. The simulation of the dynamic response of the vehicle shows the effectiveness of this mode of control and the PMSM in the field of the electric traction. The obtained result with Simplorer differs from that obtained with Matlab because we used more accurate models. We think that VHDL-AMS is more suitable to predict the electric vehicle behavior since it is a multidisciplinary HDL. We have shown that response surface analysis coupled with a carefully constructed experimental design is a useful tool to carry out an Optimal Simulation of the Control Strategy of an Electrical Vehicle.


1 - M. Jalalifar, A. F. Payam, S. Nezhad, H. Moghbeli, 2007Dynamic Modeling and Simulation of an Induction Motor with Adaptive Backstepping Design of an Input-Output Feedback Linearization Controller in Series Hybrid Electric Vehicle, Serbian Journal of Electrical Engineering, 42November 2007), 119132
2 - A. Feller, M. Stephan, 2009Modeling Germany’s Transition to the EV until 2040 in System Dynamics, Thesis, Vallendar, July 27, 2009.
3 - K. Jaber, A. Fakhfakh, R. Neji, 2010High Level Optimization of Electric Vehicle Power-Train with Doehlert Experimental Design, 11 th International Workshop on Symbolic and Numerical Methods, Modeling and Apllications to Circuit Design, Sm2ACD 2010, 908911978-1-42445-090-9Tunis-Gammarth, Tunisia, 2010.
4 - K. Jaber, Saleh. B. Ben, A. Fakhfakh, R. Neji, 2009Modeling and Simulation of electrical vehicle in VHDL-AMS, 16 th IEEE International Conference on, Electonics, Circuits, and Systems, ICECS 2009, 908911978-1-42445-090-9Yasmine Hammamet, Tunisia, 2009.
5 - T. E. Mc Dermott, R. Juchem, D. Devarajan, 2006Distribution Feeder and Induction Motor Modeling with VHDL-AMS. 2006 IEEE/PES T&D Conference and Exposition Proceedings, 2126May 2006, Dallas.
6 - A. Fakhfakh, S. Feki, Y. Hervé, A. Walha, N. Masmoudi, prototyping. Virtual, power. in, using. V. H. D. L. electronics-A, M. S. application, the. to, torque. direct, optimisation. J. control, Appl. Sci. 6, 2006572579
7 - S. Sadeghi, M. Mirsalim, 2010Dynamic Modeling and Simulation of a Switched Reluctance Motor in a Series Hybrid Electric Vehicle, International peer-reviewed scientific journal of Applied sciences, 71517117858860
8 - R. Dolecek, J. Novak, O. Cerny, 2009Traction Permanent Magnet Synchronous Motor Torque Control with Flux Weakening. Radioengineering, 184DECEMBER 2009.
9 - Salah. B. Ben, A. Moalla, S. Tounsi, R. Neji, F. Sellami, 2008Analytic Design of a Permanent Magnet Synchronous Motor Dedicated to EV Traction with a Wide Range of Speed Operation, International Review of Electrical Engineering (I.R.E.E.), 31110112
10 - M. El Ati-Hellal, F. Hellal, M. Dachraoui, A. Hedhili, 2009Optimization of Sn determination in macroalgae by microwaves digestion and transversely heated furnace atomic absorption spectrometry analysis. Canadian Journal of Analytical Sciences and Spectroscopy, 536
11 - J. Elek, D. Mangelings, F. Joó, V. Heyden, Y. , 2004Chemometric modelling of the catalytic Hydrogenation of bicarbonate to formate in aqueous Media, Reaction Kinetics and Catalysis Letters. 832321328
12 - A. Danion, C. Bordes, J. Disdier, J. Y. Gauvrit, C. Guillard, P. Lantéri, N. J. Renault, 2004Optimization of a single TiO2-coated optical fiber reactor using experimental design, Elsevier, Journal of Photochemistry and Photobiology A: Chemistry, 1683161167
13 - S. El Hajjaji, M. El Alaoui, P. Simon, A. Guenbour, Bachir. A. Ben, E. Puech-Costes, M. Maurette, T. , L. Aries, 2005Preparation and characterization of electrolytic alumina deposit on austenitic stainless steel. Science and Technology of Advanced Materials, 655195241468-6996