Professional Documents
Culture Documents
?
Typhoon HIL
Homogeneous Microgrid
Modeling for RT-HIL
Adventures in Software-to-Software Validation of Microgrid Models
http://ALSETLab.com , luigi.vanfretti@gmail.com
Overview
▪ Preliminaries
− Problem Statement
− Methodology OPAL-RT
▪ Conclusions
▪ Recommendations
2
9/10/2018
Motivation
3
9/10/2018
Problem Statement
5
9/10/2018
Background: HW Architectures
6
9/10/2018
Background: Development Tools
▪ HIL SCADA
▪ RT-LAB
7
9/10/2018
From
Opal-RT/MATLAB/Simulink OPAL-RT
To
Typhoon HIL ?
Typhoon HIL
8
9/10/2018
Experiment I : Single Machine Model System
Simulink Model
Typhoon Model
9
9/10/2018
Typhoon
Simulink/OPAL
Parameterization
9/10/2018
10
Governor Model (From Simulink to Typhoon)
Available Governor Model in Simulink Library
11
9/10/2018
Test Settings
12
9/10/2018
Comparison of Results
13
9/10/2018
From
Typhoon HIL Typhoon HIL
To ?
Opal-RT/MATLAB/Simulink
OPAL-RT
14
9/10/2018
Experiment II: Model Components
15
9/10/2018
Steady State Analysis
▪ Parametrization:
− All components’ parameters in Typhoon HIL are copied to the “similar” blocks in Simulink including
transmission lines resistor and inductor, active and reactive power load values, transformer inductors
and resistors.
▪ Solver Settings: Simulation step size is set to 4 microseconds in both platforms.
▪ Decoupling:
− Typhoon / Snubber-based Decoupling:
− Decoupling requires “snubber” capacitors - the simulation will have some numerical artifacts due to
these “artificial” RC dynamics.
− Opal-RT’s SSN-based Decoupling:
− The a state-space nodal solver (SSN) which allows decoupling of the cores, without the need of
snubbers. This is called “delay-free parallelization” **
− The SSN blocks are used to decouple the network in five coupling cores/SSN blocks which divide the
the whole microgrid into 6 subcircuits in both platforms
− However, in order to match the behavior of the Typhoon model, capacitors are added to the model in
Simulink.
▪ Steady State Analysis: Comparison
− Total active and reactive power injected from the main grid; voltages and angles at some buses will
− The source of difference is investigated ** H. Hooshyar, L. Vanfretti and C. Dufour, "Delay-free parallelization for real-time simulation of
a large active distribution grid model," IECON 2016 - 42nd Annual Conference of the IEEE
Industrial Electronics Society, Florence, 2016, pp. 6278-6284.
16
9/10/2018
Parameterization
Typhoon
OPAL
17
9/10/2018
Steady State Results
Bus number Voltage [V] Angle [degree] Voltage [V] Angle [degree]
18
9/10/2018
Source of Differences
▪ To identify the source of differences, a simple model is used: 3 ph. source to load.
▪ Parameters:
− Vsource = 480V, R=1 Ohm, L=0.001 Henry,
▪ For such a simple model, manual calculations are possible - expected answer:
− P = 201729 W, Q = 76050 VAr
▪ For comparison, the model is built to compare the results.
− Solver: Euler for discretization method, different time and execution steps.
▪ Both platforms deviate from the expected answer depending on the simulation
settings.
▪ In a larger system this may lead to a larger error - cumulative effect!
Simulation settings Typhoon HIL OPAL-RT
19
9/10/2018
Source of Differences (Ts vs. Execution step size)
▪ Typhoon has two time steps: One for signal processing and scopes (Ts) and for
model solver (exec_step).
▪ However, in Simulink these are assumed to be the same.
▪ In order to investigate the effect of two different step size for the whole model in
simulink one should use the “Rate Transition” block.
20
9/10/2018
Transient Response Analysis
21
9/10/2018
Fast Transient Response Analysis
▪ It can be seen that the OPAL-RT does not have the intense variation during the fast transient
response. In addition, the initial overshoot for OPAL-RT is lower.
▪ Fast transient response will be filtered for parameter estimation.
22
9/10/2018
Parameter Estimation
▪ In order to have the same transient response the “parameter estimation tool” (PET) in
MATLAB simulink is used.
▪ After four iterations it can be seen that the snubber resistance is the main source of
difference. The value is decreased from 795 ohms (Typhoon HIL default) to 47 ohms in order
to achieve the same results.
23
9/10/2018
Typhoon vs. OPAL-RT
▪ One advantage of Typhoon HIL against OPAL-RT modeling toolchain in Matlab/Simulink is that there is no
need to determine the initial conditions for complex blocks such as generators and motors.
▪ Simulink is highly sensitive to initial conditions and if they are not appropriately determined, it will result in
very erratic behavior. The machine initialization tool has to be used to determine the initial conditions of
Generators and other dynamic models in Simulink.
▪ For instance, in order to generate 500 kW and 100kVar with a synchronous machine, the initial condition
has to be calculated and applied as follows:
24
9/10/2018
Conclusions
25
9/10/2018
Recommendations
▪ Recommendation 2: Interoperability
26
9/10/2018
Acknowledgements
27
9/10/2018