Frequently Asked Question
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.
Hello and welcome back to the HIL for microgridsmodule!
In the previous lessons, you learned aboutmicrogrids in Typhoon HIL software.
In this lesson, you will see how microgridcomponents can be put into action by creating
a simple microgrid.
Your task in this lesson is to create themicrogrid shown here.
This simple microgrid consist of a PV PowerPlant, a Variable Load, a Battery ESS, and
The parameters of each microgrid componentare given here.
You can use these values to parametrize themicrogrid components.
Now let's go to the Schematic Editor and startbuilding this microgrid model.
For this exercise, you will use generic microgridcomponents.
The main advantages of generic componentsare ease of use, straight forward parametrization,
self-tuning capability, a constantly growingfeature set, and better-defined functionality
maps for integration of communication.
To begin, use the model initialization scriptto define all parameters that are given in
the problem definition.
Define variables for the voltage levels andthe frequency of the system.
Set Vprim to 2.4 kV, Vsec to 0.4 kV, and fto 50 Hz.
These are the basic parameters that all componentswill share.
Now insert a Grid generic component and GridUI component and connect them together.
With these components inserted, you are readyto configure the grid component.
As you can see, this component also has parametersfor Short Circuit power and Inductive power
Grid short circuit power is a function ofthe grid impedance value.
The grid inductive power factor representsthe power factor when the grid is short-circuited,
and can be calculated using the reactanceto resistance ratio, or X over R.
Values for these parameters are given in thepresentation slide we saw earlier.
Let's add them in the model initializationfunction.
With that, you have successfully parametrizedthe grid component.
Do the same for the PV Power Plant generic,Variable Load generic, and Battery ESS generic
All of these components are going to be connectedto the same bus.
As you can see here, all model parametershave been defined in the model initialization
The parameters from the model initializationscript are propagated to the DER components.
It is worth to noting that most DER componentshave a converter extras tab.
These parameters don't influence the powerstage of the model, only the control embedded
in the generic DER component.
Stable operation of the converter can be achievedby adjusting this parameter.
A transformer can optionally be included inall DER generic components.
Let's compile and load the model and createa new SCADA Panel.
In the handout materials, you can find a widgetlibrary.
This library consists of several predefinedwidgets for the DER generic components.
This library will help you to create a SCADApanel within a few minutes.
You can find more information about widgetlibraries in the tutorial linked in the Materials
Let's include this library.
To do this, add the path of the folder wherethe library is saved to you user libraries
Now you can update your libraries path byclicking Apply and Save, then reload your
At the bottom of the library dock, you willfind the Generic DER Widgets library.
To start, drag and drop the PV Power interface.
You now need to link the widget to the modelcomponent.
All predefined DER widgets are linked to dedicatedUI components in the model.
The PV Power interface sub-panel has now beenplaced in the SCADA panel and linked to the
Fill out your panel by doing the same withthe other interfaces.
You now have a fully populated SCADA panelfor your microgrid.
Let's run the simulation.
You can see that the Grid component suppliesthe load with around 90 kW of active power
and around 108 kVAR of reactive power.
Try changing the active and reactive powersetpoints of the load.
You can change the power setpoints insidethe Load Interface sub-panel by modifying
the entries in the Active and Reactive powertextboxes.
Set the Active power to 1 per unit and reactivepower to 0 per unit.
You can see that the load is supplied with450 kW of active power, which is the nominal
active power of the load.
The Load can be configured as None, quadratic,or Taylor series.
Active and reactive power consumption candepend on voltage and frequency variation.
You can find more information about Load configurationin the documentation linked in the Materials
For this example, use a simple load withoutany dependencies.
All of the Sub-panels can be configured toopen in windowed mode.
Open the sub-panels this way.
Now let's turn on the PV Power Plant.
The MCB status LED is currently indicatingthat the inverter is in the disabled state.
To enable the PV power plant, check the Enablecheckbox.
The LED is now indicating that the inverteris in the running state.
You can see that the inverter is running andthat the active and reactive power are limited
to 0.2 per unit.
Try increasing the limit of active power to1 per unit.
You can see how the active power rises tothe new active power setpoint.
The output power of the PV power plant isdirectly influenced by the irradiation and
Try moving the sliders for irradiation andtemperature.
You can see how active power changes in responseto different irradiances and temperatures.
Similar to the PV Power plant, the BatteryESS component has four LED indicators of the
Run the Battery ESS in grid following mode.
As you can see, in grid following mode theinverter follows the active and reactive power
The Battery ESS can operate in three differentoperation modes: grid following, droop, and
The droop characteristic can be defined inreal time using the frequency droop offset,
frequency droop coefficient, and voltage droopcoefficient.
These parameters define the droop curve.
There is also an option to enable grid codesin the Battery ESS component.
You can find more information about this inthe tutorial video linked in the materials
In this lesson, you learned how to createa simple microgrid model in 10 minutes.
The only thing missing is the microgrid controller.
In the next lesson, you will see a more functionalmicrogrid that consist of more DER components
and a microgrid controller model developedusing the Signal Processing toolbox.
Thank you for your attention.