You are on page 1of 15

Electrical Power and Energy Systems 109 (2019) 480–494

Contents lists available at ScienceDirect

Electrical Power and Energy Systems


journal homepage: www.elsevier.com/locate/ijepes

Reduced-sample numerical Laplace transform for transient and steady-state T


simulations: Application to networks involving power electronic converters
Abner Ramireza, , German Combarizab

a
Electrical Engineering Department, CINVESTAV-Guadalajara, Guadalajara, Mexico
b
Faculty of Sciences, Pontificia Universidad Javeriana, Bogotá, Colombia

ARTICLE INFO ABSTRACT

Keywords: This paper further contributes to application of frequency-domain (FD) techniques in the analysis of modern
Frequency domain analysis power networks. It specifically presents a truncated-in-samples numerical Laplace transform (NLT) approach to
Laplace transform calculate transient and steady-state of switched networks via a frequency-selective scheme. The FD samples
Transient analysis selection is performed via magnitude truncation of an arbitrarily chosen solution spectrum. Truncation error
analysis is presented and resultant Gibbs phenomenon, inherited by truncation, is alleviated via local and global
data windows. The proposed approach avoids dimensions explosion by traditional harmonic domain (HD) based
methods and offers computational savings compared to full-sample NLT simulations. Therefore, it becomes at-
tractive for multiple runs applications, such as capacitor switching, among others. The proposed methodology is
verified via case studies involving switching devices.

1. Introduction when several switching devices are part of the network under study.
A robust and accurate FD method widely used in the simulation of
Frequency-domain (FD) based techniques represent effective alter- electromagnetic transients of power networks is the numerical Laplace
natives to time-domain (TD) based methods for the simulation and transform (NLT) which comes from early research works in the 1960s (a
analysis of electrical networks. Despite some current limitations, such comprehensive review and list of references can be found in [9]).
as real time simulation implementation, FD techniques exhibit high Moreover, as the numerical formulation of the NLT has as its basis the
accuracy for frequency-dependent networks at the low cost of evalu- discrete Fourier transform (DFT), it can also be applied for stationary
ating algebraic equations only. FD methods can be utilized to verify simulations in a straightforward manner [10].
transmission line models without confronting passivity and high re- To date, there are two open questions in practical implementation of
sidue/pole ratio issues, time delay identification, and more than that, the NLT technique: a) the number of samples to achieve an optimum TD
they provide accurate results for both underground cables and overhead visualization of the phenomenon under study and b) the separation
lines [1–3]. FD methods have also been successfully applied to other from the imaginary axis (known as damping term or convergence
power components, such as transformers and motors [4,5]. Ad- factor) for the inverse Laplace integral to exist. It is not rare that a large
ditionally, computation of stationary state for switched networks be- number of samples (tied to a long observation time) is used for a clear
comes straightforward through FD techniques while TD methods re- visualization of the phenomenon. For example, simulation window
quire either acceleration techniques or large simulation time-window lengths of 16 fundamental power frequency cycles and 4096 samples
tied to small time-step, especially for poorly damped systems. are common in capacitor switching transients [11]. Moreover, in those
Among FD techniques, harmonic domain (HD) based methods are types of transients, determination of worst-switching-instant requires
mature mathematical tools for both transient and steady-state simula- an increased number of simulation runs, over 100 runs according to
tions including multiple discrete frequencies [6–8]. HD techniques [11,12]. Nonuniform (exponential) and adaptive sampling have been
structure Fourier series coefficients of periodic variables as matrix/ proposed in [13] and [14], respectively. Although exponential and
vector relations and are able to include interharmonics [8]. A major adaptive sampling can achieve computational savings, these techniques
drawback of traditional HD-based techniques is dimensions explosion are not directly applicable to cases where the behavior of transient
when a large number of harmonics/interharmonics is involved and/or phenomenon is unknown, e.g., multiple switching maneuvers, networks


Corresponding author.
E-mail addresses: abner.ramirez@cinvestav.mx (A. Ramirez), germancombariza@javeriana.edu.co (G. Combariza).

https://doi.org/10.1016/j.ijepes.2019.02.036
Received 16 November 2018; Received in revised form 12 February 2019; Accepted 20 February 2019
0142-0615/ © 2019 Published by Elsevier Ltd.
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

with distinct power electronic converters, among others. Regarding the of DFT and NLT. Section 4 presents three case studies to verify the
value of the damping term involved in the inverse NLT, two heuristic proposed approaches. Some discussions are included in Section 5. Fi-
proposals by Wedepohl and Wilcox are widely utilized [15,16]. nally, the paper is concluded in Section 6.
Due to truncation of the inverse Laplace transform integral, the
phenomenon of Gibbs come into play manifesting as numerical oscil-
2. Basic theory of NLT and DFT
lations. This phenomenon is alleviated by application of data windows
to the truncated FD spectrum [9]. To eliminate Gibbs phenomenon, the
This Section presents only the basic expressions of the NLT and DFT
research work in [17] proposes to identify a time window and max-
utilized in this paper; further details can be found in [9].
imum frequency involved in the transient via a pre-processing proce-
The Laplace transform pair, given by (1), relates a transient wave-
dure. The first part of the methodology in [17] consists of identifying
form f(t) and its FD image F(s) [19].
the largest time constant of the system under study. Then, the total time
window is set as the pre-defined observation time for the transient st dt ,
F (s ) = f (t ) e (1a)
phenomenon plus seven times the largest time constant of the system. 0
The second part of the methodology in [17] identifies poles of the
system to define the width of the frequency window. The proposal in f (t ) =
1 c+j
F (s ) e st ds,
[17] indeed eliminates Gibbs oscillations. However, this implies a very 2 j c j (1b)
large time window and many samples to achieve such task. For ex-
ample, the results in Fig. 10 of [17] are obtained with a time window where s = c + j corresponds to the complex frequency with ω being
more than 20 times larger than the window under interest. Conse- the angular frequency (in rad/s). The damping term c is a positive real
quently, this implies a very large number of samples, i.e., 20,600 constant which is part of the Bromwich contour of integration; c re-
samples for that specific simulation. It should be mentioned at this presents separation from the imaginary axis of such contour [20]. Note
point that our proposal is aimed at reduced-sample NLT models. that the Bromwich contour must be located within the region of con-
This paper puts forward the research in [18] where a truncated NLT vergence and must enclose all singularities of F(s) to assure existence of
is employed to simulate electrical networks involving switched devices. f(t) in (1b). Alternatively, the inverse Laplace transform (1b) can be
In [18], the truncated FD solution variable requires relocating the expressed as
Bromwich integration path via a new damping factor, which is calcu-
e ct +
lated aided by a rational fitting software. f (t ) = F (s ) e j t d ,
(2)
2
In this paper, a truncated-in-samples DFT is utilized to compute
steady-state of electrical networks. FD solution variables are calculated From (1) and (2), one can deduce that the Laplace transform is
with a number of samples based on dominant switching frequencies of equivalent to the Fourier transform of the damped signal e ct f (t ) [19].
power converters involved in the network. Then, Parseval’s theorem is Assuming that f(t) is a real-valued and causal function, then F(jω) is a
utilized to predict a TD error bound based on the truncated FD solution conjugate (denoted by *) symmetric function with F(−jω) = F*(jω) and
variable. (2) can be written as [21]
As for transient simulation, a truncated-in-samples NLT is proposed
based on magnitude of an arbitrarily chosen full-sample FD solution e ct +
f (t ) = Re F (s ) e j t d .
spectrum. As truncation of the FD spectrum may introduce loss of 0 (3)
continuity within the frequency band under interest, due to trimming of
resonance peaks, Gibbs phenomenon appears in the TD waveform with For practical numerical implementations, (3) is discretized in time
frequencies of oscillations corresponding to trimming locations. This is and frequency, as given by
addressed in this paper by introducing local Hanning-type data win- N 1
dows at appropriate frequencies; this with minimum impact in the in- e cn t 1 2 jkn / N
fn = Re Fk ke , n = 0, 1, , N 1,
crease of computational resources. It is demonstrated in this paper that t N k=0 (4)
computing a new damping factor [18] via a rational fitting software is
not needed as the use of a fraction of Wedepohl’s criterion substantially where σk denotes a data window for diminishing Gibbs oscillation
diminishes Gibbs oscillations before applying local data windows to phenomenon. Regular sampling is adopted in this paper as results in
truncated FD spectrum. Error analysis is also presented in this paper for better density of samples than odd discretization, noting that modeling
transient simulations. Note that error analysis and Gibbs phenomenon of power electronic devices benefit from such finer discretization. The
of truncated FD spectrum are not addressed in [18]. time and frequency discretization variables are respectively given by
In the proposed methodology, computational effort in obtaining the t = T /N , (5a)
full-sample FD solution variable is kept at minimum by using chain
matrix concept. Note that, cpu-time when solving full- or reduced-
= 2 /N = 2 /T , (5b)
sample models has no major impact on a single simulation case study.
However, when multiple runs are required for assessing worst-case where N represents number of samples, T is the observation time,
scenario, e.g., capacitor switching, hundreds of simulations sub- and Ω denotes the maximum angular frequency. As for stationary state
stantially will affect computational resources. In addition, some studies computations, the modified version of (4) becomes the DFT, as ex-
require steady-state initialization, which becomes a major issue when pressed here by [22]
simulating a lightly damped network. It is shown in the paper that
N 1
steady-state, aimed at initialization, can be achieved efficiently with 1
fn = Fk e 2 jkn / N , n = 0, 1, , N 1,
few samples by the proposed approach. The proposed methodology can N k=0 (6)
potentially be applied to obtain reduced-sample models that sub-
stantially reduce computational burden in cases that require large It is noted that in practical NLT implementation, the same algorithm
number of runs [11,12]. can be used for both transient, as given by (4), and steady-state simu-
The rest of the paper is organized as follows. Section 2 describes the lations, as given by (6). As for the latter, setting t = 1 and c = 10−6 in
basics of the NLT and DFT. Section 3 is dedicated to truncation analysis (4) suffices to become (6).

481
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

Fig. 1. Illustration of sample truncation for an arbitrary FD spectrum.

3. Truncated DFT and NLT left-hand side of (8). As this paper is primarily focused on power net-
works involving switched devices, the truncation procedure can be
3.1. Truncation summarized by the next steps, assuming that a number of P power
electronic converters are involved in the network.
The main justification underlying sample truncation is that com-
monly there exists a broad range of magnitudes in FD spectra of elec- Step 1. Decide, based on the fundamental power frequency, the
trical power networks, some of them very small. For example, trans- number of frequencies Nr,AC to be considered for the AC network.
mission systems exhibit a set of natural resonance peaks in their Step 2. Compute FD spectra of switching functions for all P power
spectra; this is more accentuated when having power converters in- electronic converters and set threshold line to a percentage of the
volved in the network. As for power converters, mostly switching fre- maximum magnitude of computed spectra. Keep Nr,i samples for
quency, its multiples, and their neighboring frequencies exhibit major each FD spectrum, with Nr,i < N and i = 1,…, P.
impact on voltage/current waveforms in the electrical network. This Step 3. Build the reduced-sample FD spectrum with the chosen
type of reasoning is successfully applied in [23]. samples, i.e., {Nr,AC, Nr,1, Nr,2, …, Nr,P}. Use chain matrix concept to
Truncation of a FD solution variable is illustrated in Fig. 1, where a keep computational resources at minimum. This step yields Fr(ω).
threshold line is set as truncation criterion. Fig. 1 shows that frequency Step 4. Compute left-hand side of (8). This corresponds to the ex-
samples exhibit distinct power densities; some of them can be con- pected TD error.
sidered as negligible according to the pre-defined threshold line. Note Step 5. Transform Fr(ω), with zero-padding, to TD yielding fr(t).
that the spectra in Fig. 1 are actual sets of complex-valued samples and Step 6. If desirable, compute right-hand-side of (8) to corroborate
not continuous lines. TD error.

3.2. Truncated DFT Regarding step 4, as fair approximation of full-sample F(ω), as given
by (8), we propose to use the FD spectra provided only by the set of
DFT has been conceived as a mathematical tool for periodic wave- power converters. This avoids computing the N-sample spectrum for the
form analysis; frequency selection is performed in a straightforward complete network, speeding up computations. In the outlined proce-
manner. A feature of truncated DFT is that it directly provides fre- dure, transformations between TD and FD variables are efficiently
quencies having major contribution to the solution variable. Contrary performed by the fft/ifft Matlab built-in functions.
to HD-based techniques, truncated DFT does not exhibit dimensions
issues, especially for cases when switching devices are involved. 3.3. Truncated NLT
Moreover, an error bound for truncated DFT can be readily derived.
According to Parseval’s theorem [22]: Truncation of a FD spectrum for dynamic studies requires further
mathematical considerations, as described next.
N 1 N 1
1 Let us first assume that F(s) has no poles on the right-half s-plane.
|fn |2 = |Fk |2 .
n=0
N k=0 (7) Existence of the integral in (1b) requires an integration path, i.e.,
Bromwich contour, that must be located within the region of con-
Based on (7), it is straightforward to derive the truncation error vergence and must enclose all singularities (poles) of F(s) [20]. In other
relation (note that the 1/N term cancels out) as words, it is required that the Bromwich contour encloses the left-half s-
plane, requiring an appropriate (positive) damping factor c which re-
||F ( ) Fr ( )||/||F ( )|| = ||f (t ) fr (t )||/||f (t )||, (8)
presents separation of the imaginary axis for such integration path. At
where subscript r denotes reduced-sample variable. Note that, with first sight, one can choose a very small c assuring all poles are enclosed;
some abuse of notation, all variables in (8) represent vectors of discrete however, when c tends to zero, the NLT converges to the DFT providing
variables, as dictated by (6). steady state (no dynamics). On the other hand, Gibbs oscillations in the
Expression (8) concludes that the expected error in the periodic truncated version of (2) can be amplified if c is chosen very large
waveform fr(t) is directly related to the FD truncation error given by the [15–16,24–25]. As for the corresponding numerical inversion of the

482
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

Laplace transform, given by (4), some empirical formulas have been EFD = ||F (s ) Fr (s )||/||F (s )||, (10)
proposed for c. These are: (i) ct 1 [24], (ii) c = ln(N )/ T [15], and (iii)
In practical implementation, we just complete the missing samples
c=2 [16]. As a note, c = ln(N 2 )/ T has been extensively used in
in spectrum Fr(s) to obtain F(s). Hence, (9) and (10) provide TD and FD
existent literature without justifying the N-squared term. Nonetheless,
error characterizations, respectively.
such formula has proved to be accurate for the majority of applications
of NLT [9]. It is shown in Appendix A that c = ln( )/ T with ε = 0.001,
3.5. Gibbs phenomenon in truncated NLT
as derived in Prof. Wedepohl’s course notes [25], provides c smaller
than c = ln(N 2 )/ T , thus amplifying in less extent Gibbs phenomenon. In
Numerical evaluation of (1b) involves considering finite integral
fact, it is also demonstrated in Appendix A that a fraction 1/k of its
limits up to a maximum frequency. This truncation manifests as ringing
value, i.e., c = ln( )/ T / k , substantially diminishes Gibbs oscillations
phenomenon appearing in f(t) known as Gibbs oscillations; such oscil-
even for full-sample FD spectra.
lations have period of To = 2 / [9]. In practical implementation of
A main objective of this paper is to obtain sample-reduced fre-
NLT, as given by (4), Gibbs phenomenon is alleviated by application of
quency spectrum Fr(s) by applying a truncation threshold to the full-
a data window σ. This paper adopts Hanning’s data window, as in (11),
sample spectrum F(s). The truncated spectrum Fr(s) is converted to TD
due to its demonstrated high effectiveness [9]. Besides Gibbs oscilla-
by applying appropriate local data windows to diminish Gibbs oscilla-
tions due to finite maximum frequency, application of threshold line
tions. Considering that FD reduced spectra of switched devices have
provokes internal truncations, as seen in Fig. 2, manifesting also as
been computed as in step 2 of Section 3.2, the NLT reduction process
Gibbs oscillations in fr(t). This issue is addressed in this paper by ap-
can be summarized as follows.
plication of local data windows. For the sake of illustration, Fig. 2 de-
picts data windows σ, σ1, and σ2 (labeled sigma, sigma1, and sigma2,
Step 1. Compute the solution variable F(s) by utilizing the complex
respectively) for the specific signals presented therein. Based on (11),
frequency s = c + j with N samples and with c defined by
the two local data windows are calculated with (12).
c = ln( )/ T / k with ε = 0.001 (k = 2 is suggested in the study pre-
sented in Appendix A). sigma = [1 + cos( / )]/2, (11)
Step 2. Set threshold line to a percentage of the maximum magni-
tude of F(s). Keeping Nr samples yields spectrum Fr(s), with Nr < N. sigma1 = [1 + cos( / 1)]/2, (12a)
Step 3. Identify frequency ranges when trimming and generate sigma2 = [1 + cos(2 ( ( 2 + 3)/2)/( 3 2))]/2, (12b)
corresponding local data windows (see Section 3.5).
Step 4. Transform Fr(s), with zero-padding, to TD yielding fr(t). where Ω1 represents the first angular frequency where first trimming
occurs in Fig. 2; Ω2 and Ω3 correspond to angular frequencies result of
Note that the procedure above applies to any FD full-sample solu- trimming the spike seen in Fig. 2.
tion variable of the network under study. The reduced-sample FD model Generalization of (12b) is straightforward for any truncation band
can then interfaced to other models either in FD or in TD, as illustrated within the total bandwidth of the signal. Moreover, practical im-
in subsequent sections. plementation of (12b) requires minimum computational resources as
indices of truncated signal are available after applying threshold line.
3.4. Error characterization for truncated NLT
4. Examples
Similar to truncated DFT, we first define the TD error between full-
sample and reduced-sample responses as This Section presents three case studies to corroborate the proposed
approach applied to steady-state and transient analysis. The algorithms
eTD = ||f (t ) fr (t )||/||f (t )||, (9)
are developed under Matlab® environment using an i7-2670QM
where f(t) and fr(t) are the TD images of F(s) and Fr(s), respectively. 2.2 GHz processor, 8 GB of RAM, and OS of 64 bits. All presented results
In FD, (9) becomes have been verified with the PSCAD/EMTDC software tool (for clarity of

Fig. 2. Data windows to alleviate Gibbs phenomenon of truncated FD spectrum.

483
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

R pv L s2 R fc L fc R fg L fg Rg Lg
iL (t ) sa1 sb1 i fc (t ) Rd i pcc (t )
vdc (t )
C pv v pv (t ) s1 vc (t ) C v pcc (t ) vac (t )
Cf vcf (t )
sa 2 sb 2
Fig. 3. Circuital representation of PV system for steady-state simulation.

(a)

(b)
Fig. 4. Selected samples of switching functions (a) boost converter and (b) inverter.

presentation only a few are included in Section 4.3). Table 1


Frequency and time-domain errors for steady-state simulation corresponding to
ifc(t).
4.1. PV system: Periodic steady-state
Nr FD error TD error Cpu-time by reduced-sample

This case study aims at demonstrating truncation and error criterion 35 0.0149 0.0593 0.005 s
for stationary state simulations. The network under study corresponds 195 0.0090 0.0209 0.063 s
to a grid-tied single-phase photovoltaic (PV) system whose network 921 4.37 × 10−4 0.0016 3.45 s
equivalent and reference directions are presented in Fig. 3; the corre-
sponding data are taken from [18] and listed in Table 4 of Appendix B.
The PV system involves P = 2 converters; one DC/DC boost converter As for the lumped-parameters AC subnetwork in Fig. 3, frequencies
and one DC/AC inverter with switching frequencies of 10 kHz and up to the sixth (positive and negative, plus DC) are chosen, i.e.,
25 kHz, respectively. Nr,AC = 13 samples. Regarding the boost converter, samples below 0.01
A time window of one fundamental power frequency cycle 50 Hz, of the maximum value of the switching function are selected, resulting
i.e., 20 ms, is simulated with N = 2048 samples via NLT [9]. According in Nr,1 = 11 samples. As for the inverter, the threshold line is also set at
to (4) and (6), the transient simulation routine of the NLT is modified 0.01 and Nr,2 = 14 samples are retained. Thus, the total number of FD
by setting c = 10−6 and Δt = 1 for stationary state simulation. samples results in Nr = 35, noting that three frequencies are common to

484
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

(a)

(b)

(c)
Fig. 5. Stationary waveforms (a) iL(t), (b) vc(t), and (c) ifc(t).

inverter and lumped-parameters AC subnetwork. frequency and its neighbors, such spectrum is taken as approximation
The 2048-sample switching functions corresponding to boost con- to the full-sample F(ω) for this case study, thus providing the FD ap-
verter and inverter are shown in Fig. 4, where the circles denote the proximation error given by the left-hand side of (8) as 0.0149, see also
selected samples which correspond to (positive) frequencies of major Table 1.
impact. Based on the chosen Nr = 35 samples and on the reference direc-
As the inverter’s FD spectrum corresponding to Ifc(ω) in Fig. 3 in- tions in Fig. 3, the stationary waveforms corresponding to reduced-
volves fundamental power frequency, its neighbors, and switching sample variables iL(t), vc(t), and ifc(t), are plotted in Fig. 5 and compared

485
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

DC source VSI AC filter Transformer Underground Nonlinear


cable reactor
+
iFIL (t ) iNL (t )
DC/AC vNL (t )

(a)

Linear subnetwork IL INL Nonlinear subnetwork


(solved in FD) + (solved in TD)
V
_

(b)
Fig. 6. (a) Network for transient study and (b) solution scheme representation.

to full-sample NLT simulation with N = 2048 samples. The TD error correspond to steps 1 and 2 of the procedure in Section 3.3. As for step
given by the right-hand side of (8) results of 0.0593 for ifc(t). The wa- 3, sigma2 and sigma3, shown in Fig. 2, are identified. According to step
veforms in Fig. 5 show very close agreement despite the reduced- 4 of the procedure in Section 3.3 and applying the Newton-type solu-
sample model involves 1.7% frequencies of full-sample model. The cpu- tion scheme, truncated IFIL and the rest of variables are multiplied by
times by full- and reduced-sample models are of 32.7 s and 0.005 s, the identified data windows and transformed to TD using zero-padding.
respectively. As the truncated model increases in samples, TD errors The same set of samples is applied to other FD solution variables.
decrease, as demonstrated by further experiments listed in Table 1. As Transient waveforms of vNL(t), iNL(t), and iFIL(t) are presented in
expected, Table 1 concludes that: (i) the larger the number of samples Fig. 7. The waveforms in Fig. 7 correspond to full- and reduced-sample
retained, the smaller the incurred error and (ii) the larger the number of TD responses with cpu-times of 7.42 s and 0.38 s, respectively. Worth
samples retained, the bigger the employed cpu-time. Should the FD noting that if fewer samples are chosen, cpu-time will become even
error was calculated from the solution spectrum Ifc(ω) and not from the smaller, as shown by the additional results listed in Table 2. As the
inverter’s spectrum, the second column of Table 1 becomes equal to the proposed methodology permits to substantially alleviate Gibbs oscilla-
third column. tions, 98% of the TD samples are plotted in Fig. 7. Gibbs oscillations for
the full-sample waveforms in Fig. 7 are diminished by using sigma, as
4.2. Nonlinear network: transient-state given by (12a), whilst for the reduced-sample waveforms we have ad-
ditionally used sigma2 and sigma3, as given by (12b) and (12c). It is
The network for this case study is arbitrarily chosen as the one mentioned that results in [18] exhibit Gibbs phenomenon as only sigma
depicted in Fig. 6 and has the objective of demonstrating the applic- is applied for both full- and reduced- sample variables. It is mentioned
ability of the proposed approach to nonlinear networks. It involves a that if c = ln(0.001)/ T /2 is used, i.e., c = 43.17, 100% of samples are
nonlinear load represented by the current/flux relation inl = + q, Gibb’s phenomenon free.
with α = 103, β = 2 × 106, and q = 3. The data corresponding to this Based on (9) and (10), the resultant FD and TD errors for iFIL(t) when
network are listed in Table 5 of Appendix B. For the solution of this truncating to 225 samples are 3.46 × 10−3 and 15.63 × 10−3, re-
nonlinear network, the subsystem spanning from the DC source to the spectively.
underground cable is represented as a Thévenin equivalent. An iterative This example concludes that if the goal is to obtain a reduced-in-
scheme between the Thévenin equivalent and the nonlinear load is samples FD model for transient simulation, the procedure of Section 3.3
performed via a Newton-type method [10] to obtain the transient re- has to be followed. The reason is that a truncated spectrum potentially
sponse in open-loop operation. The nonlinear load subsystem is effi- will exhibit Gibbs oscillations due to trimming that result in unstable
ciently resolved in TD, see Fig. 6. TD simulation, as already mentioned. Otherwise, it is suggested to use a
The full-sample FD spectrum of the current entering the AC filter, full-sample model that utilizes a damping factor given by Wedepohl’s
IFIL(s), is the one presented in Fig. 1 and adopted to apply the truncation formula and a global data window, i.e., sigma.
process of Section 3.3, noting that it carries effect from both switching Direct truncation in samples, without applying local data windows,
frequencies from the DC/AC converter and nonlinear load converted is illustrated next. The transient waveforms of iFIL(t) are shown in Fig. 8
frequencies. IFIL(s) of Fig. 1 results from applying the above mentioned using 2048 (continuous line) and 225 (dashed line) samples with
Newton-type solution scheme with N = 2048 samples and damping c = 86.34. Fig. 8 shows that the reduced-sample response without local
factor c = 86.34 provided by c = ln(0.001)/ T with time-window T equal data windows (only sigma applied) fails to numerically converge when
to four power fundamental frequency cycles (50 Hz), i.e., 80 ms. Sub- transforming to TD.
sequently, the threshold truncation line is set at 9.02 × 10−6; that is, As a final note on this example, the solution for the considered
0.01% of the maximum magnitude of IFIL(s), see Fig. 1. This results in a nonlinear network, either full- or reduced-sample, is obtained in three
truncated spectrum with Nr = 225 samples. The aforementioned results to four Newton-type iterations using a convergence criterion of 10−10.

486
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

(a)

(b)

(c)
Fig. 7. Transient waveforms corresponding to (a) vNL(t), (b) iNL(t), and (c) iFIL(t).

Table 2 transient and steady states using large number of samples for the ori-
Frequency and time-domain errors for transient simulation corresponding to ginal full-sample model and visualizing a wide time-window. The data
variable iFIL(t). corresponding to this network are listed in Table 6 of Appendix B.
Nr c FD error TD error Cpu-time by reduced-sample

99 43.17 6.93 × 10 −3
2.31 × 10 −2
0.13 s 4.3.1. Transient simulation
225 86.34 3.46 × 10−3 1.56 × 10−2 0.38 s The full-sample spectrum If(s) is calculated with N = 4096 samples
327 86.34 1.75 × 10−3 1.23 × 10−2 0.75 s and damping factor of c = 11.51 provided by Wedepohl’s criterion with
531 86.34 5.18 × 10−4 1.00 × 10−2 2.04 s
time-window T equal to twelve power fundamental frequency cycles
(60 Hz), i.e., 0.2 s, and k = 3. Applying the truncation process of
Section 3.3, with threshold truncation line of 0.2% of the maximum
4.3. Three-phase PV system
magnitude of If(s), results in a truncated spectrum with Nr = 241
samples; that is, 5.8% of the original 4096 samples. Both full- and re-
To illustrate the applicability of the proposed methodology to three-
duced-sample spectra are presented in Fig. 10.
phase networks, the PV system depicted in Fig. 9 is simulated for both
Similar to case study in Section 4.2, the reduced-sample response

487
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

Fig. 8. Transient waveforms corresponding to iFIL(t) illustrating numerical instability due to lack of application of local data windows.

R pv

iinv (t )
R fc L fc RAC LAC v AC (t )

i f (t ) iAC (t )
vdc (t ) C pv v pv (t )

vCf (t ) Cf

Fig. 9. PV tied to three-phase network for transient study.

Fig. 10. Full- and reduced-sample FD spectra of If(s).

with 241 samples and no local data windows, only sigma applied, fails Fig. 11(c) and Fig. 11(d). The differences between PSCAD/EMTDC and
to numerically converge when transforming to TD (not shown here). full-sample model in Fig. 11(c) and Fig. 11(d) can be attributed to the
Subsequently, the system is resolved with fourteen locally applied data use of distinct time-step, interpolation, and initialization of variables
windows; the resultant FD solution variables are then transformed to utilized in the former, among others. The corresponding cpu-time by
TD using zero-padding. PSCAD/EMTDC is of 5.35 s using a time-step of 10 μs. Note that the
Transient waveforms of vpv(t), ifa(t), iACa(t), and vcfa(t) (subscript a proposed approach is programmed under Matlab environment and the
denotes phase a) are presented in Fig. 11. The waveforms in Fig. 11 cpu-times would have been smaller if programmed under C++ en-
correspond to full- and reduced-sample TD responses with corre- vironment.
sponding cpu-times of 144 s and 0.35 s; the latter represents around The transient waveforms in Fig. 11 show that, despite taking few FD
0.2% of the full-sample cpu-time. For verification purposes, two wa- samples, the reduced-sample model fairly agrees with the full-sample
veforms given by the PSCAD/EMTDC software tool are included in one. Based on (9) and (11), the resultant FD and TD errors for ifa(t)

488
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

(a)

(b)

(c)

(d)

Fig. 11. Transient waveforms of (a) vpv(t), (b) ifa(t), (c) iACa(t), and (d) vcfa(t).

489
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

(a)

(b)

(c)

(d)

Fig. 12. Steady-state waveforms of (a) vpv(t), (b) ifa(t), (c) iACa(t), and (d) vcfa(t).

490
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

when truncating to 241 samples are 0.0101 and 0.077, respectively. density retained samples. This is the reason why we propose to define a
The TD error corresponding to vcfa(t) is of 0.11. It is mentioned again threshold line equal to a percentage of the maximum magnitude of
that 98% of TD samples are presented in Fig. 11. computed full-sample frequency-domain spectrum. Also, the number of
poles of reduced-sample spectrum is expected to be smaller, some of
4.3.2. Steady-state simulation them shifted, than that of full-sample spectrum; nevertheless, as shown
The steady-state of the PV tied to three-phase network in Fig. 10 is in the presented results, the high energy density retained samples
computed now via the proposed FD approach. As for stationary state provide dominant poles that permit to follow closely the dynamics of
only one cycle of fundamental power frequency suffices, we consider the system for transient state calculations or to reproduce main fre-
N = 1024 samples. The truncation process of Section 3.3, with quencies for steady-state calculations.
threshold truncation line of 0.2% of the maximum magnitude of If(s), Finally, it should be mentioned that, as long as finite limits are
results in a truncated spectrum with Nr = 19 samples; that is, 1.8% of defined in the inverse Laplace transform integral, Gibbs oscillations
the original 1024 samples. exist. The research works up to date do not intend to completely
Stationary waveforms of vpv(t), ifa(t), iACa(t), and vcfa(t) are included eliminate such oscillations but to diminish them.
in Fig. 12. The waveforms in Fig. 12 correspond to full- and reduced-
sample TD responses with corresponding cpu-times of 2.5 s and 0.006 s; 6. Conclusions
the latter represents around 0.24% of the full-sample cpu-time. The
cpu-time by PSCAD/EMTDC is of 40.2 s using a time-step of 10 μs and a The numerical Laplace transform technique has been further en-
time-window of 1.5 s to reach steady-state. Two waveforms given by hanced in this paper to provide reduced-sample FD models aimed to
the PSCAD/EMTDC software tool are included in Fig. 12(b) and stationary and transient states. Error analysis, based on Parseval’s
Fig. 12(c). theorem, has been presented. Gibbs phenomenon in reduced-sample FD
The stationary waveforms in Fig. 12 show that, despite taking few spectrum has also been addressed via application of local data win-
FD samples, the reduced-sample model closely agrees with the full- dows. The proposed approach readily incorporates switched devices
sample one. Based on (9) and (11), the resultant FD and TD errors for and permits to select frequencies of major impact. It has been observed
ifa(t) when truncating to 19 samples are both equal to 0.005. The TD that substantial computational savings are achieved such that the pro-
error corresponding to vcfa(t) is of 0.00051. posed approach gains attractiveness for multiple runs applications.
Finally, it is mentioned that the same NLT algorithm can simulate
5. Discussion transient and steady state with only a couple of simple code mod-
ifications.
Maximum frequency when computing a FD spectrum and FD/TD
discretization relations, as given by (5), are parameters dictated by NLT Acknowledgments
[9]. In this paper, we use number of samples and time-window as basis
to compute those parameters, as proposed in [9]. The authors gratefully acknowledge Pedro Lopez for providing the
The reduced-in-sample spectrum from a full-sample spectrum is network data of case study in Section 4.2. German Combariza was
prone to have distinct poles. Nevertheless, Parseval’s theorem dictates partially financed by the research project ID-PRY: 7023 of the Faculty
that accuracy of the time-domain response is dependent on high energy of Sciences. Pontificia Universidad Javeriana, Bogota, Colombia.

Appendix A

The impact of choosing k for the adopted convergence factor formula, c = ln(0.001)/ T / k [25], on reducing Gibbs oscillations for a full-sample FD
spectrum is studied in this section. The electric circuit of Fig. 13, with transfer function as given by (13), is intentionally selected and simulated via
NLT by using N = 4096 samples and no data window (that is, no action to diminish Gibbs oscillations) is applied. The input corresponds to voltage
cos(377t ) and the output is the current across Yinput. The second row of Table 3 lists the absolute differences between the correct value 5.9 × 10−3 at

R2 100
R1 100
Yinput Ro 100 L2 10mH
L1 1mH

G 10 4 mho C 1 F

Fig. 13. Electric circuit with known poles.

Table 3
Relation between convergence factor c and largest peak of Gibbs oscillations.
c = ln(0.001)/T/k with T = 0.2/60 s

0 2072.3 (k = 1) 1036.1 (k = 2) 518.1 (k = 4) 345.3 (k = 6)

−2 −3 −4
Difference 0 4.1 × 10 1.65 × 10 2.76 × 10 1.46 × 10−4

491
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

(a)

(b)

Fig. 14. Illustration of maximum peak of Gibbs oscillation (a) k = 1 and (b) k = 4.

the end of the observation time, T = 0.2/60 s, and the magnitudes of the largest peaks given by Gibbs (last point) when using different k. For the sake
of an example, these two values are illustrated in the current transient waveform of Fig. 14a for k = 1. It is observed from Table 3 that for k = 4, such
difference is reduced by two orders of magnitude, the resultant current transient waveform is presented in Fig. 14b. For the examples presented in
this paper, a factor of k = 2 sufficed for precise results.
1 1/ L1 s + G/C
Yinput = + +
Ro s + R1/ L1 L2 s 2 + (R2 + L 2 G /C ) s + (1 + R2 G )/ C (13)

Appendix B

The parameters for the single-phase PV system of Fig. 3, the nonlinear network of Fig. 6a, and the three-phase PV system of Fig. 9 are listed in
Tables 4, 5, and 6, respectively.

492
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

Table 4
Parameters for single-phase PV system in Fig. 3.
PV generator

vdc 31.17 kV Thévenin voltage


Rpv 2174.62 Ω Thévenin resistance

Boost converter
fsw 10 kHz Switching frequency
D 39.2% Duty cycle
Cpv 5500 μF Capacitance
L 9 mH Inductance
C 2200 μF Capacitance

Single-phase inverter
fsw 25 kHz Switching frequency
ma 0.9 Modulation index

Filter
Rfc 1 mΩ Resistance
Lfc 0.3 mH Inductance
Rfg 1 mΩ Resistance
Lfg 0.15 mH Inductance
Rd 2Ω Resistance
Cf 2.2 μF Capacitance

Grid equivalent
vac 230 Vrms Voltage
fo 50 Hz Fundamental frequency
Rg 4Ω Resistance
Lg 7.8 mH Inductance

Table 5
Parameters for nonlinear network in Fig. 6a.
DC source

vdc 20 V DC voltage
Voltage source inverter (VSI)
fsw 16 kHz Switching frequency
ma 0.9 Modulation index

AC filter
L 2 mH Inductance
Rc 0.1 Ω Resistance
Cf 5 μF Capacitance

Transformer
R 0.23/6 Ratio
S 1.5 kV A Nominal power
Ll 0.1 p.u. Leakage inductance

Underground cable
l 800 m Length

Nonlinear load given by flux/current relation:inl = + p

α 103 Alpha coefficient


β 2 × 106 Beta coefficient
p 3 Power

Table 6
Parameters for three-phase PV system in Fig. 9.
PV generator

vdc 269.08 kV Thévenin voltage


Rpv 203.57 Ω Thévenin resistance
Cpv 5000 μF DC capacitor

Three-phase inverter
fsw 3.06 kHz Switching frequency
ma 0.925 Modulation index

Filter
Rfc 2 mΩ Resistance
Lfc 1 mH Inductance
Cf 369 μF Capacitance

Grid equivalent
vAC 12.47 kV Voltage (rms)
fo 60 Hz Fundamental frequency
RAC 1Ω Resistance
LAC 0.1 H Inductance

493
A. Ramirez and G. Combariza Electrical Power and Energy Systems 109 (2019) 480–494

Appendix C. Supplementary material

Supplementary data to this article can be found online at https://doi.org/10.1016/j.ijepes.2019.02.036.

References Summer Meeting 2000:884–9.


[13] Ametani A, Imanishi K. Development of exponential Fourier transform and its ap-
plication to electrical transients. Proc. IEE 1979;126:51–6.
[1] Kocar I, Mahseredjian J. New procedure for computation of time delays in propa- [14] Gustavsen B. Validation of frequency-dependent transmission line models. IEEE
gation function fitting for transient modeling of cables. IEEE Trans Power Deliv Trans Power Deliv 2016;20:925–33.
2016;31:613–21. [15] Wedepohl LM. Power system transients: Errors incurred in the numerical inversion
[2] Kocar I, Mahseredjian J, Olivier G. Improvement of numerical stability for the of the Laplace transform. 26th Midwest Symp Circ Syst 1983:174–8.
computation of transients in lines and cables. IEEE Trans on Power Deliv [16] Wilcox DJ, Gibson IS. Numerical Laplace transformation and inversion in the
2010;25:1104–11. analysis of physical systems. Int J Num Methods Eng 1984;20:1507–19.
[3] Gustavsen B. Avoiding numerical instabilities in the universal line model by a two- [17] Tavighi A, Marti JR, Galvan VA, Gutierrez JA, Time-window based discrete-time
segment interpolation scheme. IEEE Trans Power Deliv 2013;28:1643–51. Fourier series for electromagnetic transients in power systems. IEEE Trans on Power
[4] Lopez ZL, Gomez P, Espino-Cortes FP, Peña Rivero R. Modeling of transformer Deliv 2018;early access: http://doi.org/10.1109/TPWRD.2018.2794887.
windings for fast transient studies: Experimental validation and performance com- [18] Lopez P, Ramirez A. Sample-reduced frequency-domain approach for transient and
parison. IEEE Trans Power Deliv 2017;32:1852–60. steady-state computation of switched networks. North American Power Symposium
[5] Hussain MK, Gomez P. Equivalent representation of machine winding in frequency 2016,;NAPS-2016:1–6.
domain model for fast transient studies. IEEE Power Energy Conf Illinois (PECI) [19] Cheng DK. Analysis of linear systems. USA: Addison-Wesley; 1972.
2017:1–6. [20] McLachlan NW. Complex variable theory & transform calculus. 2nd ed. USA:
[6] Semlyen A. Steady-state analysis of nonlinear dynamic systems with periodic ex- Cambridge University Press; 1963.
citation based on linearization in harmonic space. Can Elect Eng J 1986;11:114–7. [21] Briggs WL, Henson VE. The DFT: An owner’s manual for the discrete Fourier
[7] Acha E, Madrigal M. Power systems harmonics. Hoboken, NJ, USA: Wiley; 2001. transform. USA: SIAM; 1995.
[8] Ramirez A. The modified harmonic domain: Interharmonics. IEEE Trans Power [22] Proakis JG, Manolakis DG. Digital Signal Processing, Principles, Algorithms and
Deliv 2011;26:235–41. Applications. 3rd ed. Upper Saddle River, NJ, USA: Prentice-Hall; 1996.
[9] Moreno P, Ramirez A. Implementation of the numerical Laplace transform: A re- [23] Ramirez A, Rico JJ. Harmonic/state model-order reduction of nonlinear networks.
view. IEEE Trans Power Deliv 2008;23:2599–609. IEEE Trans Power Deliv 2016;31:1379–87.
[10] Ramirez A. Frequency-domain computation of steady and dynamic states including [24] Mullineux N, Reed JR. Numerical inversion of the Laplace transform. Electronic Lett
nonlinear elements. IEEE Trans Power Deliv 2009;24:1609–15. 1966;2:206–7.
[11] Tian Y, Yong J, Xu W. Using short-circuit programs to simulate basic capacitor [25] Wedepohl LM. Theory of natural modes in multiconductor transmission lines.
switching transients. IEEE Trans Power Deliv 2016;31:2332–41. Graduate Course University of British Columbia; 1982. p. 1–150.
[12] Martinez J, Natarajan R, Camm E. Comparison of statistical switching results using
Gaussian, uniform and systematic switching approaches. IEEE Power Eng Soc

494

You might also like