Project 2
Project 2
INITIAL SCRIPT:

Driver:
It contains a PI controller to get the accelerator and brake pedal signals depending upon the drive cycle requirements.

Controller:

This is the brains of the vehicle
It generates desired engine and motor torque signals, gear signals, which are fed to the powertrain.
State flow – Mode Selection

The chart has 4 states, namely Stop, Start, Drive and Regen Braking.
These states are indicated by a mode going from 0 to 3.
Eng_on represents whether the engine is on or off
Eng_thr and EM_thr are for the engine and EM throttle respectively
States
The first state indicates that the vehicle has stopped.
The second state indicates starting phase which is why only EM is used.
The third state is the driving state where the engine is on and the EM is off
The fourth state indicates regenerative braking where the engine throttle is o and the EM throttle is equivalent to the brake pedal signal.
Transitions
State 1 – 2
Acc>1 || SOC<SOC_min
For the starting phase if the accelerator signal is more than 1 or if the SOC has fallen below the minimum value
State 2 – 3
Eng_Spd>Eng_idle_spd
Between the starting and driving phase the transitions happens when the engine speed is greater than the engine speed at idle state.
State 3 - 4
Spd>6 && Brk>=2 && SOC<SOC_max ... && ClutchLockup>0
From driving to regenerative braking, if speed and brake signal are above certain values and SOC is less than its max value and the Clutch lock up is more than 0.
State 4 – 3
Spd<=5 || Brk<1 || SOC>=SOC_max ... || ClutchLockup==0
If any of the previous conditions are not met then the vehicle will go from regen braking to the driving state.
State 3-1
after(1,sec) && Spd<0.5 && SOC<SOC_min && Acc==0
Driving and stop condition, transition is indicated by checking the Speed values are below a certain threshold and the SOC value is less than its minimum and the acceleration is 0. This is checked after every second.
Engine Control Unit:

The idle speed controller keeps the speed above the idle speed and make sure that the engine is idling provided that the engine is on.
The accelerator pedal from the driver unit provides the throttle signal as an input.
It has two look up tables for maximum and minimum torque curves for various speed values.
The input to the tables is the engine speed. This input along with the throttle and idle speed controller signals are multiplied together to get the required engine torque.
Transmission control unit:

It uses state flow to determine gear shifting.
Velocity and throttle are taken as inputs and the gear used currently is given as an output
SHIFT LOGIC:

The Gear_state state block decides which gear to shift to using the UP and DOWN decision arrows.
The decision is done by the selection_state state block. Using the ComputeThreshold Simulink function it calculates the values of up_th and down_th which decide whether the gear state should be up or down.
Threshold Function;

Electric motor control unit:

Brake control unit:

The brake torque is calculated analytically and multiplying it with the brake signal, the magnitude of the brake torque which is required is generated.
The above three signals are connected to a bus, which is transferred to the powertrain block
Power Train model:

Engine:

The max and min torque curves act as upper and lower bounds for the engine torque signal which is given to the 2D look up table of fuel consumption. The look up table gives the fuel flow rate and the integrator gives the total fuel consumed until that point.
Electric motor:

CRank Hub:

Transmission:

The engine torque, transmission speed and the clutch lock up signal go into the torque converter.
The gear output signals are sent to the transmission gear ratio look up table.
The gear ratio is then multiplied with the transmission torque and transmission efficiency to get the transmission output torque.
The gear ratio is also multiplied with the transmission speed to get the transmission output speed.
Torque converter:

Differential:

The wheel speed is multiplied by the differential ratio to get the output speed
Transmission torque is further multiplied or divided by the differential efficiency depending on whether the torque is positive or negative respectively.
The output is the axle torque.
Wheels:

The brake torque is subtracted from the axle torque to get the net torque, which is then divided by the wheel radius to get the tractive force.
The velocity is divided by the wheel radius to get wheel speed.
vehicle dynamics:

The dynamic equation for calculating the road load is

This equation is represented using the various mathematical blocks, which after integrating gives us the velocity.
Estimates Storage System model:

The input to the subsystem is the Electric Power.
The outputs are the SOC and the power.
Subsystem ESS:

The pack current is calculated by dividing the power by the voltage.
The SOC estimation subsystem is used to calculate the SOC which is used as input to the terminal voltage subsystem.
The battery voltage multiplied by the pack current gives the power.
SOC estimation:

The pack current is integrated to get current in coulomb which is then divided by 3600 to get current in Ampere-hour.
This is divided by the max ampere hour capacity to get the current soc.
This after subtracting from the initial battery soc will give us the SOC value.
terminal voltage:

The pack current is divided by the no of parallel modules in the battery packs as the current in parallel is divided while the voltage remains the same. This gives us the current in one cell.
This current is connected to the control port of the switch block. The other two blocks are connected to the charging and discharging resistance look up tables. The criteria being, if the current is greater than zero than cell is discharging otherwise the cell is charging.
The input to the lookup tables is the SOC. The third lookup table gives us the open circuit voltage.
The switch block decides the internal resistance of the cell (R). This is multiplied by the current to get (IR). This when subtracted from the open circuit voltage gives us the battery pack voltage.
This battery pack voltage is divided but the no of modules in series to get the terminal voltage.
Post processin g script:
Results
Fuel Economy
UDDS
Project 1

Project2


The fuel economy numbers are greater for the conventional vehicle model than the P1 hybrid EV because of the implementation of the Electric motor and the P1 hybrid architecture.
HWFET
Project 1

Project 2


The fuel economy numbers are higher for highway driving as compared to urban city driving because of the lack of traffic which prevent any start stops.
Speeds
UDDS

HWFET

Speeds fluctuate more in urban drive cycle because of traffic intensity which causes the vehicle to start and stop at multiple places.
Engine characteristics
UDDS

HWFET

Power and torque for UDDS is more because of the drive cycle start stop nature as compared to HWFET.
Gear characteristics
UDDS


HWFET


The accelerator and brake pedals fluctuate a lot in UDDS cycle because of frequent start-stops.
HWFET operates mostly in 3- 4 gear whereas the UDDS varies all over the place.
Engine Operating Points
UDDS

HWFET

Motor Characteristics
UDDS

HWFET

The motor in P1 hybrid is used as engine crank which is why It is used more in urban cycle because of all the start-stops.
The motor is used only at the start of the highway cycle as it never brakes until the end of the cycle.
SOC, current and voltage
UDDS

HWFET

The pack current and voltage fluctuate more in UDDS because of start-stops as the vehicle goes to idle position and battery power is required to start the motor.
This happens once in HWFET at the start as there are no start stops.
Electric Motor Operating Points
UDDS

HWFET

end.