Modeling of An Electric Vehicle With MATLAB/Simulink: January 2019
Modeling of An Electric Vehicle With MATLAB/Simulink: January 2019
Modeling of An Electric Vehicle With MATLAB/Simulink: January 2019
net/publication/330092375
CITATIONS READS
0 3,777
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Hamit Solmaz on 09 January 2019.
1 Automotive Engineering Department, Faculty of Technology, Gazi University, Ankara, 06500, Turkey
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
Kiyakli and Solmaz/International Journal of Automotive Science and Technology 2 (4): 9-15, 2018
During driving, resistance forces act on the vehicles. Table 3. Road Surface and CD [8]
These resistance forces; Road Surface CR
Aerodynamic Resistance, Concrete or Asphalt 0.013
Tire Rolling Resistance, Small Gravel Ground 0.02
Gradient Resistance, Macadamized Road 0.025
Inertia Resistance. Soil Road 0.1-0.35
10
Kiyakli and Solmaz/International Journal of Automotive Science and Technology 2 (4): 9-15, 2018
Fig. 4.
Vehi-
cle Powertrain System
Fig. 5. WLTP Cycle
Fig. 6. NEDC Cycle
The transfer function of powertrain system was removed.
Relation of angular acceleration, torque and moment of in- 2.5 Regenerative Braking
ertia of a shaft;
When the moving vehicle slows down or goes downhill,
𝑑ꞷ 𝑀𝑛𝑒𝑡 the kinetic energy of the vehicle can be recovered by brak-
= (6)
𝑑𝑡 𝐽𝑡𝑜𝑡𝑎𝑙 ing the electric motor in the generator mode. During brak-
Utilizing this equation, the angular velocity of the elec- ing, the recovery of the energy due to the opposing elec-
tric motor is calculated. tromotive force is ensured. In this way, higher system ef-
ficiency and battery charge increase the range.
𝑀
(𝑀𝑚𝑜𝑡𝑜𝑟 .𝜂𝑚𝑜𝑡𝑜𝑟 )−( 𝑟𝑒𝑠 .𝜂𝑑𝑖𝑓𝑓 ) 3. Vehicle Modeling
𝑖𝑑𝑖𝑓𝑓
ꞷ𝑚𝑜𝑡𝑜𝑟 = ∫ ( 4 .𝐽𝑤ℎ𝑒𝑒𝑙 + 2 .𝐽𝑎𝑥𝑙𝑒 )
dt (7)
3.1 Electric Motor Model
(𝑖2
𝑑𝑖𝑓𝑓 .𝜂𝑑𝑖𝑓𝑓 )
After calculating the revolution of the electric motor, the out-
Net torque is obtained by subtracting the resistance put torque is obtained from the diagram. Torque and speed
torque value from the motor torque. information are input to the efficiency diagram. From this di-
2.4 Driving Cycle agram, the instant efficiency of the motor is obtained.
11
Kiyakli and Solmaz/International Journal of Automotive Science and Technology 2 (4): 9-15, 2018
The powertrain system transfer function obtained in the previous section was created in the MATLAB/Simulink program
in this section. Calculation of the angular velocity of the electric motor is provided. At this point the momentary torque and
efficiency of the electric motor is determined. The angular velocity of the motor is divided by the differential ratio. Then the
vehicle speed is obtained by multiplying by the radius of the wheel. By taking the integral of the vehicle speed, the distance
traveled by the vehicle is calculated. The derivation of the vehicle speed gives the acceleration of the vehicle.
Resistance force is multiplied by the radius of the wheel to obtain resistance torque. The resulting resistance torque is
sent to the vehicle dynamic model. When the vehicle is stationary, it is necessary to reset the negative forces from the
formula. For this reason, by adding the "Compare to Zero" block, no resistance forces are generated when the vehicle is
stationary.
The PID controller equals the vehicle speed to the cycle speed. The PID controller outputs between -1
and 1. Positions -1 to 0 indicate braking, 0 to 1 controls the gas pedal.
12
Kiyakli and Solmaz/International Journal of Automotive Science and Technology 2 (4): 9-15, 2018
In the vehicle model, it is designed to calculate the amount of energy consumed following the driving cycle. The amount
of energy consumed determines the charge state of the battery and the energy consumption values at 100 km.
The electric motor is braked with 30% gain when running in regenerative mode.
15