Frequently Asked Question

Video: 5.5 Microgrid model optimization
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:01

Hello again and welcome!

00:00:03

In this lesson, we will look at microgridmodel optimization.

00:00:07

In the Application Examples module, we lookedat a fully functional terrestrial microgrid

00:00:13

model built using switching DER components.

00:00:16

That example also demonstrated the abilityof a microgrid controller to handle microgrid

00:00:20

islanding events, using either a diesel gensetor a battery energy storage system to form

00:00:25

the grid.

00:00:27

Now, in this lesson, we will look at thatsame terrestrial microgrid model rebuilt using

00:00:33

generic DER components.

00:00:36

By doing that, you can optimize the model'shardware utilization so that it can run on

00:00:40

HIL 4-series devices, even though the originalmodel was designed for 6-series devices.

00:00:46

In addition, we will maintain the same functionalitiesof the microgrid controller, while also exploring

00:00:52

some of the additional features of genericcomponents on a system level.

00:00:58

If you need a quick refresher on the DER componentslibrary, as well as the advantages and disadvantages

00:01:04

of the legacy and generic DER components,please refer back to the lessons in the Distributed

00:01:09

Energy Resources module.

00:01:14

Now let's open the model using Example Explorer.

00:01:17

Go to microgrid, microgrid example), terrestrialmicrogrid generic, and select the Terrestrial

00:01:27

microgrid example using generic components.

00:01:33

Let's open this example by clicking the "Openmodel" button.

00:01:42

As mentioned before, thanks to the use ofgeneric DER components, this microgrid model

00:01:47

can run on a 4-series device, while the modelwith switching DER components requires a 6-series

00:01:52

HIL device.

00:01:55

This is possible for two reasons.

00:01:57

First, the diesel genset generic componentused in this model does not require any machine

00:02:03

solver resources compared to its legacy counterpart.

00:02:06

Second, generic components utilize less resourcesfrom the standard processing cores, and you

00:02:11

can fit up to 3 DERs per core.

00:02:14

This particular model is divided in 3 SPCs,instead of the 4 SPCs used in the microgrid

00:02:20

model with switching components.

00:02:22

Therefore, if you look at the configurationtable for a HIL404 device, you can see that

00:02:27

any configuration from 1 to 5 could be used.

00:02:30

The predefined choice in this example is torun the model using HIL404 configuration 1.

00:02:39

Let's now check what are some of the differencesbetween this microgrid model and the model

00:02:42

with switching components.

00:02:46

First, remember that the generic DER componentshave embedded transformers that can be enabled

00:02:52

by checking the box "include transformer".

00:02:55

Therefore, the external three-phase transformersused in the switching model are no longer

00:03:00

needed.

00:03:02

Now, let's talk about the core coupling componentsused to divide the circuit into different

00:03:08

SPCs.

00:03:09

In this model, two TLM core couplings areused, embedded in the RL sections.

00:03:17

Compared to the ideal transformer-based corecouplings used in the switching model, the

00:03:22

TLM couplings have the advantage of beingsymmetrical, not introducing any topological

00:03:27

conflict in the model.

00:03:28

In addition, TLM couplings include their owninductance and capacitance, which is a useful

00:03:34

feature in microgrid models such as this one,where the RL sections are used to emulate

00:03:38

line impedances.

00:03:42

You can find more information about the differenttypes of core coupling in the Electrical circuit

00:03:46

partitioning lesson of the HIL Fundamentalscourse.

00:03:49

You can also check the IEEE33 bus system examplein the Example Explorer to better understand

00:03:55

how to model a power system using TLM couplings.

00:04:01

All functionalities of the microgrid controllerremain the same in comparison with the model

00:04:05

using switching components.

00:04:07

Nevertheless, some modifications had to bemade to adapt the interface of the controller

00:04:12

to the generic DER components.

00:04:14

This can be better seen if you look underthe mask of the DER's user interface subsystems.

00:04:19

Among the modifications in the controllerinterface, you can see that the reference

00:04:23

values for voltage, frequency, active power,and reactive power are now normalized, since

00:04:29

the inputs of the generic component's UI expectsvalues in PU.

00:04:37

In addition, it is important to point outthat, by default, the Diesel Genset and the

00:04:42

Battery ESS generic components can operatein three modes: grid-following, isochronous,

00:04:47

and droop.

00:04:48

This means that grid-forming mode can be engagedhere using the voltage and frequency droop

00:04:52

algorithms embedded in these generic components.

00:04:55

This is not possible with the switching componentmicrogrid model.

00:04:59

To take advantage of that, the logic of theBattery ESS User Interface was modified to

00:05:04

include operation in droop mode when the batteryis the grid-forming DER of choice.

00:05:09

We will see this in more detail when we runthe model and demonstrate microgrid operation.

00:05:14

To do so, let's compile and load the modelusing the fourth generation HIL404 device,

00:05:21

as mentioned before.

00:05:23

You can open the SCADA panel file found inthe model directory and run the simulation.

00:05:29

If you are running this simulation in VirtualHIL mode, you may notice that this model can

00:05:34

run close to real-time, which isn't the casewhen the switching DER component microgrid

00:05:39

model runs in Virtual HIL.

00:05:41

This is possible since generic componentsare signal processing-based components, which

00:05:45

can run on your computer's CPU much fasterthan the more complex switching components.

00:05:52

Let's explore this SCADA panel.

00:05:55

You can see that we have several group widgetsthat control different elements in the model.

00:05:59

On the top-left side, we have the microgridcontroller group.

00:06:03

Here, you can choose if the grid-forming DERwill be the battery inverter or the diesel

00:06:08

genset, change the operation mode from grid-tiedto islanded, enable the microgrid central

00:06:13

controller, turn on or off the interruptibleload, and enable or disable each one of the

00:06:18

DERs in the model.

00:06:19

You have also LEDs indicating the status andoperation modes.

00:06:26

For every DER, you have gauges in the panelroot displaying the most important information,

00:06:31

such as power, voltage, and frequency.

00:06:34

Also, you can access the DER interfaces usingthe corresponding sub-panels.

00:06:39

The same is true for the variable load interface.

00:06:45

If you enter in the battery interface, forinstance, you can control the references for

00:06:49

different operation modes, droop coefficients,limits for the state of charge, protection

00:06:55

limits, grid codes, and so on.

00:07:00

Let's begin with the scenario where all DERs,the interruptible load, and the variable load

00:07:05

are disabled, just as we did in the switchingDER microgrid lesson.

00:07:09

The utility grid is now supplying the constantimpedance load.

00:07:13

As you can see in the Point of Common Couplingmonitor, the active power from the grid in

00:07:17

this condition is around 660 kW, while thereactive power is around 80 kVA.

00:07:24

If you compare these values to the ones obtainedwith the microgrid model using switching DER

00:07:29

components, you will notice that the powersupplied by the utility grid is lower.

00:07:33

This happens mainly because this model usesthe transformers embedded in the DERs, which

00:07:38

does not include the same losses associatedwith external transformers.

00:07:45

Let's now enable the variable load with anactive power reference of 50%, which is equivalent

00:07:50

to 225 kW.

00:07:53

To compensate this load increase, you cansee now that the power supplied from the grid

00:07:57

increases to around 890 kW.

00:08:02

You can now turn on the battery inverter,which is set by default in the interface with

00:08:06

an active power reference of 200 kW.

00:08:10

As mentioned before, the microgrid centralcontroller in this model sets the battery

00:08:14

energy storage system to operate in droopmode if the battery is the grid-forming DER

00:08:19

of choice.

00:08:20

Therefore, besides providing the requiredpower reference, the battery also provides

00:08:24

reactive power in order to regulate the terminalvoltage.

00:08:31

Let's enable the other three DERs.

00:08:33

The wind power plant is set to inject itsnominal power into the microgrid, (wait 1

00:08:38

sec) the PV power plant is set with a curtailmentof 50%, (wait 1 sec) and the diesel genset

00:08:44

is set to operate in grid following mode witha power reference of about 600 kW.

00:08:50

Once all DERs are running, we can see thatthe microgrid is injecting around 480 kW into

00:08:55

the utility grid.

00:08:58

Now, by changing the appropriate combo boxin the microgrid controller group, you can

00:09:04

test intentional islanding events in differentconditions.

00:09:08

Remember that, according to the microgridcontroller logic, the active and reactive

00:09:12

power flowing through the PCC is first zeroedand then the intentional islanding is enabled.

00:09:18

This can be seen in the active and reactivepower offsets graphs.

00:09:24

Let's do this test choosing the battery inverteras the grid-forming DER.

00:09:30

The microgrid is now in islanded mode, disconnectedfrom the utility.

00:09:34

The Battery energy storage system is formingthe grid and is operating in droop mode, according

00:09:39

to the logic programed in the micro controller.

00:09:45

Let's change the operation back to grid-tiedmode.

00:09:48

Notice that now the operation mode of thebattery changes from droop to isochronous

00:09:52

mode.

00:09:53

This is done to take advantage of the PCCmonitor synch check, which provides the voltage

00:09:57

and frequency references to synchronize themicrogrid with the utility grid.

00:10:02

Once the phasors of the voltages are aligned,as shown in the PCC monitor, the microgrid

00:10:07

is reconnected to the utility grid.

00:10:10

Notice that after being re-connected to thegrid, the battery switches back to droop mode,

00:10:14

as it was operating before the islanding.

00:10:19

Another possibility for the intentional islandingtest is to choose the Diesel genset as the

00:10:24

grid-forming DER.

00:10:26

When doing that, according to the microgridcontroller logic, the operation mode of the

00:10:31

battery changes to grid following, injectingpower according to the references set in the

00:10:35

interface.

00:10:39

Let's run the intentional islanding test,but with the diesel genset forming the grid.

00:10:46

You can once again see the power offsets,which now present slower dynamic responses

00:10:51

when compared to the battery, which is expected.

00:10:56

When running this model, you can see thatCPU utilization is always satisfactory.

00:11:01

The same would be true if you chose to runit on a HIL606 device.

00:11:06

In fact, you could include more DERs on aHIL606 then on a HIL404 given the larger number

00:11:11

of SPCs available.

00:11:17

If you try to run this model on HIL402 or604 devices, you will notice that it can be

00:11:22

compiled, as long as you go to the signalprocessing settings and set the code and data

00:11:26

sections to be placed in the external memory.

00:11:29

However, since generic components utilizesignal processing heavily, they require more

00:11:34

resources from the user CPU than the switchingcomponents.

00:11:38

Therefore, although this model successfullycompiles on these devices, when running the

00:11:43

simulation, you would experience the riseof the CIO flag in the SCADA panel, indicating

00:11:47

that the signal processing computation timeexceeded the allocated time slot.

00:11:52

When you are building your own model, oneof the ways to overcome this is by increasing

00:11:56

the execution rate of the signal processingcomponents.

00:12:00

This was not done here in order to keep theexact same microgrid controller and execution

00:12:04

rates as in the switching model.

00:12:07

Finally, it is worth mentioning that you canalso choose to build your microgrid model

00:12:13

using average DER components.

00:12:16

This would allow you to fit a microgrid modelsimilar to the one presented here on a 4 series

00:12:20

device using 3 cores, while having unlockedDER components that can be modified as you

00:12:25

wish, as is the case of the model using switchingcomponents.

00:12:29

Of course, choosing which type of componentto use when building your microgrid model

00:12:33

depends on the objectives and requirementsof your simulation, as well as on the hardware

00:12:37

resources that you have available.

00:12:40

That is all for this lesson.

00:12:42

Make sure to try this model in our ExamplesExplorer.

00:12:45

Thank you for your attention.

Please Wait!

Please wait... it will take a second!