Frequently Asked Question

Video: 4.4.2. Electric vehicle
Last Updated 3 years ago


Press "Ctrl + F" to find the keyword of your interest.

If you wish to have a direct link access to the video timestamps, please follow these instructions.

Found this video helpful? Why not take the whole HIL Specialist course? A Certificate is waiting for you for free at HIL Academy.

Would you or your organization benefit from having these videos narrated in your native language? Contact us and let us know if you wish to contribute.

TRANSCRIPT

00:00:03

In this lesson, we are going to review the electric vehicle example model.  

00:00:07

You will learn about the vehicle powertrain model, the powertrain control module or PCM,  

00:00:12

and mechanical load models. You will also learn about the modeling approach for the  

00:00:16

charging station which accounts for the needs of grid-to-vehicle and vehicle-to-grid operation  

00:00:21

modes. Both the charger and the EV are implemented using detailed power electronics models.  

00:00:27

First, let's navigate to the electric vehicle example using the Typhoon HIL Example Explorer. 

00:00:38

You can open this example by clicking the Open model button. For this demonstration we are going  

00:00:43

to use a Typhoon HIL404 device. The model consists of three parts: a grid and a residential load,  

00:00:49

a charging station, and an electric vehicle.The most interesting part is the electric  

00:00:55

vehicle subsystem. Let's see what's inside this subsystem. 

00:01:00

On the left side you can see the vehicle's battery,  

00:01:03

modeled here as a lithium-ion battery. 

00:01:07

From the battery properties window, you can define properties of the battery and also view  

00:01:12

the battery's discharge characteristics.This electric vehicle model also includes a  

00:01:17

two-level three-phase inverter, an LC filter, and an induction machine. The three-phase inverter is  

00:01:23

controlled using the internal modulator control type. For the induction machine,  

00:01:28

you can see that electrical and mechanical properties are defined on the component mask.  

00:01:32

The control algorithm used to drive this induction machine is field oriented control. You can see how  

00:01:38

this control algorithm is implemented by looking under the mask of the Control [SS1]subsystem. 

00:01:48

The controller used to drive the induction machine is implemented in signal processing.  

00:01:53

This controller is used to model mechanical  

00:01:55

processes within the electric vehicle which determine motor behavior. 

00:02:04

The input to the motor controller is the machine torque which is output from the induction motor  

00:02:09

component. The output of the controller is the reference speed for the induction machine.  

00:02:14

As you can see in this example, the signal processing library can be used  

00:02:18

to implement multi physics models. You can find more information about  

00:02:22

this mechanical model in the application note linked in the materials tab. 

00:02:28

In the charging station subsystem, you can see that charging station behavior  

00:02:33

is modeled using the battery inverter microgrid component.  

00:02:36

Unlike the EV powertrain model which was built from scratch, the battery inverter  

00:02:41

component comes as a ready-to-use component from the microgrid library. Looking inside the  

00:02:46

battery inverter component, you can see that the power stage comprises a detailed power  

00:02:50

electronics model and the controller includes grid forming and grid following modes. 

00:02:58

The power stage includes a DC link, a three-phase inverter, and an LC filter. Various voltage and  

00:03:04

current measurement components are placed at key locations throughout this subsystem. A controller  

00:03:09

used to drive the inverter model is also included in the battery inverter component. The DC side of  

00:03:15

the battery inverter is connected to the battery in the electric vehicle subsystem[AS2][SS3].  

00:03:20

Parameters for the battery inverter component are set on the component's mask. 

00:03:30

Using this and similar plug-and-play library components, you can significantly reduce model  

00:03:35

development time for system-level power electronics and microgrid applications.  

00:03:40

In the HIL for Microgrids course you will learn how to quickly build  

00:03:43

microgrid models using libraries of high-fidelity DER models. 

00:03:49

The last subsystem in this example is used to model the grid and a residential load. 

00:03:54

In the Grid and Residential Load subsystem, you can see a three-phase voltage source,  

00:03:58

a grid impedance, a contactor, and a residential load. The nominal power of this residential load  

00:04:05

is 20 kVA with power factor of 0.95 lagging.Now, let's compile and load this model. 

00:04:13

In this example, you will see the electric vehicle model used to simulate a driving mode  

00:04:17

where the induction machine behaves as a motor, a regenerative braking mode where the induction  

00:04:22

machine behaves as a generator, an EV charging mode where the charging station is charging  

00:04:27

the vehicle battery, a vehicle-to-grid mode where the vehicle battery provides support to the grid,  

00:04:32

and an uninterruptable power supply mode where the vehicle battery  

00:04:35

supplies power to the residential load.Now let's run the simulation on our HIL  

00:04:40

device. Open the dashboard and start the electric vehicle by clicking the Start_Stop button. 

00:04:48

You can see from the indicator LED that the electric vehicle is now on. Let's simulate  

00:04:53

accelerating by moving the speed reference slider to 70%. You can also see that a slider  

00:04:58

is included to simulating braking.With the speed reference at 70%,  

00:05:13

you can see that the speed and motor rpm have increased along with the total distance traveled.  

00:05:18

The bar graph at the bottom shows the battery state of charge. On the right side of the  

00:05:23

dashboard, you can see electrical torque, electrical power, and average consumption. 

00:05:29

In the Power/Torque Graphs subpanel, you can observe the electrical torque and  

00:05:32

active mechanical power operating points.Now let's move on to the second operating mode:  

00:05:38

regenerative braking. First, move the speed reference slider to 0%. 

00:05:40

In the case of regenerative breaking, the kinetic energy of the electric vehicle is used to charge  

00:05:45

the battery. You can see that with the new speed reference, the Typhoon ReGen LED is on  

00:05:50

indicating that regenerative braking is active. You can also see that the battery is charging. 

00:05:58

Before turning off the EV, use the breaking slider to set the speed to zero.  

00:06:02

Let's set the breaking to 100 %. 

00:06:08

After EV is stopped, turn off the EV by clicking the Start_Stop button again. 

00:06:15

The next operating mode is charging mode, where the battery is being charged through  

00:06:19

the charging station. First, turn off the EV by clicking the Start_Stop button again. To  

00:06:21

change operating modes, you can use the buttons in the Operating mode presets group.  

00:06:29

You can see the current operating mode indicated in the status group. To select  

00:06:33

charging mode, click the EV Charging button.In the DC fast charging station sub-panel, you can  

00:06:36

see more detailed setpoints and measurements for the charging station. The charging power  

00:06:41

is currently set to 150 kW. You can select the desired charging power Using the Pref slider. 

00:06:48

The next operating mode is vehicle-to-grid. Select this mode by clicking the Vehicle-to-grid button  

00:06:53

in the Operation mode presets group. You can see the new operating mode reflected in the  

00:06:58

status group. In this mode, the battery supports the grid by providing power.  

00:07:03

You can see that the battery is currently supplying 150 kW to the grid. You can also see  

00:07:09

that the battery is now discharging. The active power reference for grid support can be changed  

00:07:14

in the DC fast charging station subpanel.The last operating mode is uninterruptible power  

00:07:22

supply or UPS. In this operating mode, the EV battery will supply power to the residential load.  

00:07:28

The load in this example draws an apparent power of 20 kVA at a power factor of 0.95 lagging.  

00:07:35

You can see that, in this mode, the load is being supplied from the battery. You can also see that  

00:07:41

the battery is discharging.To disconnect the charger,  

00:07:44

click the Disconnect the charger button.In this lesson you learned more about the  

00:07:49

electric vehicle example model including microgrid library components and multi-physics simulation  

00:07:54

using the signal processing library. You also gained familiarity with the operation modes of  

00:08:00

the electric vehicle example model.Thank you for watching.

Please Wait!

Please wait... it will take a second!