1-s2.0-S0142061515000903-main
1-s2.0-S0142061515000903-main
1-s2.0-S0142061515000903-main
a r t i c l e i n f o a b s t r a c t
Article history: This paper presents a discussion about the optimum time step size and maximum simulation time in
Received 1 February 2015 EMTP-based programs. This is of particular importance for new users of EMTP-based programs, since
Accepted 16 February 2015 the user is responsible for setting up these parameters before running a simulation case. The selection
Available online 26 March 2015
of the time step size affects the precision of the simulation. The time step size depends on the maximum
frequency expected in the phenomena, which is normally unknown, a priori. The calculation of eigenval-
Keywords: ues from the state space matrix obtained from the EMTP conductance matrix and history terms algorithm
EMTP
formulation allows the exact ideal values for the optimal time step size and a maximum simulation time.
Time step size
Time constant
In comparison, a general and robust algorithm is also presented here based on all the input data given for
Eigenvalue the circuit under simulation. The proposed calculation process is based on single- or multi-phase uncou-
Computer modeling pled or coupled circuits, with lumped or distributed parameters. Simulations are given demonstrating the
Transients effectiveness of the proposed rules.
Ó 2015 Elsevier Ltd. All rights reserved.
http://dx.doi.org/10.1016/j.ijepes.2015.02.007
0142-0615/Ó 2015 Elsevier Ltd. All rights reserved.
J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32 25
users to minimize the simulation time without compromising the Ranges of time constants
accuracy of the results. In this case, the main focus of the study
can remain on the analysis of the transient system response, rather This paper develops an algorithm to estimate an adequate Dt
than on a trial and error approach to adjust the time step size and automatically from the circuit. In a first simple approach, we will
the maximum simulation time by running multiple simulations. assume that we have no knowledge of the way the circuit
Moreover, when multiple simulations cases are run through components are connected.
script-based files, and performed considering the variance of net- Here we ‘‘estimate’’ a minimum and maximum value for all the
work or control parameters, this technique seems to be promising R’s combined into a single parallel (minimum) or series branch
and particularly useful to capture the overall phenomena. (maximum); similarly for all the L’s and all the C’s, according to
In principle, it is well known for EMTP-based simulation that (7)–(12). For n R’s, L’s, or C’s we have:
the maximum frequency expected to be present in the simulation
1
(2) should be at least five times less than the Nyquist frequency (1). RMIN ¼ 1
ð7Þ
This provides a reasonable accuracy (error in the order of 3.31%) in R1
þ R12 þ þ R1n
the modeling of the discretized lumped electrical components 1
LMIN ¼ 1
ð8Þ
(inductor and capacitor) using the trapezoidal rule of integration L1
þ L12 þ þ L1n
[1,2]. This academic and well known rule (included here for
1
completeness) results in (3) for the calculation of a reasonable time C MIN ¼ 1
ð9Þ
C1
þ C12 þ þ C1n
step size Dt.
RMAX ¼ R1 þ R2 þ Rn ð10Þ
1
f Ny ¼ ð1Þ LMAX ¼ L1 þ L2 þ Ln ð11Þ
2 Dt
1 1 1 1 C MAX ¼ C 1 þ C 2 þ C n ð12Þ
f max ¼ f Ny ¼ ¼ ð2Þ
5 5 2Dt 10Dt Eqs. (7), (8) and (12) assume that each type of circuit compo-
1 T min
Dt ¼ ¼ ð3Þ nent is all connected in parallel whereas (9)–(11) assume that each
10f max 10 type of circuit component is all connected in series.
In terms of frequency content, Fig. 1 [3,19] illustrates the wide Correspondingly, we can estimate the maximum and minimum
speed of phenomena in electrical power systems. values for inductive or capacitive time constants (i.e., ðT L ÞMAX ;
A common practice for EMTP-based simulation is to always ðT L ÞMIN ; ðT C ÞMAX ; ðT C ÞMIN Þ and for the system natural modes of
adopt a time step size of oscillations (i.e., ðT N ÞMAX ; ðT N ÞMIN Þ.
For a circuit composed by a resistance and an inductance, its
Dt ¼ 50 ls ð4Þ
time constant can be calculated using the expression (13),
which then implies that:
L
TL ¼ ð13Þ
1 1MHz R
f Ny ¼ ¼ ¼ 10 kHz ð5Þ
2 50 ls 100 For a circuit composed of a resistance and a capacitance, the
1 1 1 1 time constant can be calculated using the expression (14),
f max ¼ f Ny ¼ ¼ ¼ 2 kHz ¼ 2 103 Hz ð6Þ
5 5 2Dt 10 50 ls
T C ¼ R:C ð14Þ
If one chooses, for example a Dt of 1 microsecond, even though
very small, it might not be adequate for example, when simulating For a circuit composed of an inductance and a capacitance, its
very high frequency transients in SF6 gas insulated substations. For natural oscillation time period is given by:
the very common Dt of 50 microseconds, only transients up to pffiffiffiffiffiffi
2 kHz will be properly simulated. T N ¼ 2p LC ð15Þ
Fig. 1. Typical frequency ranges for electromagnetic and electromechanical transient phenomena [3,19].
26 J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32
is only excited by a voltage step-function (DC source), as in this Branch Voltage v (2,1)
simple case, from (22) it results T 1 ! 1, which then is not 10
considered.
Once the time step limits have been calculated, it is now
possible to build a table (Table 1) with these limits organized in
ascending order, as in a vector (T).
Since the calculated time values in the previous analysis are 5
only the limits or boundaries, a practical approach would be to
voltage [V]
choose as the initial optimal time step size ðDtÞ one submultiple
of the smallest calculated time value in Table 1, and as the maxi-
mum simulation time ðt max Þ, a multiple of the biggest calculated
time value in Table 1.
Applying (23) and (24) to Table 1, the results (25) and (26) are 0
obtained.
1 1
Dt ¼ minðTÞ ¼ 25 ms ¼ 250 ls ð25Þ
100 100
t max ¼ 5 maxðTÞ ¼ 5 222 ms ¼ 1:11 s ð26Þ -5
0 0.2 0.4 0.6 0.8 1
time [s]
The effectiveness of this criterion can now be tested by simulat-
ing the circuit in an EMTP-based program and analyzing, for Fig. 4. Inductor voltage.
example, the voltage and current in all the elements (please, see
Figs. 3–5). Observe that, by using 1/100 of the minimum TÞ in
(25) (instead of 1/10 as usually calculated with (3)), the transient
response at t ¼ Dt for the voltage across the inductor (Fig. 4) is Branch Voltage v (1,0)
15
closest to the ideal analytical value (vL ðtÞ ¼ 10½V, for t ¼ 0þ ).
This is easily verified in the plotting of Fig. 4, and can also be veri-
voltage [V]
10
fied by zooming over the transient period. Moreover, the initial
estimate for tmax is sufficient to contain the full transient period
within the simulation window. This is relevant for engineering 5
ðT C ÞMIN 25 ms
ðT C ÞMAX 25 ms 0.02
ðT L ÞMIN 50 ms
ðT L ÞMAX 50 ms 0
ðT N ÞMIN 222 ms
ðT N ÞMAX 222 ms -0.02
0 0.2 0.4 0.6 0.8 1
time [s]
vL(t)
0.02 τ =500[µs]
0 Rs i(t) L
e(t) t=0[s] vC(t)
C
-0.02 t=20[ms]
0 0.2 0.4 0.6 0.8 1
time [s]
Fig. 3. Resistor voltage and current. Fig. 6. Transmission line terminated in a LC circuit with switching operation.
28 J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32
voltage [V]
cuit as an equivalent source impedance, where: eðtÞ ¼ 100; 000:
0
cosðxtÞ [V], f = 60 [Hz], Rs = 50 [X], Ls = 400 [mH], t close 1 ¼ 0 [s],
0 6 0 11
L ¼ 2:10 [H/m], C ¼ 1:25:10 [F/m], length = 100 [km], Zc = 400 -1
[X], s = 500 [ls], L = 100 [mH], C = 1 [lF], topen 2 ¼ 20 [ms].
From the circuit parameters, time values were calculated as -2
presented in Table 2. The integration step size (discrete time Dt) 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
and the maximum simulation time ðt max Þ were proposed by the time [s]
empiric algorithm using (27) and (28).
The computer simulation results for this case are presented in L4 Branch Current i(2,1)
1000
Figs. 7–10, illustrating the electromagnetic transients towards
the steady state period.
500
current [A]
1 1
Dt ¼ minðTÞ ¼ 50 ls ¼ 5 ls ð27Þ
10 10 0
Table 2
Calculated time values for the circuit of Fig. 6. -1
ðT C ÞMIN 50 ls 1 2 3 4 5 6 7 8 9 10
ðT C ÞMAX 50 ls time [s] -3
x 10
ðsÞMIN 500 ls
ðsÞMAX 500 ls
ðT L ÞMIN 1.60 ms L4 Branch Current i(2,1)
ðT N ÞMIN 1.7772 ms
ðT N ÞMAX 4.4429 ms 500
current [A]
ðT L ÞMAX 10 ms
ðT 1 ÞMIN 16.67 ms 0
ðT 1 ÞMAX 16.67 ms
-500
5
Nodal Voltage (2) 0 0.005 0.01 0.015 0.02 0.025
x 10
3
time [s]
5
x 10 C3 Branch Voltage v(1,0)
4
2
voltage [V]
-2
-4
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
time [s]
500
current [A]
-500
Fig. 13. Lightining stroke current in [kA] and discharge current in the surge arrester
at location 2 [22].
Fig. 12 shows the voltage in location 1 and 2, while Fig. 13
shows the lightning stroke current wave shape, and the discharge
current in the surge arrester.
Fig. 14 shows the voltage at the transformer terminal 4, and at
node 3. It can be seen that the overvoltage at the transformer
terminal (location 4) is somewhat higher ð722:4 kVÞ than at the
surge arrester (location 2) ð640:5 kVÞ, because of the cable connec-
tion in between.
The volt-time characteristic of the 220 kV insulator string at the
tower location 5 can also to be considered as explained in [22]. For
imax ¼ 8 kA there is no flashover across the insulator. For
imax ¼ 10 kA the overvoltage in 5 would have intersected the
volt-time characteristic, and a flashover to the tower would have
occurred.
All these results were simulated using a Dt ¼ 0:1 ls (the
minimum propagation time), and tmax ¼ 10 ls.
However, if for simplicity we ignore the surge arrester and the
volt-time characteristic that determines possible flashover to the
tower, and then apply the suggested algorithm for the calculation
of the optimal time step size and maximum simulation time, we
will find the range of calculated time values of Table 3, in
Fig. 14. Voltages in [kV] at the transformer terminal 4, and at node 3 [22].
ascending order.
30 J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32
Table 3 Physical meaning arises when also plotting all the curves.
Calculated time values for the circuit of Fig. 11. Nevertheless, a good engineering approach is to pay attention before
ðsÞMIN 0.1 ls in the modeling of the system, and all the simplifications made in
ðsÞMAX 1 ls the equivalent circuit for the phenomena under investigation.
ðT C ÞMIN 5 ls
ðT C ÞMAX 22 ls
Calculating continuous-time eigenvalues from the digital EMTP
formulation
By applying (23) and (24) to Table 3, the algorithm automati- Step-by-step eigenvalue analysis with EMTP discrete-time
cally assumes for this case that k1 ¼ 1=10, and k2 ¼ 5, resulting solutions is presented in [15,16]. Essentially, a discrete-time
in (29) and (30). state-space matrix is first calculated using (31), from which
1 1 discrete-time eigenvalues ðzi Þ and their respective eigenvectors
Dt ¼ minðTÞ ¼ 0:1 ls ¼ 0:01 ls ð29Þ ðv i Þ are calculated.
10 10
t max ¼ 5 maxðTÞ ¼ 5 22 ls ¼ 110 ls ð30Þ Based on (32)–(35) continuous-time eigenvalues ðki Þ are now
calculated using (36). As long as (31) does not change (e.g.,
A holistic and practical engineering comprehension of this case switching events cause changes in the conductance matrix ½GAA )
is possible by running the EMTP-based simulation considering the the continuous-time eigenvalues remain the same as in (36).
whole transient period, i.e. with t max ¼ 200 ls. Fig. 15 presents the Moreover, the continuous-time eigenvalues do not depend on
voltages at the stroke location, and at the transformer terminal the simulation time step size [6,7]. The equations relating the
(location 4), when not including the surge arrester, and running network topology and the EMTP conductance matrix [GAA] are
the simulation for this case with tmax ¼ 200 ls. given by:
When the maximum instantaneous values or peak values of h i
Ad ¼ ½K ^ þ ½g^½L½GAA 1 ½Lt ð31Þ
each nodal voltage are detected, as presented in Table 4, this
reveals that the maximum reached overvoltages (up to 1480 kV, h i 2
2
1
i.e. 1:48 MV in some nodes) occur as expected just at the beginning Ad ¼ ½I þ Ac ½I Ac ð32Þ
Dt Dt
of the lightning transient wave propagation. At the transformer h i
d
terminal (location 4), without surge arrester the overvoltage is A :v i ¼ zi :v i ð33Þ
c
1,168.61 [kV], whereas for the case with surge arrester, the A :v i ¼ ki :v i ð34Þ
overvoltage would be limited to 722.404 [kV], based on the EMTP 2
Dt
þ ki
modeling for this case.
zi ¼ 2 ð35Þ
Dt
ki
2
Dt
½zi 1
ki ¼ ð36Þ
½zi þ 1
where
h i
Ad = discrete-time state-space matrix;
h i
b = branch parameters according to branch nature, i.e.,
K
b kk ¼ þ1 for inductive branches, K
K b kk ¼ 1 for capacitive branches,
b b
K kk ¼ 0 for resistive branches, K jk ¼ K b kj ¼ 0;
½g^ = branch parameters for history current source calculation,
defined according to branch nature, i.e., g ^kk ¼ 2 D2Lt for inductive
2C
branches, g^kk ¼ 2 Dt for capacitive branches, g^kk ¼ 0 for resistive
branches, g ^jk ¼ g^kj ¼ 0;
½L = Graph connectivity or branch-node incidence matrix,
where for any branch connected between nodes k, and
m; v km ¼ þ1v k 1v m . Then the coefficients +1 and 1 are then
used to build ½L such that ½v km ¼ ½L ½v , where ½v km is the vector
of branch voltages, and ½v is the vector of nodal voltages;
Fig. 15. Voltages in [kV] at the stroke location, and at the transformer terminal 4,
½GAA = conductance matrix after partition to exclude nodes with
when not including the surge arrester, during the whole transient period.
voltage sources connected to;
½Lt = transpose of ½L;
Table 4 Dt = time step size;
Maximum nodal voltage magnitudes at the circuit of Fig. 11. ½I = unit matrix, where all elements are zero, except the
Node Maximum voltage with Maximum voltage without surge diagonals, which are equal to 1;
c
name surge arrester arrester (MV) A = continuous-time state-space matrix;
STROKE 1.48000 MV 1.48000 v i = eigenvector associated with the eigenvalue with index i;
NODE 5 1.48000 MV 1.48000 zi = discrete-time eigenvalue of index i;
NODE 3 638.333 kV 1.16509
ki = continuous-time eigenvalue of index i.
NODE 3 641.416 kV 1.16549
TOP The relevance of this formulation is that the dynamics of the
NODE 2 640.456 kV 1.16651 system can be determined for every event, and if desired, at every
NODE 4 722.404 kV 1.16861 instant of the simulation, as the topology changes by switches
NODE 1 648.637 kV 1.16329
operations, or as we change regions in non-linear elements.
NODE 1 651.179 kV 1.16370
LOW
Also, fast and slow subsystem areas can be identified for use
by multisystem programs, like MATE – Multi-Area Thévenin
J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32 31
Equivalent [23], Multi-level MATE [24], and Latency exploitation the network topology is also suggested. This algorithm does not
[25]. These techniques allow the use of different time-step sizes make the simplifications of the empirical method and has the
in each separate subsystem, with further resynchronization [26] potential of providing very accurate pre-determinations of the
at specific times, thus optimizing the overall solution in EMTP- optimum time step and solution times.
based off-line or real-time digital simulations [27]. User-independent determination of the simulation parameters is
The continuous-time eigenvalue calculation with (36) can also of particular importance for new users of EMTP-based programs.
be used to find the exact values for optimum time step size and Existing programs require the user to specify these parameters,
maximum simulation time. The eigenvalues calculated with this which can require extensive experience in performing transients
technique are exact. simulations. A future challenge will be the extension of these
Considering the branches associated with inductive and techniques to adapt the time step size dynamically in EMTP-based
capacitive components and with transmission lines, for each com- programs as the topology and parameters of the system change
plex continuous-time eigenvalue in (37), it is possible to calculate during the simulation.
the corresponding exact time constant as in (38), and the damped
oscillation period as in (39). Acknowledgement
ki ¼ ri jxdi ð37Þ
The authors gratefully acknowledge the financial support from
1 CAPES, CNPq, FAPEMIG (Brazil) and NSERC (Canada). An earlier
si ¼ ð38Þ
ri version of this paper was published at PSCC 2014 – 18th Power
2p Systems Computation Conference, August 18–22, 2014, Wroclaw,
Tndi ¼ ð39Þ
xdi Poland, organized by Power Systems Computation Conference
With these time values organized in ascending order in a vector and Wroclaw University of Technology.
(T), we can now derive the exact optimum time step size (23) and
the maximum simulation time (24) as in the simplified procedure References
first presented.
By applying (31)–(39) to the case of Fig. 2 results: [1] Dommel HW. Digital computer solution of electromagnetic transients in
single- and multiphase networks. IEEE Trans Power Apparatus Syst 1969;PAS-
k1 ¼ 10 þ j26:4575 ð40Þ 88:388–99.
[2] Dommel HW. Electromagnetic transients program reference manual.
k2 ¼ 10 j26:4575 ð41Þ Vancouver: Department of Electrical Engineering, The University of British
Columbia, Canada; 1996.
1
s1 ¼ s2 ¼ ¼ 100 ms ð42Þ [3] Greenwood A. Electrical transients in power systems. John Wiley & Sons; 1991.
10 [4] Microtran web site. <http://www.microtran.com/>.
2p [5] Alternative Transients Program (ATP) web site. <http://www.emtp.org/>.
Tnd1 ¼ Tnd2 ¼ ¼ 237:48 ms ð43Þ [6] EMTP-RV web site. <http://emtp.com/>.
26:2475 [7] PSCAD web site. <https://hvdc.ca/pscad/>.
1 1 [8] RTDS web site. <http://www.rtds.com/index/index.html>.
Dt ¼ minðTÞ ¼ 100 ms ¼ 1 ms ð44Þ
100 100 [9] OPAL-RT Technologies web site. <http://www.opal-rt.com/>.
[10] Cadence. Cadence PSpice A/D and advanced analysis. <http://www.
t max ¼ 5 maxðTÞ ¼ 5 237:48 ms ¼ 1:19 s ð45Þ cadence.com/products/orcad/pspice_simulation/pages/default.aspx>.
In this simple case, when comparing the result obtained by (25) [11] Intusoft. Solving SPICE convergence problems. <http://www.intusoft.com/
articles/converg.pdf>.
with the one obtained by (44) and also the result obtained by (26) [12] Barros FJ. Comparing synchronous and asynchronous variable step size explicit
with the one obtained by (45), one has to assess the additional ODE solvers: a simulation study. 21st International workshop on principles of
computational effort of performing the most accurate analysis with advanced and distributed simulation (PADS ’07); 2007. p. 32–7. http://dx.doi.
org/10.1109/PADS.2007.17.
that of the simplified analysis of Section ‘Ranges of time constants’.
[13] Martí JR, Lin J. Suppression of numerical oscillations in the EMTP. IEEE Trans
More complex cases have to be developed to further assess the Power Syst 1989;4(2):739–47.
validity of the proposed algorithms. [14] Lin J, Martí JR. Implementation of CDA procedure in the EMTP. IEEE Trans
Power Syst 1990;5(2):394–402.
The most important issue, however, is the emphasis on the
[15] Hollman JA. Step by step analysis with EMTP discrete time solutions. Ph.D.
learning process aiming to optimize the analysis of the transient thesis, The University of British Columbia, Vancouver; 2006.
simulation. If optimal time step size is not used, relevant phenom- [16] Hollman JA, Martí JR. Step-by-step eigenvalue analysis with EMTP discrete-
ena may not be represented in the simulation. time solutions. IEEE Trans Power Syst 2010;25(3):1220–31. ISSN: 0885-8950.
[17] de Siqueira JCG. Introduction to numerical analysis of linear electrical circuits
Moreover, if optimal maximum simulation time is not used, with time invariant lumped parameters. Federal School of Engineering of
overvoltages and or overcurrents which may arise along time Itajuba, Itajuba, MG; 1992. p. 99.
due to traveling wave and or resonance phenomena may not be [18] de Siqueira JCG, Bonatto BD, Martí JR, Hollman JA, Dommel HW. Optimum
time step size and maximum simulation time in EMTP-based programs. In:
properly considered in the engineering insulation study or PSCC 2014 – Power Systems Computation Conference, organized by Power
overcurrent protection coordination, eventually resulting in time, Systems Computation Conference and Wroclaw University of Technology,
equipment or system failures with technical, economic, environ- Wroclaw, Poland, August 18–22; 2014.
[19] Henschel S. Analysis of electromagnetic and electromechanical power system
mental or human losses. transients with dynamic phasors. Ph.D. thesis, University of British Columbia,
Vancouver, BC, Canada; 1999.
[20] Kundur P. Power system stability and control. New York: McGraw-Hill; 1994.
Conclusions [21] Bonatto BD, Dommel HW. EMTP modelling of control and power electronic
devices – electromagnetic transients programs helping the analysis of the
power interaction on either the load or the network side. LAP – Lambert
This paper has provided algorithms to automatically determine Academic Publishing AG & Co; 2010. 175p. ISBN: 978-3-8383-2790-7.
the time step size and the simulation length in EMTP-type of [22] Martí JR, Dommel HW. Line models for lightning studies. Transactions
programs. A simple empiric method was proposed to calculate an Engineering & Operation Division, Canadian Electrical Association, vol. 28;
1989.
estimate for the optimal time step size ðDtÞ and for the maximum
[23] Martí JR, Linares LR, Hollman JA, Moreira FA, OVNI: integrated software/
required simulation time ðt max Þ. This would help the user by e.g. hardware solution for real-time simulation of large power systems. In:
minimizing running time or providing a warning if an inappropri- Proceedings of the 14th power systems computation conference (PSCC02),
ate time-step has been set. Seville, Spain, June 24–28; 2002. <http://www.pscc02.org>.
[24] Armstrong ML, Marti JR, Linares LR, Kundur P. Multilevel MATE for efficient
A more exact algorithm, based on the determination of the cir- simultaneous solution of control systems and nonlinearities in the OVNI
cuit continuous time eigenvalues from the circuit parameters and simulator. IEEE Trans Power Syst 2006;21(3):1250–9.
32 J.C.G. de Siqueira et al. / Electrical Power and Energy Systems 72 (2015) 24–32
[25] Moreira FA, Martí JR. Latency techniques for time-domain power Computation Conference (PSCC02), Seville, Spain, June 24–28; 2002. <http://
system transients simulation. IEEE Trans Power Syst 2005;20 www.pscc02.org>.
(1):246–53. [27] Matar M, Iravani R. FPGA implementation of the power electronic converter
[26] Linares LR, Marti JR. A resynchronization algorithm for topological changes in model for real-time simulation of electromagnetic transients. IEEE Trans
real time fast transients simulation. In: Proceedings of the 14th Power Systems Power Delivery 2010;25(2):852–60.