Next Article in Journal
Linear Active Disturbance Rejection Control for Flexible Excitation System of Pumped Storage Units
Previous Article in Journal
Design of Inductive Power Transfer Charging System with Weak Coupling Coefficient
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Study of a Numerical Integral Interpolation Method for Electromagnetic Transient Simulations

by
Kaiyuan Sun
1,
Kun Chen
1,
Haifeng Cen
1,
Fucheng Tan
2 and
Xiaohui Ye
2,*
1
Guangzhou Power Supply Bureau, Guangdong Power Grid Co., Ltd., Guangzhou 510510, China
2
School of Electrical Engineering, Yanshan University, Qinhuangdao 066004, China
*
Author to whom correspondence should be addressed.
Energies 2024, 17(15), 3837; https://doi.org/10.3390/en17153837
Submission received: 31 May 2024 / Revised: 29 July 2024 / Accepted: 1 August 2024 / Published: 3 August 2024

Abstract

:
In the fixed time-step electromagnetic transient (EMT)-type program, an interpolation process is applied to deal with switching events. The interpolation method frequently reduces the algorithm’s accuracy when dealing with power electronics. In this study, we use the Butcher tableau to analyze the defects of linear interpolation. Then, based on the theories of Runge–Kutta integration, we propose two three-stage diagonally implicit Runge–Kutta (3S-DIRK) algorithms combined with the trapezoidal rule (TR) and backward Euler (BE), respectively, with TR-3S-DIRK and BE2-3S-DIRK for the interpolation and synchronization processes. The proposed numerical integral interpolation scheme has second-order accuracy and does not produce spurious oscillations due to the size change in the time step. The proposed method is compared with the critical damping adjustment method (CDA) and the trapezoidal method, showing that it does not produce spurious numerical oscillations or first-order errors.

1. Introduction

In the development and construction of ultra-high-voltage DC lines, the proportion of power electronic components in the power system has been increasing year by year. Therefore, electromagnetic transient (EMT) simulations have become an important tool for analyzing the stability of AC/DC hybrid power systems [1,2,3,4]. EMT simulations can essentially be solved as differential–algebraic equations (DAEs), which are more complex, with stricter algorithmic requirements than ordinary differential equations (ODEs) [5]. The error in the values of algebraic equations causes numerical oscillation, and this should be suppressed by applying an L-stable algorithm to solve the DAE problem [6], especially when dealing with a circuit’s sudden changes [7].
The most commonly used EMT-type program [8,9] employs the nodal analysis method, which uses a fixed step-size integration method to discretize the differential equation of the circuit elements into a current source with a shunt resistor. The admittance matrix of the network is unchanged during the computation process, which can improve the speed of the computation [10]. The EMT-type program is specially designed for power system simulation, provides a variety of power system models, and has been used in engineering computations for many years [11].
Trapezoidal rule (TR) integration is an implicit method with the feature of symmetrical A-stability, which can show the unstable modes in the system. Further, it is most widely used in power system simulation. This algorithm enables the original instability patterns in the system to be manifested and eliminates the problem of superstability, but causes numerical oscillations [12]. The numerical oscillation of EMT can be suppressed by adding a buffer circuit [13] or using the damping trapezoid method, critical damping adjustment method (CDA) [12], two-stage diagonally implicit Runge–Kutta method (2S-DIRK) [14,15,16], root-matching method [17], trapezoidal method with the second-order backward difference formula (TR-BDF2) [17], or Rosenbrock numerical integration method [18]. The CDA method uses a two-step backward Euler method [19], which does not need to modify the admittance matrix and has good adaptability. As a result, it is widely used in EMT-type software [20].
On the other hand, switching operation events do not occur exactly at the constant-step intervals, and delays in the switching operation cause the emergence of unreal “spikes” [21] in the waveform and, thus, harmonics, which requires an accurate simulation of the switching operation through the variable time-step algorithm or interpolation method [22,23]. This requires multiple interpolations [22,24] or flexible integration for readjustment in the simulation of transients [25] to achieve resynchronization during real-time simulations. The interpolation method is a good choice because it does not change the admittance matrix of the network. However, linear interpolation reduces the simulation accuracy depending on when exactly the discontinuity occurs [26]. And interpolation requires a smaller time step [24]. In addition, exponential matrix methods can solve this problem [27,28], but their implementation requires significant modification of the CDA architecture, rendering it a less practical choice. Therefore, to develop an enhanced algorithm, the following conditions should be met:
(1)
L-stable, to effectively eliminate oscillations;
(2)
Variable step size, to handle switching events at any time;
(3)
High computational accuracy, at least secondary-order, during interpolation;
(4)
Consistent equivalent impedance, and the conductivity matrix does not need to re-triangulated;
(5)
It is better to construct it on the CDA scheme to minimize modifications of EMT-type tools.
Recent developments in DIRK methods have advanced the field of computational mathematics. Kennedy et al. [29,30] evaluated DIRK methods for stability and accuracy in solving differential equations, despite increasing computational demands. Da Silva et al. [31] introduced iso-spectral Runge–Kutta methods using the reduced Hamiltonian principle. Kamiński et al. [32] applied a novel Runge–Kutta–Fehlberg algorithm to the stochastic Duffing equation, enhancing structural response calculations. Despite these advancements, Runge–Kutta methods should be redesigned to meet all above conditions for EMT computations.
In this study, we use the Butcher tableau [33] to analyze the computation error caused by interpolation in the CDA method and discuss the defects of linear interpolation algorithms in Section 2. It is found that the linear interpolation algorithm cannot maintain the high-order simulation accuracy. Based on the Runge–Kutta theories, two three-stage diagonally implicit Runge–Kutta (3S-DIRK) methods combined with TR and BE are proposed: TR-3S-DIRK and BE2-3S-DIRK. Then, a new integration-based interpolation scheme is proposed, and the integral formulas for inductors, capacitors, and mutual inductors are derived. The proposed algorithms and interpolation scheme have similar advantages to CDA, such as an invariant admittance matrix and numerical oscillation suppression. Moreover, the proposed algorithms have second-order accuracy throughout the whole simulation.
To verify the feasibility of the proposed method, a special case was constructed combined with the line-commutated converter-based high-voltage direct-current (LCC-HVDC) system and the IEEE9 system, in which the calculation algorithm needs to be switched to obtain accurate LCC-HVDC results, while the errors in algorithm switching are reflected in the curves of IEEE9. Then, the proposed method is compared with the CDA method in a well-constructed case.

2. Interpolation in CDA and Its Defects

2.1. Switching Interpolation Architecture

The CDA method is the most commonly used method in EMT simulation tools, which adopts the TR method in the normal computation process. As is partly shown in Figure 1, when a switching action is detected, stage 1 involves interpolating to the moment of the switching action, point K, using linear interpolation; stage 2 and stage 3 suppresses the numerical oscillation using the BE method twice; and stage 4 is resynchronization using the linear interpolation algorithm, so the computation point is synchronized back to the original time step. At the same time, if a switching action is detected in stage 2, it will return to stage 1 to perform interpolation using the linear interpolation algorithm.
Resynchronization is needed, as all controls and system models need to recognize the effective time-step shift in their local integration scheme. Therefore, two types of interpolation were used, i.e., the interpolation after the TR and the interpolation after the BE method. The former interpolation process was used to obtain the exact time of the switching action in stage 1, and the latter synchronization process was used for the resynchronization computation in stage 4.

2.2. Linear Interpolation after TR Method

EMT-type tools simulate the transient phenomenon of dynamic elements, which can be written in standard differential equation form as,
d y d t = f ( t , y )
Assuming that interpolation is performed at point K and t n + k T = t n + k T h , then, using the TR and linear interpolation algorithms, we have the following formulas:
{ y n + 1 = y n + h 2 f ( t n , y n ) + h 2 f ( t n + 1 , y n + 1 ) y n + k T = ( 1 k T ) y n + k T y n + 1 ,
Assuming that y n + k T is the term to be solved, y n + 1 is an intermediate term, and the step size is changed to a new one, which is h ˜ = k T h , then the above formulas can be rewritten as the following RK formulas:
{ F 1 = f ( t n , y n ) F 2 = f ( t n + 1 k T h ˜ , y n + h ˜ 2 k T F 1 + h ˜ 2 k T F 2 ) y n + k T = y n + h ˜ 2 F 1 + h ˜ 2 F 2 .
For simplicity, the s-stage RK case is often described using the following Butcher tableau:
c 1 a 11 a 1 s c s a s 1 a ss b 1 b s = c A b T .
The Butcher tableau is a useful tool for the Runge–Kutta method, and the accuracy of the algorithm can be calculated according to rooted trees as Formulas (5) to (6), where e is an s-dimensional column vector whose elements are all 1 and C is a diagonal matrix composed of c elements.
First - order   accuracy :   b T · e = 1 ,
Second - order   accuracy :   b T · C · e = 1 2 .
Formula (2) features the Butcher tableau (7), and it is shown that the Butcher tableau (7) satisfies the condition of (5). Only when k T = 1 is the condition of (6) satisfied. Thus, when k T 1 , the formula is a first-order accuracy algorithm, and the use of first-order linear interpolation will reduce the computational accuracy.
0 0 1 k T 1 2 k T 1 2 k T 1 2 1 2 .

2.3. Linear Interpolation after BE Method

To distinguish the symbols in Section 2.2, m and k B are used instead, and m = n + k , k B = 1 k T . As illustrated in Figure 1, the linear interpolation in stage 4 is often performed after calculating the BE method twice, so there are three values that can be used, y m , y m + 0.5 , and y m + 1 , while the first point y n y m is a discontinuous point; thereby, we obtain the following formulas:
{ y m + 0.5 = y m + h 2 f ( t m + 0.5 , y m + 0.5 ) y m + 1 = y m + 0.5 + h 2 f ( t m + 1 , y m + 1 ) y m + k B = 2 ( 1 k B ) y m + 0.5 + ( 2 k B 1 ) y m + 1 .
Assuming that y m + k B is the term to be solved, y m + 0.5 and y m + 1 are intermediate values, and the step size is changed to a new one, which is h ˜ = k B h , then Formula (8) can be rewritten as the RK Formula (9) with the Butcher tableau (10).
{ F 1 = f ( t m + 1 2 k B h ˜ , y m + h ˜ 2 k B F 1 ) F 2 = f ( t m + 1 k B h ˜ , y m + h ˜ 2 k B F 1 + h ˜ 2 k B F 2 ) y m + k B = y m + h ˜ 2 k B F 1 + ( 2 k B 1 ) h ˜ 2 k B F 2 ,
1 2 k B 1 2 k B 1 k B 1 2 k B 1 2 k B 1 2 k B 1 1 2 k B .
Formula (10) satisfies the condition of (5). When k B = 1 ± 1 / 2 , the condition of (6) is satisfied. Thus, when k B 1 ± 1 / 2 , the formula is a first-order accuracy algorithm.

2.4. Error Analysis of CDA Scheme

The BE method is a first-order accuracy algorithm with a local error of O ( h 2 ) . Considering error accumulation, the global error is O ( h ) . The TR and BE methods have different orders of accuracy, resulting in significant differences in their errors. When ignoring the secondary error, under the BE method, a three-phase inductor is equivalent to a parallel three-phase resistor R e r r o r = 2 L / h , and a three-phase capacitor under the BE method is equivalent to a series three-phase resistor R e r r o r = h / 2 C . Detailed error calculations are provided in Appendix A.
Therefore, when switching between the TR method and BE method, the network also undergoes the operation of connecting or disconnecting resistors. In large-scale power grid calculations, this error propagates throughout the entire grid. In other words, although the fault is local, the algorithm switch causes the fault dynamics of connecting or disconnecting resistors to appear across the entire simulated power grid.
In summary, the linear interpolation algorithm can only maintain the original computational accuracy; the traditional CDA method can maintain the computational accuracy at the second order only with a fixed step using the first-order interpolation algorithm, which renders the interpolation meaningless. In the case of a variable step size, the CDA method will cause the computation accuracy to be reduced to the first order, resulting in large errors.

3. 3S-DIRK-Based Integral Interpolation Scheme

3.1. 3S-DIRK

Based on the characteristics of the Butcher tableau, the algorithms can be categorized into various forms, e.g., FIRK, ERK, DIRK, SDIRK, EDIRK, and FDIRK [6]. To comply with the current form of the EMT-type program, the following characteristics need to be met:
  • Diagonally implicit RK formula (DIRK): This enables a separate computation for each stage, without the need to generate a large matrix, which has the advantage of being a multistep method.
  • Singly diagonally implicit Runge–Kutta formula (SDIRK): The diagonal elements of the algorithm meeting this characteristic are identical, i.e., all the elements of a i i are identical. When solving this special case of the DIRK algorithm, the Jacobi matrix is guaranteed to remain unchanged at each computational stage, which reduces the computational load of matrix decomposition.
  • First-same-as-last formula (FSAL): In this formula, a s i = b i i = 1 , , s and c s = 1 , which means that the first stage of a step is the same as the last stage from the end of the previous step. This condition ensures that when solving rigid problems, order reduction will not occur in the algorithm [34].
In order to maintain the structure of the EMT-type program, the above three features must meet. Additionally, the three-stage method discussed below is referred to as 3S-DIRK.

3.2. TR-3S-DIRK in Interpolation Process

TR-3S-DIRK is a variable step-size interpolation integration method based on the TR. Assuming that the interpolation step is h ˜ = k T h and the new step is h ˜ , the new DIRK method with second-order accuracy is derived according to Formulas (4) and (5), and its Butcher tableau is as follows:
0 0 1 k T 1 2 k T 1 2 k T 1 3 k T 1 k T 2 2 k T k T 1 2 1 2 k T 3 k T 1 k T 2 2 k T k T 1 2 1 2 k T .
The above algorithm is a special case of the 3S-DIRK algorithm. The elements in the first row of the Butcher tableau are all 0, which has no computation in the first stage and only requires integration on the basis of the TR. This method is referred to as the TR-3S-DIRK.
The stages of TR-3S-DIRK are as follows:
Stage   0 :   TR       y n + 1 = y n + h 2 f ( t n , y n ) + h 2 f ( t n + 1 , y n + 1 ) ,
Stage   1 :   Interpolation         y n + k T = y n + 3 k T 1 k T 2 2 h f ( t n , y n )   + k T 1 2 k T h f ( t n + 1 , y n + 1 ) + h 2 f ( t n + k , y n + k T ) .

3.3. BE2-3S-DIRK in Synchronous Process

After events or operations occur, the algorithm switches to the BE method, and the interpolation is BE-based synchronous interpolation. The BE method is itself a low-order algorithm, and the linear interpolation further increases the error. Therefore, it is necessary to improve the computational accuracy using an integration method. Based on two-step BE, similar DIRK methods with second-order accuracy can be derived, and their Butcher tableau is as follows:
1 2 k B 1 2 k B 1 k B 1 2 k B 1 2 k B 1 3 k B 1 k B 2 k B 1 4 k B + 2 k B 2 2 k B 1 2 k B 3 k B 1 k B 2 k B 1 4 k B + 2 k B 2 2 k B 1 2 k B .
The interpolation algorithm (13) has three advantages:
  • The variable step size can be used for interpolation synchronization;
  • The computational accuracy is improved to the second order, while the first-order error brought by the BE algorithm is corrected;
  • It satisfies L-stability, which can eliminate the numerical oscillation in the computation.
This algorithm requires an integral operation on the basis of using the BE method twice. This method is referred to as BE2-3S-DIRK.
The stages of BE2-3S-DIRK are as follows:
Stage   2 :   BE       y m + 0 . 5 = y m + h 2 f ( t m + 0 . 5 , y m + 0 . 5 ) ,
Stage   3 :   BE       y m + 1 = y m + 0 . 5 + h 2 f ( t m + 1 , y m + 1 ) ,
Stage   4 :   Interpolation         y m + k B = y m + ( 3 k B 1 k B 2 ) h f ( t m + 0 . 5 , y m + 0 . 5 )   + 1 4 k B + 2 k B 2 2 h f ( t m + 1 , y m + 1 ) + h 2 f ( t m + k B , y m + k B ) .

4. Application of 3S-DIRK in EMT Program

4.1. Application of 3S-DIRK in DAEs

The proposed algorithm is mainly used for interpolation, and the main algorithm in EMT simulation is the TR algorithm (stage 0). When interpolation is required after a switching operation is detected, a new computational logic is adopted, as shown in Figure 2, with the following stages:
Stage 0: Integrate the TR algorithm, with a normal step, while detecting whether any event occurs; if an event occurs, calculate the coefficient for the interpolation (k) and proceed to stage 1; otherwise, repeat stage 0 until the event occurs or the simulation is finished.
Stage 1: Integrate to pint K using the TR-3S-DIRK algorithm; set the new step coefficient to kT, as in Formula (12); form a current vector; and solve the network’s voltage.
Stage 2: Integrate using the BE algorithm with a 1/2 step.
Stage 3: Integrate using the BE algorithm with a 1/2 step.
Stage 4: Integrate using the BE2-3S-DIRK algorithm and set the new step size coefficient to kB, kT + kB = 1, as in Formula (16). If no events occur during the process, the steps are illustrated as in Figure 2a. If any events occur during stage 2–4 at the point K’, change the step size and then go back to Stage 2 as in Figure 2b.
This method can ensure that the value at each step point has second-order accuracy, and the algorithm in the switching process is L-stable and capable of suppressing numerical oscillation. Specifically, the BE2-3S-DIRK method is L-stable and can eliminate the first-order error caused by BE.

4.2. Linear Inductors

The electrical components in the EMT-type program are treated as a parallel circuit of an admittance ( G e q u ) and a current source ( I h i s t ), as shown in Figure 3, and the component is converted to the form as:
i = G e q u u + I h i s t .
The dynamic equation of the inductor is L d d t i = u . The equivalent admittances of the TR and BE methods are both G e q u = h 2 L .
Assuming that the interpolation coefficients of TR-3S-DIRK and BE2-2S-DIRK are kT and kB, respectively, then the formulas of the proposed 3S-DIRK are shown as follows. The derivation processes are explained in Appendix B:
TR - 3 s - FESDIRK :       I h i s t = i n + ( 3 k T 1 k T 2 ) G e q u u n + k T ( k T 1 ) G e q u u n + 1 ,
BE 2 - 3 s - FSDIRK :       I h i s t = i m + 2 ( 3 k B 1 k B 2 ) G e q u u m + 0.5 + ( 1 4 k B + 2 k B 2 ) G e q u u m + 1 .

4.3. Linear Capacitors

The dynamic equation of the capacitor is C d d t u = i , and the equivalent admittance is G e q u = 2 C h in both the TR and BE methods.
Similarly, the formulas are derived:
TR - 3 s - FESDIRK :       I h i s t = G e q u u n + ( 3 k T 1 k T 2 ) i n + k T ( k T 1 ) i n + 1 ,
BE 2 - 3 s - FSDIRK :       I h i s t = G e q u u m + 2 ( 3 k B 1 k B 2 ) i m + 0.5 + ( 1 4 k B + 2 k B 2 ) i m + 1 .
In summary, the proposed variable step-size integration algorithm for interpolation can ensure that the equivalent admittances of the elements ( G e q u ) are consistent, and, furthermore, the matrix of the entire system does not need to be modified.

5. Case Study

Two case studies—the Series R-L Circuit and the AC/DC Hybrid Power Systems—are presented, demonstrating that the proposed algorithm retains L-stability, is capable of eliminating numerical oscillations, and ensures the maintenance of second-order computational accuracy.

5.1. Case A: Series R-L Circuit

Voltage chatter occurs when a disturbance is applied at a node to which only the inductor is connected, as shown in Figure 4. In this circuit, the voltage source is an ideal source with zero resistance, a magnitude of 132.79 kV, a frequency of 60 Hz, a ramp-up time of 0.05 s, and an initial phase of 0 degrees. The open resistance and closed resistance are 1 × 10 12 ohm and 0.0005 ohm, respectively. The inductance of the inductor is 0.1 H.
Meanwhile, there are two types of breakers: a thyristor and an insulated-gate bipolar transistor (IGBT). The former is a half-controlled type in which the break waits for the current to be reduced to 0 after receiving the off signal, while the latter is the full-controlled type in which the circuit is turned off immediately when the off signal is received. Therefore, the two cases will be discussed separately. In case A1, the switch does not turn off immediately but waits for the current to drop to 0; in case A2, the switch is forced to turn off, i.e., the turn-off action is implemented immediately when the off signal is received.

5.1.1. Case A1: Breaker of Half-Controlled Type

Assuming that the switch is not forced to turn off, the off signal arrives after 0.1 s, but the current at that time is not 0. When the current reaches 0, the time is 0.104167 s, at which point the switch is turned off, so interpolation is required.
As shown in Figure 5, the conventional TR algorithm will cause numerical oscillation, which can only be eliminated through an algorithm with L-stability.

5.1.2. Case A2: Breaker of Full-Controlled Type

In this case, the switch is forced to turn off when the off signal arrives, at which point the current is zero, and the numerical oscillation is greater.
As shown in Figure 6, both the CDA algorithm and the 3S-DIRK algorithm can eliminate numerical oscillations.

5.2. Case B: AC/DC Hybrid Power Systems

The CDA method will switch algorithms after events occur and the computation accuracy will be degraded to first order, leading to large errors, especially in the computations for power electronics. The proposed interpolation method in this study uses variable-step integration to maintain the calculation accuracy in the second order, and the errors can be controlled within a small range.
To verify the validity of the proposed 3S-DIRK method, the IEEE9 circuit and the line-commutated, converter-based, high-voltage DC (LCC-HVDC) circuit are combined, that is, both circuits are solved simultaneously, but there is no electrical connection between them. The IEEE 9-bus system serves as a standard test case, comprising three generators, three loads, nine buses, and nine transmission lines, which makes it highly suitable for verifying power system analysis and control algorithms. The LCC-HVDC circuit represents a typical configuration in high-voltage direct current transmission systems, consisting of converters, filters, reactors, DC transmission lines, and control and protection systems [35].
The LCC system starts up at 2 s and withdraws at 4 s, and in this time, the CDA method is put into effect. Meanwhile, the potential error sources are as follows: (1) the BE algorithm, (2) the interpolation algorithm, (3) the number of steps in the BE algorithm, and (4) the step size.
Therefore, it is necessary to set up four cases to separately discuss the impact of these factors:
Case B1: CDA without the interpolation method is performed to show the errors caused by the BE algorithm alone;
Case B2: The standard CDA scheme is employed to show the errors caused by linear interpolation and BE methods;
Case B3: To enlarge the errors caused by the BE algorithm, BE is used five times after the switching action;
Case B4: As discussed in Section 2.4, the errors are affected by the time step size, so the step size is changed to 100 μs from 50 μs.

5.2.1. Case B1: Impact of the BE Algorithm

The computation is implemented without interpolation; the BE algorithm is used twice after the switching action; and the step size is set to 50 μs.
Figure 7 shows that while switching the algorithm, the CDA algorithm causes errors in Bus1-BusA’s active power between 2 s and 4 s. Although there are no accidents, a large number of fluctuations occur using CDA method. Meanwhile, during the operation of the LCC, the computational error in the IEEE 9 system is very small using the proposed integral interpolation method.

5.2.2. Case B2: Impact of Interpolation

In this case, interpolation is performed on the basis of the above-described Case B1 example, in which interpolation is performed, and then the BE algorithm is used twice after the switching action, where the step size is set to 50 μs.
Figure 8 shows that in the interpolation process, the CDA error increases. However, the proposed algorithm still performs interpolation after the BE algorithm, but the interpolation coefficient remains at the original step size. The errors caused by the two implementations of the BE algorithm are offset by increasing the computation load, thereby maintaining the computational accuracy in the second order.

5.2.3. Case B3: Impact of the Number of Computations Using the BE Algorithm

Based on the Case B1 example, the number of computations of the BE algorithm is increased to five. Specifically, interpolation is not performed, and then the BE algorithm is used five times after the switching action, in which the step size is set to 50 μs. Because two BE computations are combined into a group in the 3S-DIRK algorithm in this case, three iterations of BE2-3S-DIRK algorithm are performed.
Figure 9 shows that, due to the implementation of multiple rounds of the BE algorithm, the computational error of the CDA is greater. However, the proposed algorithm performs an error correction after every two BE computations, which avoids the increased error derived from the increase in the number of BE computations.

5.2.4. Case B4: Impact of the Simulation Step

In this case, the simulation step is changed to 100 μs on the basis of the Case B1 example, in which interpolation is performed; the BE algorithm is then used twice after the switching action, and the step size is set to 50 μs.
Figure 10 shows that the error caused by the BE method is proportional to the step size. However, the proposed algorithm performs well with different step sizes.
To measure the error, the error indicator is defined as the deviation from the stable value within 2 s to 4 s of the active power of the line between Bus 1 and Bus A. The errors are summarized in Table 1.
It can be seen that the 3S-DIRK interpolation method proposed in this study can control the errors within a small range, while the conventional CDA method has higher errors, which interferes with the normal computing system due to the power electronics system.

6. Conclusions

In this study, we analyzed the computational accuracy of the CDA method and showed that the interpolation algorithm reduces the computational accuracy to the first order, making it impossible to apply the CDA method to the simulation of large power grids. Using the Butcher tableau, we discussed the accuracy order of the linear interpolation methods and found that linear interpolation algorithms cannot improve the computational accuracy. Therefore, it is impossible to use a linear interpolation algorithm to construct a suitable high-order integration algorithm.
Based on the Runge–Kutta theories, we developed two interpolation algorithms (TR-3S-DIRK and BE2-3S-DIRK) which are used for interpolation after the TR and BE methods. These interpolation algorithms support variable step-size computations while keeping the matrix unchanged and can be used for interpolation and synchronization processes. At the same time, BE2-3S-DIRK can eliminate the first-order error derived from the BE algorithm and increase the computational accuracy to the second order, thereby maintaining the second-order accuracy in the EMT simulations; the BE2-3S-DIRK algorithm is L-stable, which can suppress numerical oscillations.
A new integration scheme was proposed by replacing the linear interpolation of CDA into 3S-DIRK. Then, we derived the formulas for inductors and capacitors and verified that the equivalent admittance of these elements was consistent under different stages, without the need to modify the admittance matrix. We used the Case A examples to verify that the interpolation algorithm retained the L-stability of the original BE algorithm and, thus, is capable of suppressing numerical oscillations. Then, using an example in which the LCC-HVDC system and the IEEE9 system were combined, we verified that the proposed method could maintain second-order computational accuracy throughout the whole computation process.
Moreover, in this study, we provide an algorithm development idea based on the RK architecture, which can be used to further develop new high-order algorithms.

Author Contributions

Conceptualization, X.Y.; methodology, K.S. and K.C.; software, K.C.; validation, H.C.; writing—original draft, K.S. and F.T.; writing—review and editing, X.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was financially supported by the “Guangzhou Ultra-Large City New Type Power System Demonstration Zone Special Planning” project, with the number 0301006900220001.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

Authors Kaiyuan Sun, Kun Chen and Haifeng Cen, ware employed by the company Guangdong Power Grid Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Nomenclature

Abbreviations
EMTElectromagnetic transient
RKRunge–Kutta
DIRKDiagonally implicit RK formula
SDIRKSingly diagonally implicit Runge–Kutta formula
FSALFirst-same-as-last formula
3S-DIRKThree-stage diagonally implicit Runge–Kutta
2S-DIRKTwo-stage diagonally implicit Runge–Kutta
TRTrapezoidal rule
BEBackward Euler
TR-3S-DIRKThree-stage diagonally implicit Runge–Kutta methods combined with trapezoidal rule
BE2-3S-DIRKThree-stage diagonally implicit Runge–Kutta methods combined with backward Euler twice
DAEsDifferential–algebraic equations
ODEsOrdinary differential equations
TR-BDF2Trapezoidal method with the second-order backward difference formula
LCC-HVDCLine-commutated converter-based high-voltage direct current
IGBTInsulated-gate bipolar transistor
CDACritical damping adjustment
Variables
f(t,y)Function of the differential equation, representing the derivative of y with respect to t
tn, tn+1Time at the n-th and n+1-th time step as shown in Figure 1
yn, yn+1Value at the n-th and n+1-th time step, respectively
kT, kBInterpolation coefficients in Stage 1 and Stage 4 as in Figure 1
hStep size
h ˜ New step size
GequEquivalent admittance in equivalent circuit
IhistHistory current in equivalent circuit
uInstantaneous voltage
iInstantaneous current
LInductance of inductor
CCapacitance of capacitor
θ v Voltage phase angle
θ i Current phase angle
RResistance
ωAngular frequency
c, bVector of s size as in Equation (4)
A, CMatrix of size s x s as in Equation (4)

Appendix A. Error Calculations of BE Method and Interpolation Algorithm

As discussed in Section 2.2 and Section 2.3, the BE method and interpolation algorithm is a first-order accuracy algorithm. The TR and BE methods have different orders of accuracy, leading to significant differences in their errors. To illustrate the error in the BE method and linear interpolation, the formulas for single-phase and three-phase inductors are derived and used to compare the numerical error differences resulting from the different orders of accuracy of the two methods. For the sake of convenience, we assume that the interpolation coefficient k equals 0.5.

Appendix A.1. Error in Single-Phase Inductor

We assume that the voltage across the inductor after stabilization is u ( t ) = 2 u · sin ( ω t + θ v ) and the current is i ( t ) = 2 i · sin ( ω t + θ i ) . An error analysis comparison for different algorithms is shown in Table A1.
Table A1. Error analysis for single-phase inductor.
Table A1. Error analysis for single-phase inductor.
TRBEInterpolation (k = 0.5)
Formula i ( t ) = i ( t h ) + h 2 L [ u ( t ) + u ( t h ) ] i ( t ) = i ( t h ) + h L   u ( t ) i ( t ) = i ( t h ) + h 2 L [ u ( t + h ) ]
Magnitude u = 2 L h i · tan ( ω h 2 ) u = 2 L h i · sin ( ω h 2 ) u = 2 L h i · sin ( ω h 2 ) / cos ( ω h )
Angle θ v = θ i + π 2 θ v = θ i + π 2 ω h 2 θ v = θ i + π 2 ω h 2
It can be seen that the BE and interpolation methods introduce a first-order deviation in the angle of the inductor element. In terms of magnitude, both algorithms exhibit second-order errors.

Appendix A.2. Error in Three-Phase Inductor

Assuming that, after stabilization, the voltage and current across the inductor are three-phase balanced and the active and reactive power are balanced, then the voltage and current across the three-phase inductor can be expressed as follows:
U ( t ) = 2 3 u · [ sin ( ω t + θ v ) sin ( ω t + θ v 2 3 · π ) sin ( ω t + θ v 2 3 · π ) ]
I ( t ) = 2 3 i · [ sin ( ω t + θ i ) sin ( ω t + θ i 2 3 · π ) sin ( ω t + θ i 2 3 · π ) ]
As shown in Table A2, when the secondary error is ignored, the BE method models the three-phase inductor as being equivalent to a parallel three-phase resistor R e r r o r = 2 L / h .
Table A2. Error analysis for three-phase inductor.
Table A2. Error analysis for three-phase inductor.
TRBEInterpolation (k = 0.5)
Formula P = P 0 cos ( ω h ) Q 0 sin ( ω h ) + h 2 L u 2 [ 1 + cos ( ω h ) ]
Q = Q 0 cos ( ω h ) + P 0 sin ( ω h ) + h 2 L u 2 sin ( ω h )
P = P 0 cos ( ω h ) Q 0 sin ( ω h ) + h L u 2
Q = Q 0 cos ( ω h ) + P 0 sin ( ω h )
P = P 0 cos ( ω h ) Q 0 sin ( ω h ) + h L u 2 cos ( ω h )
Q = Q 0 cos ( ω h ) + P 0 sin ( ω h )
Active power P = 0 P = h 2 L u 2 P = h 2 L u 2 cos ( ω h )
Reactive power Q = h 2 L u 2 1 + cos ( ω h ) sin ( ω h ) Q = h 2 L u 2 1 + cos ( ω h ) sin ( ω h ) Q = Δ t 2 L u 2 1 + cos ( ω h ) sin ( ω h ) cos ( ω h )

Appendix A.3. Error in Three-Phase Capacitor

Using the above conditions for derivation, the error for the three-phase capacitor is shown in Table A3.
Table A3. Error analysis of the BE method for three-phase capacitor.
Table A3. Error analysis of the BE method for three-phase capacitor.
TRBEInterpolation (k = 0.5)
Formula P = P 0 cos ( ω h ) + Q 0 sin ( ω h ) + h 2 C i 2 [ 1 + cos ( ω h ) ]
P = P 0 cos ( ω h ) + Q 0 sin ( ω h ) + h 2 C i 2 [ 1 + cos ( ω h ) ]
P = P 0 cos ( ω h ) + Q 0 sin ( ω h ) + h C i 2
Q = Q 0 cos ( ω h ) P 0 sin ( ω h )
P = P 0 cos ( ω h ) + Q 0 sin ( ω h ) + h C i 2 cos ( ω h )
Q = Q 0 cos ( ω h ) P 0 sin ( ω h )
Active power P = 0 P = h 2 C i 2 P = h 2 C i 2 cos ( ω h )
Reactive power Q = h 2 C i 2 1 + cos ( ω h ) sin ( ω h ) Q = h 2 C i 2 1 + cos ( ω h ) sin ( ω h ) Q = h 2 C i 2 1 + cos ( ω h ) sin ( ω h ) cos ( ω h )
It can be seen that the BE method for a three-phase capacitor is equivalent to a series connection with a three-phase resistor R e r r o r = h / 2 C .
In summary, when switching between the TR and BE methods, the network also undergoes the operation of connecting or disconnecting resistors. In large-scale power grid calculations, this error propagates throughout the entire grid. In other words, although the fault is local, the algorithm switch causes the fault dynamics of connecting or disconnecting resistors to appear across the entire simulated power grid.

Appendix B. Derivation Process of 3S-DIRK of Linear Inductor and Capacitor

Appendix B.1. Linear Inductor

The dynamic equation of the inductor is L d d t i = u . It can be written in standard form as:
{ d y d t = f ( t , y ) y = i f ( t , y ) = 1 L u ,
Using Equation (12),
i n + k T = i n + 3 k T 1 k T 2 2 h 1 L u n + k T 1 2 k T h · 1 L u n + 1 + h 2 1 L u n + k T ,
Thus, we obtain the TR-3S-DIRK formulas as a form of Equation (18):
i n + k T = G e q u u n + k T + I h i s t { G e q u = h 2 L I h i s t = i n + ( 3 k T 1 k T 2 ) G e q u u n + k T ( k T 1 ) G e q u u n + 1 .
Using Equation (17),
i m + k B = i m + ( 3 k B 1 k B 2 ) h 1 L u m + 0.5 + 1 4 k B + 2 k B 2 2 h 1 L u m + 1 + h 2 1 L u m + k B ,
Thus, we obtain the BE2-3S-DIRK formulas:
i m + k B = G e q u u m + k B + I h i s t { G e q u = h 2 L I h i s t = i m + 2 ( 3 k B 1 k B 2 ) G e q u u m + 0.5 + ( 1 4 k B + 2 k B 2 ) G e q u u m + 1 .

Appendix B.2. Linear Capacitors

The dynamic equation of the capacitor is C d d t u = i . It can be written in standard form as:
{ d y d t = f ( t , y ) y = u f ( t , y ) = 1 C i ,
Using Equation (12),
u n + k T = u n + 3 k T 1 k T 2 2 h 1 C i n + k T 1 2 k T h · 1 C i n + 1 + h 2 1 C i n + k T ,
Thus, we obtain the TR-3S-DIRK formulas:
i n + k T = G e q u u n + k T + I h i s t { G e q u = 2 C h I h i s t = G e q u u n + ( 3 k T 1 k T 2 ) i n + k T ( k T 1 ) i n + 1 .
Using Equation (17),
u m + k B = u m + ( 3 k B 1 k B 2 ) h 1 C i m + 0.5 + 1 4 k B + 2 k B 2 2 h 1 C i m + 1 + h 2 1 C i m + k B ,
Thus, we obtain the BE2-3S-DIRK formulas:
i m + k B = G e q u u m + k B + I h i s t { G e q u = 2 C h I h i s t = G e q u u m + 2 ( 3 k B 1 k B 2 ) i m + 0.5 + ( 1 4 k B + 2 k B 2 ) i m + 1

References

  1. Mahseredjian, J.; Dinavahi, V.; Martinez, J.A. Simulation tools for electromagnetic transients in power systems: Overview and challenges. IEEE Trans. Power Del. 2009, 24, 1657–1669. [Google Scholar] [CrossRef]
  2. Ming, Y.; Yongming, Z.; Ziqian, Z. Review of electromagnetic transient simulation algorithms for power system. Elect. Meas. Instrum. 2022, 59, 10–19. [Google Scholar]
  3. Tanaka, Y.; Baba, Y. Study of a numerical integration method using the compact scheme for electromagnetic transient simulations. Electr. Power Syst. Res. 2023, 223, 109666. [Google Scholar] [CrossRef]
  4. Subedi, S.; Rauniyar, M.; Ishaq, S.; Hansen, T.M.; Tonkoski, R.; Shirazi, M.; Wies, R.; Cicilio, P. Review of methods to accelerate electromagnetic transient simulation of power systems. IEEE Access 2021, 9, 89714–89731. [Google Scholar] [CrossRef]
  5. Gear, W. Simultaneous numerical solution of differential-algebraic equations. IEEE Trans. Circuit Theory 1971, 18, 89–95. [Google Scholar] [CrossRef]
  6. Butcher, J.C. Stability of implicity runge-kutta methods. In Numerical Methods for Ordinary Differential Equations, 2nd ed.; John Wiley & Sons Ltd.: New York, NY, USA, 2008; pp. 230–258. [Google Scholar]
  7. Tant, J.; Driesen, J. On the numerical accuracy of electromagnetic transient simulation with power electronics. IEEE Trans. Power Deliv. 2018, 33, 2492–2501. [Google Scholar] [CrossRef]
  8. Dommel, H.W. Digital computer solution of electromagnetic transients in single- and multiphase networks. IEEE Trans. Power Appar. Syst. 1969, 88, 734–741. [Google Scholar] [CrossRef]
  9. Pordanjani, S.R.; Mahseredjian, J.; Naïdjate, M.; Bracikowski, N.; Fratila, M.; Rezaei-Zare, A. Electromagnetic modeling of inductors in EMT-type software by three circuit-based methods. Electr. Power Syst. Res. 2022, 211, 108304. [Google Scholar] [CrossRef]
  10. Wen, H.C.; Ruehli, A.; Brennan, P. The modified nodal approach to network analysis. IEEE Trans. Circuits Syst. 1975, 22, 504–509. [Google Scholar]
  11. Ametani, A. Electromagnetic transients program: History and future. IEEJ Trans. Electr. Electron. Eng. 2021, 16, 1150–1158. [Google Scholar] [CrossRef]
  12. Marti, J.R.; Lin, J. Suppression of numerical oscillations in the EMTP. IEEE Power Eng. Rev. 1989, 9, 71–72. [Google Scholar] [CrossRef]
  13. Alvarado, F.L.; Lasseter, R.H.; Sanchez, J.J. Testing of trapezoidal integration with damping for the solution of power transient problems. IEEE Trans. Power Appar. Syst. 1983, 102, 3783–3790. [Google Scholar] [CrossRef]
  14. Noda, T.; Takenaka, K.; Inoue, T. Numerical integration by the 2-stage diagonally implicit Runge-Kutta method for electromagnetic transient simulations. IEEE Trans. Power Deliv. 2009, 24, 390–399. [Google Scholar] [CrossRef]
  15. Noda, T.; Kikuma, T.; Yonezawa, R. Supplementary techniques for 2S-DIRK-based EMT simulations. Electr. Power Syst. Res. 2014, 115, 87–93. [Google Scholar] [CrossRef]
  16. Olaniyan, A.S.; Bakre, O.F.; Akanbi, M.A. A 2-stage implicit Runge-Kutta method based on heronian mean for solving ordinary differential equations. Pure Appl. Math. J. 2020, 9, 84–90. [Google Scholar] [CrossRef]
  17. Watson, N.R.; Irwin, G.D. Comparison of root-matching techniques for electromagnetic transient simulation. IEEE Trans. Power Deliv. 2000, 15, 629–634. [Google Scholar] [CrossRef]
  18. Ye, J.; Xie, J.; Wang, Y.; Zhang, L.; Li, B.; Lv, J.; Li, K.; Jin, S.; Xu, Y.; Ma, W. Electromagnetic transient simulation algorithm for nonlinear elements based on rosenbrock numerical integration method. IEEE Access 2024, 12, 66981–66992. [Google Scholar] [CrossRef]
  19. Cibik, A.; Eroglu, F.G.; Kaya, S. Analysis of second order time filtered backward Euler method for MHD equations. J. Sci. Comput. 2020, 82, 38. [Google Scholar] [CrossRef]
  20. Lin, J.; Marti, J.R. Implementation of the CDA procedure in the EMTP. IEEE Trans. Power Systems 1990, 5, 394–402. [Google Scholar]
  21. Kui, W.; Ying, S. Modeling and simulation of nonlinear component algorithm. Power Syst. Clean Energy 2010, 26, 34–37. [Google Scholar]
  22. Zou, M.; Mahseredjian, J.; Delourme, B.; Joos, G. On interpolation and reinitialization in the simulation of transients in power electronic systems. In Proceedings of the 14th Power Systems Computation Conference (PSCC 2002), Sevilla, Spain, 24–28 June 2002. [Google Scholar]
  23. Kuffel, P.; Kent, K.; Irwin, G. The implementation and effectiveness of linear interpolation within digital simulation. Int. J. Electr. Power Energy Syst. 1997, 19, 221–227. [Google Scholar] [CrossRef]
  24. Strunz, K.; Linares, L.; Marti, J.R.; Huet, O.; Lombard, X. Efficient and accurate representation of asynchronous network structure changing phenomena in digital real time simulators. IEEE Trans. Power Syst. 2000, 15, 586–592. [Google Scholar] [CrossRef]
  25. Strunz, K. Flexible numerical integration for efficient representation of switching in real time electromagnetic transients simulation. IEEE Trans. Power Deliv. 2004, 19, 1276–1283. [Google Scholar] [CrossRef]
  26. Nzale, W.; Mahseredjian, J.; Fu, X.; Kocar, I.; Dufour, C. Improving Numerical Accuracy in Time-Domain Simulation for Power Electronics Circuits. IEEE Open Access J. Power Energy 2021, 8, 157–165. [Google Scholar] [CrossRef]
  27. Li, P.; Meng, Z.; Fu, X.; Yu, H.; Wang, C. Interpolation for power electronic circuit simulation revisited with matrix exponential and dense outputs. Electr. Power Syst. Res. 2020, 189, 106714. [Google Scholar] [CrossRef]
  28. Wang, C.; Fu, X.; Li, P.; Wu, J.; Wang, L. Multiscale Simulation of Power System Transients Based on the Matrix Exponential Function. IEEE Trans. Power Syst. 2017, 32, 1913–1926. [Google Scholar] [CrossRef]
  29. Kennedy, C.A.; Carpenter, M.H. Diagonally Implicit Runge-Kutta Methods for Ordinary Differential Equations. A Review; National Aeronautics and Space Administration: Washington, DC, USA, 2016. [Google Scholar]
  30. Kennedy, C.A.; Carpenter, M.H. Diagonally implicit Runge–Kutta methods for stiff ODEs. Appl. Numer. Math. 2019, 146, 221–244. [Google Scholar] [CrossRef]
  31. da Silva, C.C.; Lessig, C. Variational symplectic diagonally implicit Runge-Kutta methods for isospectral systems. BIT Numer. Math. 2022, 62, 1823–1840. [Google Scholar] [CrossRef]
  32. Kamiński, M.; Corigliano, A. Numerical solution of the Duffing equation with random coefficients. Meccanica 2015, 50, 1841–1853. [Google Scholar] [CrossRef]
  33. Butcher, J.C. Coefficients for the study of Runge-Kutta integration processes. J. Aust. Math. Soc. 1963, 3, 185–201. [Google Scholar] [CrossRef]
  34. Prothero, A. Robinson, Stability and accuracy of one-step methods for solving stiff systems of ordinary differential equations. Math. Comp. 1974, 28, 145–162. [Google Scholar] [CrossRef]
  35. Oni, O.E.; Davidson, I.E.; Mbangula, K.N. A review of LCC-HVDC and VSC-HVDC technologies and applications. In Proceedings of the 2016 IEEE 16th International Conference on Environment and Electrical Engineering (EEEIC), Florence, Italy, 7–10 June 2016; IEEE: New York City, NY, USA, 2016; pp. 1–7. [Google Scholar]
Figure 1. CDA computing framework.
Figure 1. CDA computing framework.
Energies 17 03837 g001
Figure 2. Computational framework of the 3S-DIRK algorithm.
Figure 2. Computational framework of the 3S-DIRK algorithm.
Energies 17 03837 g002
Figure 3. Equivalent circuit of electrical component.
Figure 3. Equivalent circuit of electrical component.
Energies 17 03837 g003
Figure 4. Diagram of series R-L circuit.
Figure 4. Diagram of series R-L circuit.
Energies 17 03837 g004
Figure 5. Simulated curve of the voltage across the inductor with half-controlled type breaker.
Figure 5. Simulated curve of the voltage across the inductor with half-controlled type breaker.
Energies 17 03837 g005
Figure 6. Simulated curve of the voltage across the inductor with full-controlled type breaker.
Figure 6. Simulated curve of the voltage across the inductor with full-controlled type breaker.
Energies 17 03837 g006
Figure 7. Simulated curve of the active power (MW) of the Bus1-BusA line in case B1.
Figure 7. Simulated curve of the active power (MW) of the Bus1-BusA line in case B1.
Energies 17 03837 g007
Figure 8. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B2.
Figure 8. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B2.
Energies 17 03837 g008
Figure 9. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B3.
Figure 9. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B3.
Energies 17 03837 g009
Figure 10. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B4.
Figure 10. Simulated curve of the active power (MW) of the Bus1-BusA line of Case B4.
Energies 17 03837 g010
Table 1. Error calculation summary table.
Table 1. Error calculation summary table.
Error (MW)CDA3S-DIRK
Case B10.04040.0002
Case B20.44540.0003
Case B30.08310.0005
Case B40.14540.0032
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sun, K.; Chen, K.; Cen, H.; Tan, F.; Ye, X. Study of a Numerical Integral Interpolation Method for Electromagnetic Transient Simulations. Energies 2024, 17, 3837. https://doi.org/10.3390/en17153837

AMA Style

Sun K, Chen K, Cen H, Tan F, Ye X. Study of a Numerical Integral Interpolation Method for Electromagnetic Transient Simulations. Energies. 2024; 17(15):3837. https://doi.org/10.3390/en17153837

Chicago/Turabian Style

Sun, Kaiyuan, Kun Chen, Haifeng Cen, Fucheng Tan, and Xiaohui Ye. 2024. "Study of a Numerical Integral Interpolation Method for Electromagnetic Transient Simulations" Energies 17, no. 15: 3837. https://doi.org/10.3390/en17153837

APA Style

Sun, K., Chen, K., Cen, H., Tan, F., & Ye, X. (2024). Study of a Numerical Integral Interpolation Method for Electromagnetic Transient Simulations. Energies, 17(15), 3837. https://doi.org/10.3390/en17153837

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop