Next Article in Journal
Feedforward Artificial Neural Network (FFANN) Application in Solid Insulation Evaluation Methods for the Prediction of Loss of Life in Oil-Submerged Transformers
Previous Article in Journal
Efficient Prediction of Fuel Cell Performance Using Global Modeling Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development and Research of Method in the Calculation of Transients in Electrical Circuits Based on Polynomials

1
Department of Theoretical and General Electrical Engineering, Electrical Engineering Faculty, National University “Zaporizhzhia Polytechnic”, 69063 Zaporizhzhia, Ukraine
2
Department of Power Electronics, Electrical Machines and Drives, Bydgoszcz University of Science and Technology, 85-796 Bydgoszcz, Poland
*
Authors to whom correspondence should be addressed.
Energies 2022, 15(22), 8550; https://doi.org/10.3390/en15228550
Submission received: 6 August 2022 / Revised: 31 October 2022 / Accepted: 7 November 2022 / Published: 15 November 2022
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
Long electromagnetic transients occur in electrical systems because of switching and impulse actions As a result, the simulation time of such processes can be long, which is undesirable. Simulation time is significantly increased if the circuit in the study is complex, and also if this circuit is described by a rigid system of state equations. Modern requests of design engineers require an increase in the speed of calculations for realizing a real-time simulation. This work is devoted to the development of a unified spectral method for calculating electromagnetic transients in electrical circuits based on the representation of solution functions by series in algebraic and orthogonal polynomials. The purpose of the work is to offer electrical engineers a method that can significantly reduce the time for modeling transients in electrical circuits. Research methods. Approximation of functions by orthogonal polynomials, numerical methods for integrating differential equations, matrix methods, programming and theory of electrical circuits. Obtained results. Methods for calculating transients in electrical circuits based on the approximation of solution functions by series in algebraic polynomials as well as in the Chebyshev, Hermite and Legendre polynomials, have been developed and investigated. The proposed method made it possible to convert integro-differential equations of state into linear algebraic equations for images of time-dependent functions. The developed circuit model simplifies the calculation method. The images of true current functions are interpreted as direct currents in the proposed equivalent circuit. A computer program for simulating the transient process in an electrical circuit was developed on the basis of the described methods. The performed comparison of methods made it possible to choose the best method and a way to use it. The advantages of the presented method over other known methods are to reduce the simulation time of electromagnetic transients (for the considered examples by more than 6 times) while ensuring the required accuracy. The calculation of the process in the circuit over a long time interval showed a decrease and stabilization of errors, which indicates the prospects for using research methods for calculating complex electrical circuits.

1. Introduction

Electromagnetic transients occur in electrical systems because of switching and impulse actions. This leads to dangerous current surges and overvoltages representing a significant danger to the equipment, and also reduces the reliability of the protection system. This leads to dangerous current surges and overvoltages, which pose a significant danger to equipment, and also reduce the reliability of used protection. Until now, the development and improvement of methods for studying transients have not lost their relevance. A number of well-known commercial software systems, such as EMTP [1], PSpice [2], Simulink [3], and others are currently used for modeling transients in electrical circuits. The equations of state in these software systems are compiled automatically based on the circuit diagram. These equations are integro-differential algebraic equations. The investigated electrical circuits of real devices usually contain a great number of elements. The duration of transients in complex circuits can be large. As a result, the simulation time of such processes can be long, which is undesirable. Modern requests of design engineers are required to increase the speed of calculations for realizing a real-time simulation. Therefore, the actual scientific task is the development of improved numerical methods for calculating electromagnetic transients that are faster than existing methods.
Analysis of publications. Multi-step methods of numerical integration of differential equations are widely used to solve systems of equations of state in well-known software complexes. As a result, various difference schemes [4,5] have been obtained that make it possible to calculate the value of the desired function at one time point from the known values of the function (or its derivatives) at several previous points. The problem of increasing the speed of simulation of transients in electrical equivalent circuits has led to the search for new methods for the numerical calculations of integro-differential equations of state.
The perspective of using orthogonal polynomials for integrating differential equations is shown in [6]. Orthogonal functions are a set of functions for which the scalar product of each pair is zero. The set of orthogonal functions constitutes the basis over which an arbitrary continuous function can be decomposed. The method of decomposing functions into a series of orthogonal polynomials is called the spectral method in this work. This is due to the analogy of the function’s expansion into Fourier series of trigonometric functions, where the set of expansion coefficients is the frequency spectrum. The investigation of the convergence speed of the series is presented in this paper. The author considers the terms “interpolation” and “collocation” to be identical, but the term “interpolation” is used to represent a known function, and the term “collocation” is used for expansion into the series of a function resulting from solving a differential equation. The fundamentals of the spectral method using the Chebyshev polynomials for integrating differential equations are given, and the advantages of this method over the finite difference method are shown in [5]. The bases of the spectral method for the solution of differential equations in partial derivatives for the problems of hydrodynamics are investigated in [7]. The best effectiveness of this method, compared to the methods of finite differences, was noted. The fundamentals of the spectral method are briefly outlined in [8]. The Chebyshev and Legendre polynomials are considered basic functions. The application of the method to the solution of equations in partial derivatives is shown. The bases of the spectral method for solving partial differential equations are also outlined in [9]. The presentation is presented without unnecessary abstract mathematics and trifles. The author tried to show that spectral methods are not as difficult as some experts believe. Work [10] is one of a few books on spectral methods based on MATLAB programs. This practical introduction is built around forty short and powerful MATLAB programs that a reader can download from the World Wide Web. The author argues that if one wants to solve ordinary differential equations with high accuracy, and if the data defining the problem is smooth, then spectral methods are usually the best tools. In this case, ten-digit accuracy can be achieved when the finite difference or finite element method gives two or three digits. Spectral methods require less computer memory than alternative methods. The approximation of the solution of transients for the current function in an electric circuit by series in the Chebyshev polynomials was used in [11]. It is shown by the transformation of the integro-differential equation of state into an algebraic equation for images of current. Kirchhoff’s rules for images of current have been proven. As a result, a method has been obtained that can significantly increase the speed of modeling. However, this work does not address the use of other orthogonal polynomials. The convergence of series in the Chebyshev polynomials and other orthogonal polynomials was compared in [12]. In many cases, though not always, the Chebyshev polynomials are preferred. The systematic presentation of the properties of the Chebyshev polynomials is devoted to [13]. The paper [13] is devoted to a systematic presentation of the properties of the Chebyshev polynomials. Methods for solving differential and integral equations are considered in this work.
In work [14], the approximation of transient solutions is used for current and magnetic flux functions in magneto-electric equivalent circuits of transformers by a series of Chebyshev polynomials. In [15], this method is used to model transients in asynchronous motors. The multi-step Gere method was used for comparison, as well as the Dommel method, and the efficiency of using the Chebyshev polynomials was shown in these works. However, these papers do not address the application of other orthogonal polynomials. In work [16], the approximation of the solution of transient processes for the derivative of the current function in the electric circuit by the Chebyshev polynomials is used. This is done in order to reduce the error in the approximation of the solution. However, these papers do not address the use of other orthogonal polynomials.
Conclusion. Orthogonal polynomials are successfully used to integrate differential and integral equations. However, there are few publications showing the application of spectral methods for calculating transients in electrical circuits. Until now, a comparative analysis of the effectiveness of using various orthogonal polynomials for modeling transients in electrical circuits has not been carried out.
The purpose of the work is
  • development of a unified method for calculating electromagnetic transients in electrical circuits based on the representation of solution functions in different polynomials;
  • development of a circuit model of the spectral method leading to the visibility of engineering calculation methods;
  • study of a method using algebraic polynomials, the Chebyshev, Hermite and Legendre polynomials.

2. Materials and Methods

Let us consider, as in [11], a simple linear electrical circuit containing series-connected resistive R, inductive L and capacitive C elements.
Let us suppose that before switching, the capacitor is charged to the voltage value uc(t0). If at the moment t = t0, the alternating voltage source u(t) is switching on, then the transient of i(t) occurs in the circuit. This process is described by a linear integro-differential equation:
L d i d t + R i + 1 C t 0 t i ( t ) d t + u C ( t 0 ) = u ( t )
Let us set the condition that equation (1), compiled according to Kirchhoff’s voltages rule, is observed exactly in a given series of n time reference points t0, t1, , tN−1 for the function i(t), which describes the dependence of current on time. These points are called collocation points. Kirchhoff’s voltages rule is approximated with some error at other points. The function i(t) is not known in advance.
It seems relevant to fulfill research and compare the features of the use of various orthogonal polynomials for calculating transients. The most popular polynomials of the Chebyshev, Hermite, Legendre, as well as algebraic polynomials, were selected for research.
The Weierstrass theorem states: “A function that is continuous on a finite closed interval can be approximated with a given accuracy by polynomials” [17]. Thus, the functions of varying current of time can be expanded into a series in terms of polynomials:
i ( t ) p ( t ) = c 0 P 0 ( t ) + c 1 P 1 ( t ) + c N 1 P N 1 ( t )
where the argument is t ∈ [a, b], P 0 ( t ) , P 1 ( t ) , P N 1 ( t ) —basis functions that can be orthogonal polynomials or members of an algebraic polynomial.
The Chebyshev and Legendre polynomials have the range of the argument x [ 1 , 1 ] . In this case, for convenience, argument t ∈ [a, b] is replaced by a dimensionless argument  for convenience, where x = ((2t − (a + b)))/((ba)). Algebraic polynomials have the domain of the argument t ∈ [0, ], and Hermite’s polynomials have t ∈ [−, ]. To improve the accuracy of calculations, it is advisable to normalize the values of the argument in real time: x = t·Kn, Normalization factor is K n = 2 / τ , τ = b − a.
Then the expansion series takes the form:
i ( x ) p ( x ) = c 0 P 0 ( x ) + c 1 P 1 ( x ) + c 2 P 2 ( x ) + c N 1 P N 1 ( x )
A series on orthogonal polynomials can be differentiated
i ( t ) p ( t ) = c 0 P 0 ( t ) + c 1 P 1 ( t ) + c N 1 P N 1 ( t )
d p d t = d p d x d x d t = [ c 1 P 1 ( x ) + c 2 P 2 ( x ) + c N 1 P N 1 ( x ) ] d x d t
where d x / d t = 2 / τ , and is also integrated.
J ( x ) = p ( x ) d x = ( c 0 P 0 ( x ) + c 1 P 1 ( x ) + c 2 P 2 ( x ) + c N 1 P N 1 ( x ) ) d x

2.1. Formation of Matrix Equations

We select, on the time interval [a, b], a number of reference points of collocation tm (m = 0, 1, 2, , N − 1), which corresponds to the points xm of the variable x on the normalized interval. If the condition (2) is written for each reference point, then we get a system of linear algebraic equations:
c 0 P 0 ( x 0 ) + c 1 P 1 ( x 0 ) + c 2 P 2 ( x 0 ) + c N 1 P N 1 ( x 0 ) = i 0 c 0 P 0 ( x 1 ) + c 1 P 1 ( x 1 ) + c 2 P 2 ( x 1 ) + c N 1 P N 1 ( x 1 ) = i ( x 1 ) c 0 P 0 ( x N 1 ) + c 1 P 1 ( x N 1 ) + c 2 P 2 ( x N 1 ) + c N P N 1 ( x N 1 ) = i ( x N 1 ) }
where P is a basis function (polynomial of any type).
Subtract the first equation from the equations of system (5) and obtain the following system, in which the number of unknown coefficients and the number of equations are the same:
c 1 [ P 1 ( x 1 ) P 1 ( x 0 ) ] + c 2 [ P 2 ( x 1 ) P 2 ( x 0 ) ] + c N 1 [ P N 1 ( x 1 ) P N 1 ( x 0 ) ] = i ( x 1 ) i 0 c 1 [ P 1 ( x 2 ) P 1 ( x 0 ) ] + c 2 [ P 2 ( x 2 ) P 2 ( x 0 ) ] + c N 1 [ P N 1 ( x 2 ) P N 1 ( x 0 ) ] = i ( x 2 ) i 0 c 1 [ P 1 ( x N 1 ) P 1 ( x 0 ) ] + c 2 [ P 2 ( x N 1 ) P 2 ( x 0 ) ] + c N 1 [ P N 1 ( x N 1 ) P N 1 ( x 0 ) ] = i ( x N 1 ) i 0 }
This system does not have zero determination, because for the considered polynomials P0 = 1 and does not depend on x.
Let us introduce a one-dimensional matrix of polynomials as a function of x.
Let us designate:
P ( x ) = [ P 1 ( x ) P 2 ( x ) P N 1 ( x ) ] T
V = [ P ( x 1 ) P ( x 2 ) P ( x N 1 ) ] [ P ( x 0 ) P ( x 0 ) P ( x 0 ) ]
The reduced system (6) in matrix form takes the view as:
V·C = II0,
where C = [c1 c2 … cN−1]T is a one-dimensional matrix of values of the coefficients of the approximating polynomial (2) without the coefficient c0;
I = [i(x1) i(x2) … i(xN1)]T is a one-dimensional matrix of values of current at reference points 1, 2, , N − 1;
I0 = [i(x0) i(x0) … i(x0)]T—is a one-dimensional matrix of values of current at reference point 0, matrix size n − 1.
If Equation (3) is written for each reference point x0, x1, …, xN−1, we get a system of linear equations similar to (5).
c 0 P 0 ( x 0 ) + c 1 P 1 ( x 0 ) + c 2 P 2 ( x 0 ) + c N 1 P N 1 ( x 0 ) = i 0 c 0 P 0 ( x 1 ) + c 1 P 1 ( x 1 ) + c 2 P 2 ( x 1 ) + c N 1 P N 1 ( x 1 ) = i ( x 1 ) c 0 P 0 ( x N 1 ) + c 1 P 1 ( x N 1 ) + c 2 P 2 ( x N 1 ) + c N P N 1 ( x N 1 ) = i ( x N 1 ) }
Add the first equation to the rest of the equations of the system (9). (It is impossible to subtract as in (6), since the full first column of matrix D will be equal to zero). Obtain a reduced system in which the number of unknowns and the number of equations are the same. Let us take into account that P′0 = 0. This system in matrix form is as follows:
D C = I′ + I0
where D is the quadratic matrix of the reduced system of linear Equation (10):
D = [ P ( x 1 ) P ( x 2 ) P ( x N 1 ) ] + [ P ( x 0 ) P ( x 0 ) P ( x 0 ) ]
I′ = [i′(x1) i′(x2) … i′(xN−1)]T is the one-dimensional matrix of values of current derivatives for points with the number k = 1, 2, …, N − 1,
0 = [i′(x0) i′(x0) … i′(x0)]T is a one-dimensional matrix of values of derivatives for zero time point, matrix size N − 1.
Integrals from polynomials are expressed by Equation (4). The integral with the upper limit xm has the form as:
J ( x m ) = x 0 x m ( c 0 P 0 ( x ) + c 1 P 1 ( x ) + c 2 P 2 ( x ) + c N 1 P N 1 ( x ) ) d x = c 0 x 0 x m P 0 ( x ) d x + x 0 x m ( P C ) d x
The values of the given argument xm (m = 1 … N − 1) at the reference points correspond to the values of a function (12) which are the rows of the matrix J:
J = [ J 1 J m J N 1 ] T
The coefficient c0 is determined from the first equation of the system (5) by the following expression:
c 0 = i 0 ( c 1 P 1 ( x 0 ) + c 2 P 2 ( x 0 ) + c N 1 P N 1 ( x 0 ) ) = i 0 P ( x 0 ) C
Here, it is taken into account that P0 = 1.
Let us consider the features of the matrices V, D, J constructed for the system.
The Legendre polynomials are defined in the segment of varying of the argument x ∈ [−1, 1] and are calculated by recurrent formulas [17]:
Pn(x) = [(2n − 1)x · Pn−1(x) − (n − 1)Pn−2(x)/n; P0(x) = 1, P1(x) = x.
We use the vector (7) of the Legendre polynomials as a function of x. Then the expansion of the current function into a series (2) takes the form (16):
i ( x ) p ( x ) = c 0 P 0 ( x ) + P ( x ) C
If Equation (16) is written for each point x1, x2, , xN−1, we obtain a system of linear equations, which has the matrix form (9).
The derivatives of the Legendre polynomials are calculated by recursion [14]:
P n + 1 ( x ) P n 1 ( x ) = ( 2 n 1 ) P n 1 ( x )
From expressions (3) and (16) we have got:
d i d x P C
If Equation (17) is written for each point x1, x2, , xN−1, we obtain a system of linear equations, which has the matrix form (11).
Integrals of the Legendre polynomials are defined by formulas [17]:
P n ( x ) d x = P n + 1 ( x ) P n 1 ( x ) 2 n + 1 ;   P 0 ( x ) d x = P 1 ( x ) + d ;   P 1 ( x ) d x = P 2 ( x ) / 3 + d .
As a result, using property (18), we get from expression (13)
J ( x m ) = x 0 x m p ( x ) d x = [ P 1 ( x m ) P 1 ( x 0 ) ] c 0 + { 1 3 [ P 2 ( x m ) P 2 ( x 0 ) ] } c 1 + + { [ P k + 1 ( x m ) P k + 1 ( x 0 ) 2 k + 1 P k 1 ( x m ) P k 1 ( x 0 ) 2 k + 1 ] } c k + + { [ P N ( x m ) P N ( x 0 ) 2 N 1 P N 2 ( x m ) P N 2 ( x 0 ) 2 N 1 ] } c N 1 .
The expression (14) for calculating c0 is substituted into (19) and has got:
J ( x m ) = x 0 x m p ( x ) d x = δ m i 0 + { 1 3 [ P 2 ( x m ) P 2 ( x 0 ) ] P 1 ( x 0 ) δ m } c 1 + + { [ P k + 1 ( x m ) P k + 1 ( x 0 ) 2 k + 1 P k 1 ( x m ) P k 1 ( x 0 ) 2 k + 1 ] P k ( x 0 ) δ m } c k + + { [ P N ( x m ) P N ( x 0 ) 2 N 1 P N 2 ( x m ) P N 2 ( x 0 ) 2 N 1 ] P N 1 ( x 0 ) δ m } c N 1
Let us express Equation (20) in terms of matrix V:
J ( x m ) = δ m i 0 + { 1 3 [ V 2 ( x m ) ] P 1 ( x 0 ) δ m } c 1 + + { [ V k + 1 ( x m ) 2 k + 1 V k 1 ( x m ) 2 k + 1 ] P k ( x 0 ) δ m } c k + + { [ V N ( x m ) 2 N 1 V N 2 ( x m ) 2 N 1 ] P N 1 ( x 0 ) δ m } c N 1 .
Let us introduce a one-dimensional matrix of all addendums (except the first one) included in expression (21) as a function of the argument x:
S x ( x m ) = [ { 1 3 V 2 ( x m ) } { V k + 1 ( x m ) 2 k + 1 V k 1 ( x m ) 2 k + 1 } { V N ( x m ) 2 N 1 V N 2 ( x m ) 2 N 1 } ]
The expression (21) takes the form:
J ( x m ) = x 0 x m p ( x ) d x = δ m i 0 + ( S x m δ m P ( x 0 ) ) C
where
δ m = P 1 ( x m ) P 1 ( x 0 ) = x m x 0
For the reference points m = 1, 2, , N − 1, the integral (23) has the form:
J ( x 1 ) = δ 1 i 0 + ( S x 10 δ 1 P 1 ( x 0 ) C
J ( x n ) = δ n i 0 + ( S x n 0 δ n P n ( x 0 ) C
J ( x N 1 ) = δ N 1 i 0 + ( S x N 10 δ N 1 P N 1 ( x 0 ) C
In the matrix form, for all reference points, these equations have the form:
J = [ J 1 J n J N 1 ] = [ S x 1 , 0 δ 1 P 1 ( x 0 ) S x n , 0 δ 2 P n ( x 0 ) S x N 1 , 0 ) δ N P N 1 ( x 0 ) ] [ c 1 c n c N 1 ] + Δ I 0
or
J = S C + Δ I 0
where
S = [ S x 1 , 0 δ 1 P ( x 0 ) S x n , 0 δ 2 P ( x 0 ) S x N 1 , 0 ) δ N P ( x 0 ) ]
Δ = [ δ 1 δ 2   δ N 1 ] T

2.2. Algebraic Polynomials

The one-dimensional matrix of algebraic polynomials (7) has the form:
P ( x ) = [ P 1 ( x ) P 2 ( x ) P N 1 ( x ) ] = [ x x 2 x 3 x N 1 ]
The function of current approximated by the polynomial is:
i ( x ) p ( x ) = c 0 P 0 ( x ) + P ( x ) C
If Equation (29) is written for each point x1, x2, , xN−1 then we get a system of linear equations, which has the matrix form (9).
Let us differentiate the expression (28). The row-vector of derivatives of algebraic polynomials has the form as:
P ( x ) = [ 1 2 x 3 x 2 ( N 1 ) x N ]
If equation (3) for the derivatives is written for each point x1, x2, , xN−1, we obtain a system of linear equations, which has the matrix form (11).
Integrals from algebraic polynomials (4) have the form:
p ( x ) d x = x c 0 + 1 2 x 2 c 1 + + 1 N x N c N 1
For each reference point with the value of the time argument tm, which corresponds to the moments xm of the given argument x, we have equation (23). Then, for all N − 1 referent points, we obtain the matrix system of Equation (25).
The Chebyshev polynomials of the 1st type [13,17] are defined in the segment of varying in the argument x ∈ [−1, 1] as
Tn(x) = cos(narc cos(x))
and calculated by recursion
T n 1 ( x ) + T n + 1 ( x ) = 2 x   T n ( x )
taking into account that
T 0 ( x ) = 1 ,   T 1 ( x ) = x
The Hermite polynomials are defined in the segment t ∈ [−∞, ∞] of the argument variation and are calculated by recursion [17]:
H n ( x ) = 2 x H n 1 ( x ) 2 ( n 1 ) H n + 2 ( x )
H 0 ( x ) = 1 ;   H 1 ( x ) = 2 x ;   H 2 ( x ) = 4 x 2 2
Matrices V, D, J are constructed in the same way both for Legendre polynomials and for Chebyshev and Hermit algebraic polynomials.

2.3. Recording the Equation of State of an Electrical Circuit through Polynomials

Let us write the integro-differential Equation (1) for the specific values of the argument at the reference points by varying the point numbers m = 1, 2, , N − 1. We get a system of equations, which has the matrix form [11]:
L I + R I + B J + u C 0 = U ,
where B = 1/C is the inverse value of condenser capacitance, U is the vector of voltage source values at points 1, 2, , N − 1 of the time segment; I, I′, J are vectors of current values (9), current derivative values (11) and current integral values (13) at reference points, uC0 is voltage value across the capacitor at the initial moment of time t0.
If we substitute vectors I (9), I′ (11), J (25) into expression (43), then we obtain the expression
L ( D C + i 0 ) + R ( V C i 0 ) + B ( S C Δ i 0 ) + u C 0 = U ,  
or
( L D + R V + B S ) C = U u C 0 + R i 0 L i 0 B Δ i 0
or
Z C = F
where
Z = L D + R V + B S
F = U u C 0 + R i 0 L i 0 B Δ i 0
Equation (39) is an expression of the Kirchhoff voltages rule for image C.
The solution of equation (45) is determined by the formula (42):
C = Z 1 F
where Z 1 denotes the operation of taking the inverse matrix is denoted.
As a result of the solution (39), the one-dimensional matrix C of polynomial collocation coefficients of the current is determined. In the case of orthogonal polynomials, this one-dimensional matrix can be called a spectrum. This is due to the analogy of the Fourier series decomposition of functions by trigonometric functions, where the set of decomposition coefficients is the frequency spectrum.
Then, with the known initial current value i0 and its derivative in zero point and the initial voltage value across the capacitor uC0, the current values can be determined at all arbitrary points of the time segment τ according to (2).
Circuit interpretation of the method of the numerical calculation of transients in electrical circuits.
Equation (39) can be interpreted using a special equivalent scheme. Let current i(t) flow in the R-L-C-e branch of the original circuit (Figure 1). In a special equivalent scheme (Figure 2) the original current i(t) after switching is represented by its image C. Image C is the one-dimensional matrix of extensional coefficients in a series by polynomials of the function of current i(t).
The role of total resistance plays Z = L D + R V + B S .
The right side of Equation (44) contains 4 terms, which can be interpreted as voltage sources.
The resistive element has an image in the form of resistance V in the substitution branch. Direct voltage source having R·i0 value is joined to this element in series and in opposite direction concerning to the current (see Figure 2). The inductive element has an image in the form of some resistance D. A DC voltage source having a L∙i’o value is connected in series with this element in the current direction.
The capacitive element has an image in the form of resistance S. The source of direct voltage with value ·i0 + uC0 is joined to this resistive element in series and in the opposite direction concerning to the current.
It has been proven in [11] that the current Kirchhoff rule is also observed for images of Ck branches converging to the node (k = 1, 2, , b):
k = 1 b C k = 0
Conclusions. The one-dimensional matrix image C corresponds to the real current i(t) in the equivalent scheme shown in Figure 2. All images of currents C in the equivalent circuit satisfy Kirchhoff’s rule for a DC circuit if the circuit is composed according to the following rules:
  • the voltage source is replaced by the one-dimensional matrix source U containing the voltage value at all N − 1 reference points;
  • the resistive element R, inductive element L and capacitive element B = 1/C in the equivalent circuit are replaced by operator resistances and additional sources of direct voltage.
Therefore, with the known initial values of the branch currents i0k values of derivatives of the branch currents I’0k and the voltages across the capacitors uC0k at the point t0 of the segment [a, b], the system of equations compiled according to Kirchhoff’s rules for images of currents C for all nodes without one and for all main contours has a single solution. As a result of solving a system of linear algebraic equations compiled according to Kirchhoff’s rules for images of currents, we obtain a one-dimensional matrix C consisting of submatrix Ck containing the values of the coefficients of the expansion in polynomials of the functions of current ik(t) for all branches. Knowing the polynomial expansion coefficients of the current ik(t) and the value of ik0 for branch k, we can obtain the current values Ik at all reference points in the time interval [a, b]:
Ik= V·Ck + ik0
Error estimation and its minimization. If the positions of the reference points in the segment [−1, 1] are not chosen evenly, but in the zeros of the Chebyshev polynomials T N ( x k ) = 0 ;
x k = cos [ 2 k + 1 2 N π ] ,   k = 0 ,   1 ,   ,   N 1 ,
interpolation error can be significantly reduced. In this case, the density of the reference points thickens at the edges of the segment. These points are called the Chebyshev–Gauss (CG) ones. The interpolation error of the time function of the current, derivative and time integral of the current is estimated in [11]. In this work, it is shown that the derivative of the solution function has the largest approximation error. We also encounter an approximation of the current derivative in the analysis of transients. To reduce this error, it is advisable to choose the locations of the reference points not in the zeros of the Chebyshev polynomials, but in the maxima. These points are called the Gauss–Lobatto (GL) ones. Thus, the optimal choice of the location of the reference points for different tasks is not clear.
In [11], the multiplier τN = (b − a)n is included in the formulas for estimating the error, therefore the error largely depends on the dimension of the time segment. At large intervals of variation of the independent variable t >> τ, the entire modeling interval should be divided into several segments Nu, and Equation (39) should be solved sequentially on each segment by a cyclic run increasing the value of the current time by τ.

2.4. Studies of Transient Modeling Methods

A computer program for the calculation of transients in an AC electric circuit containing the resistive R, inductive L and capacitive C elements connected in series has been developed for researching the considered methods. The capacitor is charged up to the voltage value uc0 before a switching. The voltage source contains the first, fifth, tenth and twentieth harmonics. The calculation according to the program developed on the basis of considered methods has been compared with the exact calculation obtained analytically. The program is compiled in MATLAB.
The equivalent circuit for images of current is shown in Figure 2. The block-diagram is shown in Figure 3. The program starts by entering the initial data R, L, C, specifying the interval of simulation tend − tbegin and the dimension of the one-time segment Segm. Then, the initial conditions i0 and uC0 are given for the first time segment. The number of segments is defined as the whole part of Nu= (tend − tbegin)/Segm. The program provides a selection of the type of polynomials. For each type, there are features of the formation of matrices V, D, S. There is also a choice of the method of distribution of reference points t: at zeros, at the in maxima of the Chebyshev polynomials, as well as a uniform distribution of points.
The operator resistance Z = L D + R V + B S is calculated. Then cyclic changing of segment number ku from 1 up to Nu is carried out. The calculation error depends on the dimension of the time segment. Choosing a segment dimension for different tasks is done in a trial way. As the segment dimension decreases, the error decreases too.
In each cycle voltage source values are calculated at reference points (vector U), the right-hand side F of Equation (41) is calculated, vector C, the vectors of current values I = V C + I 0 , current derivative I = D C , the voltage across the capacitor U c = B ( J C + I 0 Δ ) + U c 0 are calculated. The values of vector elements I, I′, Uc with maximal numbers of nodes of the current segment are determined and they are taken as initial values for the next segment. Calculated values for the current cycle are written to arrays for output. When Nu cycles should be executed, program execution is terminated.
The calculation according to the proposed method was compared with the exact calculation analytically obtained analytically. The program with accompanying subroutines can be freely downloaded from the link [18] and tested in the MATLAB system. The script program is called RLC_ALCH_1_5_10_20_NU.

3. Results

Analysis of the Obtained Calculation Results

The circuit parameters for calculation are given: R = 0.1 Ohm, L = 0.001 H, C = 0.001 F. The voltage source contains the first harmonic with a frequency of 50 Hz and an amplitude Em1 = 14.1 V, the fifth harmonic Em5 = Em1/2, the tenth harmonic Em10 = Em1/5 and the twentieth harmonic Em20 = Em1/5.
The results of transient calculation using the Chebyshev algebraic polynomials are shown in Figure 4a–c. The reference points were placed in the zeros of the Chebyshev polynomials. The relative deviations of the values of the function of current ik from the values of ianal k obtained by the exact analytical method, are determined as, e r r o r   i = ( i a n a l   k i k ) / | I | max , where |I|max is the maximum value of the current module.
The time dependence of the function error i is shown in Figure 4d.
Asterisks in the figures show the values obtained by an accurate analytical method. The number of reference points per the segment n = 7. A total of 125 time sections were used. The graph shows that with increasing time value the error does not increase.
To estimate the accuracy of calculations, the relative root-mean-square error deviations are determined. For this purpose, the quadratic deviation of the calculated value of the function of current from the exact value obtained by an accurate analytical method is calculated in the program at each reference point:
Δ i k = ( i a n a l   k i k ) 2
The mean quadratic deviation is calculated for the entire simulation interval
Δ i k = 1 ( N 1 ) · N u k = 1 ( N 1 ) N u Δ i k
and the relative mean quadratic deviation in percent
Δ i o t n % = Δ i | I | m a x · 100 %
The errors of the capacitor voltage function and the derivative of the function of current are calculated analogically.
Table 1 shows the relative root-mean-square deviations in percent for the function of current Δi, the function of the current derivative—Δdi/dt and the function of the capacitor voltage—ΔUc. The calculations were carried out with a different choice of the method of distribution of reference points: at the zeros of the Chebyshev polynomials, at the maxima of the Chebyshev polynomials, as well as with the uniform distribution of points. Two simulation intervals of 0.05 s and 0.5 s were given. The use of a longer interval 0.5 s makes it possible to evaluate the stabilization process of the calculation. The calculation time on the simulation interval of 0.05 s with the segment duration of 0.0004 s and the number of reference points on into the segment n = 7 is the same in all calculations The processor time of the calculation was estimated with the help of tic, toc operators.
Diagrams of changes in the errors in calculating the voltage across the capacitor when simulating time is equal to 0.5 s are given in Figure 5. As follows from Figure 5, after about 0.1 s, calculation errors decrease and stabilize. The relative mean quadratic error deviations for a simulation time 0.5 s are from 40% up to 99% relative to these errors for a simulation time 0.05 s (Table 1). Error stabilization indirectly indicates the reliability of the obtained analytical expressions and the prospects of using the methods under study for calculating complex circuits.

4. Discussion

The comparison of the errors obtained in calculations by different methods showed the following results. The method using algebraic polynomials is the most accurate. The mean relative quadratic deviations of the current errors were less than 5 × 10−5%. Errors when using other polynomials were more than 1000 times higher. The lowest accuracy was when using the Hermite polynomials The method of distributing the reference points influenced the accuracy of the calculation. The least errors are in the following distribution methods: algebraic polynomials—in maxima; the Chebyshev and the Legendre polynomials—in zeros; the Hermite polynomials—with a uniform distribution of points.
An increase in the accuracy of calculation can be achieved by reducing the segment size. However, by how many times the segment size decreases, the calculation time increases by the same factor. Increasing the number of reference points n > 7 does not improve the accuracy, but increases the calculation time.
It is possible to provide a simplified explanation of the obtained results. When using other orthogonal polynomials, in comparison with algebraic ones, the coefficients in the expressions representing derivatives and integrals of the currents change significantly. With the equality of the right and left parts of the system of Equation (44), this leads to an increase in errors in the calculation of voltages across each circuit element and the current in the circuit, accordingly.
The calculation time was compared according to the program based on the proposed method and according to the program based on the implicit Euler method of numerical integration of differential equations. The solution of the problem under consideration by the Euler method and its comparison with the solution by the analytical method is given in [19]. This program can be freely downloaded from the specified link and tested in the MATLAB system. The processor time for calculating this program in the MATLAB system (estimated using the built-in function tic, toc) is 6.8 times greater than when using orthogonal polynomials.
The relative mean quadratic current error is 0.85%, that is, it is much larger when orthogonal polynomials are applied. It can be explained as so: Methods for the numerical integration of differential equations calculate sequentially the values at the current step, based on values at the previous steps. In this case, quite a large number of points are used. When using polynomials, the type of solution function is known—polynomial. In the current segment, N − 1 value is calculated at the reference points, and this reduces the calculation time.
The proposed method was also tested to calculate the transient in a more complex circuit. The computer program can be downloaded from the link [20]. The calculation results for this program were verified by comparing the calculations obtained using the multistep Geer method as well as the popular Dommel method.
In conclusion, we note that the development and study of the proposed method for calculating complex nonlinear electrical and magneto-electric circuits of arbitrary complexity will be presented in subsequent publications.

5. Conclusions

  • The developed unified spectral method for calculating electromagnetic transients in electrical circuits based on the representation of solution functions by orthogonal polynomials can significantly reduce the simulation time compared with the known methods of numerical integration of differential equations. It is desirable to normalize the segment dimension so that it is close to 1 s. Some researchers consider function approximation of transient by a polynomial to be a risky operation because parasitic oscillations can occur. It is shown that risk is justified if the number of decomposition members is less than 7. The calculation error according to the proposed method can be reduced as you like, reducing the value of the argument segment. Then, the number of segments increases.
  • The completed development of the circuit model of the method is convenient for practice.
  • The study of the method for algebraic polynomials, as well as the Chebyshev, Hermit and Legendre polynomials, showed that the greatest accuracy is achieved for algebraic polynomials. Errors were more than 1000 times higher when using other polynomials. The method of distributing the reference points influences the accuracy of the calculation.
  • Comparison of the calculation time by the proposed method with the implicit Euler method showed that the calculation time decreased by 6.8 times. The calculation of the process in the circuit at a longer time interval showed a decrease and stabilization of errors, which indirectly indicates the reliability of the obtained analytical expressions and the prospects for using the studied methods for calculating complex electrical and magneto-electric circuits.
  • The mathematical justification of the proposed method may be interesting for developers of computer modeling programs. For practicing electrical engineers, equivalent circuits and computer programs themselves are of greatest interest.

Author Contributions

Conceptualization, S.T. and I.O.; methodology, S.T. and I.O.; software, S.T.; validation, S.T. and I.O.; formal analysis, S.T. and I.O.; investigation, S.T. and I.O.; resources, S.T. and I.O.; data curation, S.T. and I.O.; writing-original draft preparation, S.T. and I.O.; writing review and editing, S.T. and I.O.; visualization, S.T. and I.O.; supervision, S.T. and I.O.; project administration, S.T. and I.O.; funding acquisition, S.T. and I.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The study did not report any data.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Eiichi, H.; Tadashi, K.; Junichi, A.; Hisatochi, I. Power System Transient Analysis: Theory and Practice using Simulation Programs (ATP-EMTP); John Wiley & Sons: Hoboken, NJ, USA, 2016; 280p, ISBN 978-1-118-73749-1. Available online: https://download.e-bookshelf.de/download/0007/6448/58/L-G-0007644858-0013550801.pdf (accessed on 1 November 2022).
  2. Akulin, A.; Suponin, A. Modelirovanie i rasshirennyj analiz skhem v pspice [Modeling and Advanced Circuit Analysis in PSpice]. Elektronika nauka|tekhnologiya|biznes [Electronics Science|Technology|Business]. 2017; 82–91. (In Russian) [Google Scholar]
  3. Chernykh, I.V. Modelirovanie Elektrotekhnicheskikh Ustrojstv v MATLAB, Simpowersystems i Simulink [Modeling of Electrical Devices in MATLAB, SimPowerSystems and Simulink] Moscow; DMK Press: St. Petersburg, Russia, 2014; 288p. (In Russian) [Google Scholar]
  4. Butcher, J.C. Numerical Methods for Ordinary Differential Equations; John Wiley & Sons Ltd.: West Sussex, UK, 2008; 484p, ISBN 978-0-470-72335-7. [Google Scholar]
  5. Epperson, J.F. An Introduction to Numerical Methods and Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2021. [Google Scholar]
  6. Boyd, J.P. Chebyshev and Fourier Spectral Methods; University of Michigan Ann Arbor: Ann Arbor, MI, USA, 2001. [Google Scholar]
  7. Costa, B. Spectral Methods for Partial Differential Equations. Math. J. 2004, 6, 1–32. Available online: https://revistas.ufro.cl/ojs/index.php/cubo/article/view/1552 (accessed on 1 November 2022).
  8. Gourgoulhon, E. Introduction to Spectral Methods; Laboratoire de l’Univers et de ses Théories (LUTH) CNRS/Observatoire de Paris Meudon, France. 2002. Available online: https://lorene.obspm.fr/palma.pdf (accessed on 1 November 2022).
  9. Kopriva, D.A. Implementing Spectral Methods for Partial Differential Equations Algorithms for Scientists and Engineers; Media, B.V., Ed.; Springer Science + Business: Berlin/Heidelberg, Germany, 2009; 389p, ISBN 978-90-481-2260-8. e-ISBN 978-90-481-2261-5, Library of Congress Control Number: 2009922124; Available online: https://link.springer.com/content/pdf/bfm%3A978-90-481-2261-5%2F1 (accessed on 1 November 2022).
  10. Trefethen, L.N. Spectral Methods in MATLAB; SIAM: Philadelphia, PA, USA, 2000; 181p, Available online: https://riin.info/compress-pdf.html (accessed on 1 November 2022).
  11. Tykhovod, S.; Patalakh, D. Calculation of Transients in Electrical Circuits at the Use of Solution Approximation by Tchebyshev’s Polynomials. In Proceedings of the 2019 IEEE 20th International Conference on Computational Problems of Electrical Engineering (CPEE), Lviv-Slavske, Ukraine, 15–18 September 2019; Available online: https://ieeexplore.ieee.org/document/8949129 (accessed on 1 November 2022).
  12. Boyd, J.P.; Petschek, R. The Relationships Between Chebyshev, Legendre and Jacobi Polynomials: The Generic Superiority of Chebyshev Polynomials and Three Important Exceptions. J. Sci. Comput. 2014, 59, 1–27. [Google Scholar] [CrossRef]
  13. Mason, J.C.; Handscomb, D.C. Chebyshev Polynomials; CRC Press LLC: Boca Raton, FL, USA; London, UK; New York, NY, USA; Washington, DC, USA, 2002; 335p. [Google Scholar]
  14. Tykhovod, S. Calculation of transient processes in transformers based on magnetoelectrical equivalent schemes using Chebyshev’s polynomials. Electrotech. Electroenergics 2015, 2, 11–24. Available online: http://ee.zntu.edu.ua/article/view/86782 (accessed on 1 November 2022). (In Russian).
  15. Tokmakov, I. Modeling of electromechanical transients in asynchronous motors based on the use of Chebyshev’s polynomials. Electrotech. Electroenergics 2015, 2, 35–41. Available online: http://ee.zntu.edu.ua/article/view/86791 (accessed on 1 November 2022). (In Russian).
  16. Patalakh, D. Modification of numeral calculation of transients in electric circuits on basis of Tchebyshev’s polynomials. Electrotech. Electroenergics 2019, 4, 21–31. Available online: http://ee.zntu.edu.ua/article/view/198837/199031 (accessed on 1 November 2022). (In Russian). [CrossRef]
  17. Bateman, H. Higher Transcendental Functions; McGRAW-HILL Book Company, Inc.: New York, NY, USA; Toronto, ON, Canada; London, UK, 1953; 296p, Volume 2. [Google Scholar]
  18. Program for Calculating the Transient Process by the Spectral Method in the Circuit RLCe. Available online: https://drive.google.com/file/d/1hJBVhGWhPXQQZxbWmrH_cw9SxQQU0wE3/view?usp=sharing (accessed on 1 November 2022).
  19. Program for Calculating the Transient Process by the Euler Method in the Circuit RLCe. Available online: https://drive.google.com/file/d/1PRRTaOIZ6KAOGrRYviBXa9g766uDRJGC/view?usp=sharing (accessed on 1 November 2022).
  20. Program for Calculating the Transient Process by the Spectral Method in Complex Circuits. Available online: https://drive.google.com/file/d/1XiNEShpPYcgQhqNiWotv7EyqZ0_2v-ZO/view?usp=sharing (accessed on 1 November 2022).
Figure 1. RLC circuit before a switching.
Figure 1. RLC circuit before a switching.
Energies 15 08550 g001
Figure 2. Equivalent scheme of R-L-C-e circuit.
Figure 2. Equivalent scheme of R-L-C-e circuit.
Energies 15 08550 g002
Figure 3. Block-diagram of calculation.
Figure 3. Block-diagram of calculation.
Energies 15 08550 g003
Figure 4. Results of transient calculation; (a) current, (b) voltage across condenser; (c) current derivative; (d) deviations of current function values error i.
Figure 4. Results of transient calculation; (a) current, (b) voltage across condenser; (c) current derivative; (d) deviations of current function values error i.
Energies 15 08550 g004
Figure 5. Errors of the function Uc (t): (a) algebraic polynomials; (b) the Chebyshev polynomials; (c) the Legendre polynomials; (d) the Hermite polynomials.
Figure 5. Errors of the function Uc (t): (a) algebraic polynomials; (b) the Chebyshev polynomials; (c) the Legendre polynomials; (d) the Hermite polynomials.
Energies 15 08550 g005
Table 1. Relative mean quadratic deviations of simulating errors in %.
Table 1. Relative mean quadratic deviations of simulating errors in %.
Algebraic
Polynomials
The Tchebyshev
Polynomials
The Legendre
Polynomials
The Hermite
Polynomials
Simulation Time. sZeroMaxEqual DistributionZeroMaxEqual DistributionZeroMaxEqual DistributionZeroMaxEqual Distribution
Δi0.052.75 × 10−44.67 × 10−53.41 × 10−40.730.781.3390.950.981.3758.448.197.462
0.52.54 × 10−44.66 × 10−53.11 × 10−40.690.731.1590.890.911.2076.896.716.074
Δdi/dt0.051.03 × 10−46.06 × 10−61.34 × 10−40.400.460.8330.480.530.7555.785.605.127
0.54.97 × 10−55.50 × 10−66.16 × 10−50.350.390.6210.390.410.5264.083.943.567
ΔUc0.053.61 × 10−41.79 × 10−54.75 × 10−41.441.653.0011.701.892.69320.820.318.51
0.51.55 × 10−41.53 × 10−51.95 × 10−41.241.382.2301.381.461.85714.714.312.91
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tykhovod, S.; Orlovskyi, I. Development and Research of Method in the Calculation of Transients in Electrical Circuits Based on Polynomials. Energies 2022, 15, 8550. https://doi.org/10.3390/en15228550

AMA Style

Tykhovod S, Orlovskyi I. Development and Research of Method in the Calculation of Transients in Electrical Circuits Based on Polynomials. Energies. 2022; 15(22):8550. https://doi.org/10.3390/en15228550

Chicago/Turabian Style

Tykhovod, Sergii, and Ihor Orlovskyi. 2022. "Development and Research of Method in the Calculation of Transients in Electrical Circuits Based on Polynomials" Energies 15, no. 22: 8550. https://doi.org/10.3390/en15228550

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