<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2013.41A034</article-id><article-id pub-id-type="publisher-id">AM-27499</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  The Simulating of Power Electronics Systems with the Use of Explicit Numerical Schemes
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>uri</surname><given-names>Tanovitski</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Gennady</surname><given-names>Kobzev</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Tomsk State University of Control Systems and Radioelectronics, Tomsk, Russia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>tyn@ie.tusur.ru(UT)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>30</day><month>01</month><year>2013</year></pub-date><volume>04</volume><issue>01</issue><fpage>223</fpage><lpage>227</lpage><history><date date-type="received"><day>September</day>	<month>28,</month>	<year>2012</year></date><date date-type="rev-recd"><day>October</day>	<month>28,</month>	<year>2012</year>	</date><date date-type="accepted"><day>November</day>	<month>5,</month>	<year>2012</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   Automated simulating of power electronics systems is currently performed by means of nodal analysis method combined with implicit numerical integration schemes. Such method allows to find transient solutions, even when the integrated system is stiff, however, it leads to some difficulties when simulating big systems and sometimes to the deterioration of computations quality, that is reflected in decrease in accuracy, oscillations of solutions, which are not present in the initial model. This paper analyzes the shortcomings of this approach, and proposes to apply explicit numerical schemes with stability control on the integration step and with reduction of some of state variables. A brief description of the method of finding transient solutions and an example of the analysis are also given in the present paper.  
     
 
</p></abstract><kwd-group><kwd>Transient Analysis; Implicit; Explicit Numerical Schemes; Power Electronics</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In simulation of power electronics systems specialized packages SPICE [<xref ref-type="bibr" rid="scirp.27499-ref1">1</xref>] are generally used. MicroCap, Multisim, PSpice, SwitchCad, LTSpice, etc. enjoy popularity among Russian engineers. The SPICE package itself was created in the USA in the 70-s. The basic ideas underlying the SPICE package—the nodal method, the process for sparse matrix computations and implicit schemes for integration of trapezoidal or Gear method were so successful that the current generation of modeling tools differs little from its predecessor in the part of modeling cores. The advantage of SPICE is particularly apparent in simulation of 80-s integrated circuits, mainly containing capacitive type inertial elements and smooth non-linearity represented by an exponential function, polynomial or a rational function of polynomials. SPICE is able to simulate such circuits containing up to hundreds of nodes and thousands of complex non-linear dependencies within a reasonable time frame. Many producers of SPICEbased software cultivate the “illusion of virtualization” which is illustrated in advertising brochures about the programs—when using our product, you get a virtual analogue of device being designed. While the principle of virtualization works for digital systems, with dynamic models things are more complicated. One can identify the following typical problems associated with automated simulating using SPICE programs:</p><p>• The inability to flexibly impose constraints on the relative and absolute error for individual variables— in SPICE constraints on the accuracy of the currents and voltages are applied directly to all the nodal voltages and currents, which creates problems, for example, in modeling power converters with input voltages up to several kilovolts or magnifying and corrective devices with the working voltage range of a few millivolts;</p><p>• “Excess Q-factor” that occurs in the presence of inductance contacts in the circuit—a semiconductor device in the locked state, generating long-term oscillatory processes that are not present in real devices;</p><p>• Inability to effectively “scale” models for parallel computation, operational ceiling of many packages is limited to a few hundred nodes.</p><p>Our study [<xref ref-type="bibr" rid="scirp.27499-ref2">2</xref>] also demonstrates that the reduction of the integration step in order to improve the accuracy of the numerical scheme when using the node potential method at the same time degrades the conditioning of the system of equations. For small steps this does not allow to integrate with reasonable accuracy.</p><p>The abovementioned problems of SPICE programs, in our opinion, are connected with the use of implicit integration schemes in the computational core, and they can be partly solved by using explicit numerical schemes.</p></sec><sec id="s2"><title>2. Explicit and Implicit Numerical Schemes</title><p>Implicit schemes have proven to be so popular, because they partially solve the problem of “stiff” [<xref ref-type="bibr" rid="scirp.27499-ref3">3</xref>] occurring when trying to integrate equations with time constants of transient response, spread out onto several orders of magnitude. A simple example might be a semiconductor diode that protects the circuit input from static electricity. Such a diode will be in a locked state most of the time. When integrating its capacity, which is in the range of femtoto pico-farad, and the internal resistance of the order of fractions of Ohm are taken into account. At such parameters the processes in a virtually locked diode will not affect the operation of integrated circuits, functioning, for example, in the range of sound frequencies, but will create problems of computational nature. In this example, the diode can be simply removed from the model, but in power systems, e.g. with pulse-width modulation converters, where there are both fast processes that occur on the fronts of the pulses and slow processes at other times, elements of schemes simply can not be removed.</p><p>In SPICE programs integration is performed with a variable step. The use of implicit schemes allows not to control the stability and accuracy is measured according to the Runge rule. When fast transients caused by fronts of pulses end, the Runge rule allows to increase the step.</p><p>Assume that the simplest model contains the circuit elements resistor R and capacitor C shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, with a fast transient (relative to the time of change in other variables).</p><p>Our model is:</p><p><img src="8-7401045\5b6f7b93-9c89-4cac-ad17-c7448db08f1d.jpg" /></p><p>Let the initial conditions be<img src="8-7401045\cdac3a7d-803e-4a32-948b-37496ef07d2d.jpg" />. Let us consider what happens to the integration error for the free component of the solutions when using different methods of integration with a step h. The time constant of this circuit τ = RC. The dependence of the error on the magnitude of step is shown on a logarithmic scale in <xref ref-type="fig" rid="fig2">Figure 2</xref>. Curve 1 is the analytical solution of the Cauchy problem<img src="8-7401045\351b5ce4-3d48-4255-9345-171751eb4ee9.jpg" />; curve 2 is the error obtained by using the explicit Euler scheme<img src="8-7401045\38e09d6d-b8a6-4492-9bf1-401ae08e2e8c.jpg" />, where<img src="8-7401045\5dbbf218-2c94-428e-9412-67480906194e.jpg" />; curve 3—<img src="8-7401045\8955e6b8-d883-4aa7-9465-89bf3ed47c6b.jpg" />; the implicit Euler scheme—<img src="8-7401045\d2ea7cff-3d90-4bf3-b3d2-53afe57a96e1.jpg" />curve 4— <img src="8-7401045\a17583a0-0a53-46cb-8aaf-ccb3cc8ad10f.jpg" /> error of trapezoidal schemes—<img src="8-7401045\94ce6372-0589-49d6-9306-3437c29bad2d.jpg" />; curve 5—<img src="8-7401045\dddf600b-ed2f-4e23-9c01-589cca581b3d.jpg" />, where x<sub>RKM</sub> solution by using the Runge-Kutta-Merson scheme [<xref ref-type="bibr" rid="scirp.27499-ref4">4</xref>]</p><p><img src="8-7401045\2f510f20-e3b4-4b25-ad7d-f2bebd0db1db.jpg" /></p><p>where g(x) in our case</p><p><img src="8-7401045\e3191b23-16b9-4049-a360-76d7ebbeea39.jpg" />.</p><p>The Runge-Kutta-Merson scheme allows to estimate the error as well<img src="8-7401045\42179b34-4bd5-478d-a2d1-6ac76a0b2a7b.jpg" />—curve 6.</p><p>The graph allows to draw several conclusions useful for consideration in the practical integration of stiff systems. The implicit Euler scheme with an order of approximation 1, becomes more accurate than trapezoidal schemes with approximation order 2, when step h &gt; 2.5 τ.</p><p>If we reduce the state variable x, i.e. remove the capacitor from the circuit, you will obtain the trivial solution x = 0, which is more accurate than:</p><p>• an explicit Euler scheme, with h &gt; τ;</p><p>• an implicit Euler scheme, with h &gt; 1.7 τ;</p><p>• a trapezoidal scheme, with h &gt; 2τ;</p><p>• a Runge-Kutta-Merson scheme, with h &gt; 2 τ.</p><p>Note that when h &gt; τ solutions <img src="8-7401045\fba0511f-0c48-4d9a-b628-4240e836ac72.jpg" /> with an increase in k have expressed oscillatory character, when using the schemes under consideration, which is absent in the analytical solution. Of all the options considered only the implicit Euler scheme constitutes an exception. At the same time the explicit Euler scheme and Runge-Kutta-Merson scheme (hereafter RKM) will have the oscillations grow exponentially, while the trapezoidal schemes will have them dampen slightly—the bigger is the step, the slower is the dampening. The latter property of trapezoidal schemes, combined with the problem of “excess Q-factor” mentioned above may give rise to significant fluctuations in solutions which will not be present in the actual device. This explains why the results of the numerical integration of “stiff systems” (h &gt;&gt; τ) are often doubtful. It would seem that the implicit Euler scheme presents a compromise, but it has a low order of approximation, and excessively dampens oscillation solutions, if those are present for the integrated system. Curve 6, which gives the error estimate above for RKM schemes is wrong for h &gt; 3 τ. Note that the Runge rule [<xref ref-type="bibr" rid="scirp.27499-ref5">5</xref>] according to which the accuracy of the integration by other methods is evaluated, also ceases to operate in the case of stiff systems.</p></sec><sec id="s3"><title>3. Explicit Sheme and Stiff Equations</title><p>Let us consider a possible way of integrating a system of equations using different approaches to obtaining solutions that are used for different equations of the system. Let us consider a system of differential equations:</p><disp-formula id="scirp.27499-formula144498"><label>(1)</label><graphic position="anchor" xlink:href="8-7401045\eb0b37e5-16af-452f-a994-0eb7379dbf3c.jpg"  xlink:type="simple"/></disp-formula><p>where<img src="8-7401045\67821352-9eaa-48c4-a055-9e263fc77b1b.jpg" />—single-column matrix—vector of state variables,<img src="8-7401045\37a7a49f-29f2-4da2-8d37-db33973d7d62.jpg" />—vector function that returns the derivative of state variables, N— the dimension of the equations system, T—denotes the transpose. It is known that the applicability of explicit schemes is limited by their stability, which depends on the step size h, so an evaluation of a maximum h, at which stability is preserved, is necessary. By expanding right side of (1) in a Taylor series in X, and passing to the coordinate system ε<img src="8-7401045\788960e5-2c5a-4b4e-8ef9-d6abba2ff46c.jpg" />, where <img src="8-7401045\6ad6073e-8e7a-48b1-8e07-ee3456810c44.jpg" /> is the exact solution of (1), <img src="8-7401045\dcadc6f7-ae6e-44c3-b9a3-8ac7e4eaccad.jpg" />is the perturbed solution, Equation (1) can be written with respect to perturbations of ε(t) in the following form:</p><p><img src="8-7401045\bdf18bd7-3a2a-49b4-aad6-f2457884b720.jpg" /></p><p>Accurate integration implies that ε is small enough to neglect 0 member ε<sup>2</sup> within a step, whereas for the perturbation we can assume that:</p><disp-formula id="scirp.27499-formula144499"><label>(2)</label><graphic position="anchor" xlink:href="8-7401045\0923b3a6-6950-48f0-bb1d-5d29150c6bc3.jpg"  xlink:type="simple"/></disp-formula><p>We will assume that the integration is stable within the step, if the solution (2) of the numerical scheme converges at<img src="8-7401045\e3c644de-48f9-4225-b77c-555b34611adb.jpg" />. That is, stability within the integration step is equivalent to the stability of a linear equation with constant matrix A. In order to ensure that integration of the linear system (2) is stable, the eigenvalues of matrix A must be in the range of values determined by the numerical scheme. In <xref ref-type="fig" rid="fig3">Figure 3</xref>, the shaded area represents such range of values for the explicit Euler scheme, and in <xref ref-type="fig" rid="fig4">Figure 4</xref>—for RKM.</p><p>As can be seen from Figures 3 and 4, one of the advantages of the RKM in comparison to the Euler scheme is stability when<img src="8-7401045\6e4e477e-af9a-445c-bab3-f884663dfd37.jpg" />, where λ<sub>im</sub> and λ<sub>re</sub> are respectively the imaginary and the real part of any eigenvalue λ of matrix A. R<sub>s</sub> = 2.3 on <xref ref-type="fig" rid="fig4">Figure 4</xref> is a stable radius. But we prefer using RKM scheme with R<sub>a</sub> = 1—that we assume adequate radius. For the matrix A we know the simple estimate of eigenvalue with maximum modulus</p><p><img src="8-7401045\cadecbda-28fd-4e40-ad66-fbda824d382b.jpg" />[<xref ref-type="bibr" rid="scirp.27499-ref6">6</xref>], where <img src="8-7401045\cd478e76-7285-4b0e-b6b9-eac736f7b78a.jpg" /> is the adjoint matrix norm. In our case, it is more convenient to use<img src="8-7401045\cc463d9e-9f9b-4a97-a274-2210e72807fa.jpg" />—<img src="8-7401045\dfc78b32-d7da-4053-b59d-4359c8cb317c.jpg" /></p><p>Let’s sort the rows of (1) in ascending order<img src="8-7401045\33677303-0093-406a-8d89-30a70a86e079.jpg" />and by applying condition <img src="8-7401045\a3823b45-3a7d-41c6-9732-ca3411971cef.jpg" /> distinguish the state variables—X<sub>ex</sub>, which for a given h will be integrated through the explicit method. In the remainder of</p><p><img src="8-7401045\a8a297a0-9ae1-4eb0-adc1-0f72f10569e0.jpg" />we single out the variables that will be reduced through X<sub>r</sub>. Thus the general form of the equations system is the following:</p><disp-formula id="scirp.27499-formula144500"><label>(3)</label><graphic position="anchor" xlink:href="8-7401045\1a1ef681-c71c-44fb-a512-66894aa2bf4f.jpg"  xlink:type="simple"/></disp-formula><p>Reduction of state variables X<sub>r</sub> will be reduced to equating the derivatives to zero<img src="8-7401045\f4dedffc-f211-4807-8802-7035a51197e9.jpg" />, while both these variables (which are not state variables) can be determined by solving the second equation of system (3) under certain X<sub>ex</sub>.</p><p>Now we shall present the idea of explicit integration of the equations system:</p><p>1) At the beginning of integration step X is known and the calculation of the matrix A is performed.</p><p>2) The variables are sorted by increasing <img src="8-7401045\002b92a7-bfab-425b-afd2-734ce84b4802.jpg" /> and vector X is separated into two parts, X<sub>ex</sub> and X<sub>r</sub>, as described above. For the perturbed solution the following is true:</p><p><img src="8-7401045\c24704a4-c4e6-44e4-8e66-9bef51643d74.jpg" /></p><p>or</p><p><img src="8-7401045\e75b5992-dbac-4066-b67e-d3c220592f0b.jpg" /></p><p>Here ε<sub>ex</sub> and ε<sub>r</sub> are the corresponding perturbed and reduced components for the disturbance; A<sub>11</sub>, A<sub>12</sub>, A<sub>21</sub>, A<sub>22</sub> —parts of the Jacobian matrix<img src="8-7401045\d311836c-c25c-4b85-94f6-284f07951276.jpg" />, taking into account the permutations of rows and columns which happened during sorting; for the solution to be stable within a step h should be less than<img src="8-7401045\adfc4817-cbd3-492c-a4be-705df2c90092.jpg" />. The following estimate for the matrix norm can be applied:</p><p><img src="8-7401045\895bf099-6919-4f9b-973c-4eda0cf5b248.jpg" /></p><p>Here finding the norm <img src="8-7401045\90ce640d-3aec-4ef6-a4d8-1e478c8d9299.jpg" /> is one of the biggest challenges. However, if the reduction of state variables X<sub>r</sub> has been done in the previous step, i.e. the second equation in (3) has been solved, for example, by the Newton-Raphson method, then in the current step LU-factorization of A<sub>22</sub> matrix is available, which greatly simplifies the task of identifying and assessing<img src="8-7401045\f5e9eee4-add0-4993-b758-cfb9f0a0e391.jpg" />. Now, we have obtained an estimate of the maximum step in which explicit integration remains stable.</p><p>3) Then for the first equation of system (3) an explicit numerical scheme is performed, as a result we get X<sub>ex</sub>(h).</p><p>4) And then by solving the second equation in (3) with known values of X<sub>ex</sub>(h) we get X<sub>r</sub>(h) at the end of the step.</p><p>Among the explicit schemes, which can be used effectively in this algorithm Runge-Kutta-Merson schemes can be distinguished. Their specific feature is that you need to determine the interim solutions five times and following each of the solutions determined you also have to calculate the reduced variables. But even in this case, the accuracy and speed of calculation will often be the best by virtue of a higher order of approximation.</p></sec><sec id="s4"><title>4. Example: Integration of Low Pass Filter Equations of the 2nd Order</title><p>A scheme of power low-frequency filter is shown in the <xref ref-type="fig" rid="fig5">Figure 5</xref>. It consists of resistors with R = 10 Ohm RL = 100 Ohm of induction L = 0.1 H and capacity C = 10<sup>−6 F</sup> we took the same parameters as in [<xref ref-type="bibr" rid="scirp.27499-ref7">7</xref>]. For simplicity we assume that voltage across the power supply source E = 0. Mathematical model</p><p><img src="8-7401045\b816788c-6d6a-461f-9677-8f71f3ea5aba.jpg" />where<img src="8-7401045\d8c19dc2-0faf-4fdd-962b-b62d4e12b117.jpg" />—current in induction;<img src="8-7401045\14e18cb7-84db-49bb-bf54-d044b667d158.jpg" />—capacitor voltage. Let the initial conditions be U<sub>C</sub> = 0 и i<sub>L</sub> = 1 A, and we have to find points of transient solution with step h = 0.001 s. In our case, for the first line of A matrix—</p><p><img src="8-7401045\1e80fb60-b054-4f1f-9fed-c68efc121306.jpg" />and for the second line</p><p><img src="8-7401045\60454684-cfa8-4554-a955-76bd07be5665.jpg" />. And explicit integration schemes RKM and Euler are unstable. We choose—X<sub>e</sub> = i<sub>L</sub> X<sub>r</sub> = U<sub>C</sub>. Reduced system of equation:</p><p><img src="8-7401045\420223aa-982a-4e44-b151-4c2887e5421d.jpg" />.</p><p>In this case<img src="8-7401045\7137fe4c-b263-4031-b3a1-4d552b5398a6.jpg" />. It means that with step 0.001 s eigenvalues will be within the steel Rs area (see <xref ref-type="fig" rid="fig4">Figure 4</xref>).</p><p>The scheme RKM with reduction of state variable U<sub>C</sub> shown in <xref ref-type="fig" rid="fig6">Figure 6</xref> coincides at-a-glance with the analytical decision (Analyt), starting from the second point. The scheme of trapezia (Trap), with the chosen step, has the biggest margin of error, bigger, than the implicit Euler method (ImEuler).</p></sec><sec id="s5"><title>5. Conclusion</title><p>This paper illustrates a possible reason why popular implicit schemes can produce results of questionable quality. According to the author a promising approach is the use of explicit schemes and the principle of reduction of the state variables, with pin-point use of implicit methods. The main advantage of explicit schemes is absence of need to solve a large system of linear equations at each integration step, which includes all the basic variables at once (for example, all the nodal potentials). It is at this stage, that the main CPU time is spent, additional errors appear, and, moreover, it is poorly parallelized.</p></sec><sec id="s6"><title>6. Acknowledgements</title><p>Research work described in the article was completed within the Russian state assignment for year of 2012; project #7.2868.2011.</p></sec><sec id="s7"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.27499-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">“Simulation Program with Integrated Circuit Emphasis.”  
http://en.wikipedia.org/wiki/SPICE</mixed-citation></ref><ref id="scirp.27499-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Y. Tanovitskiy and D. A. Izotov, “A Mathematical Model of the Electronics Circuits for Analysis Chaos and Bifurcation Phenomena in the Pulse Power Systems,” Technichna Electodinamica. Tematichni Vipusk: Problemi Suchasnoy Electrotechniki, 2004, pp. 80-85</mixed-citation></ref><ref id="scirp.27499-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">E. Hairer and G. Wanner, “Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems,” 2nd Edition, Springer-Verlag, Berlin, 1996.</mixed-citation></ref><ref id="scirp.27499-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">R. H. Merson, “An Operational Method for the Study of Integration Processes,” Proc. Symp. Data Processing, Weapons Res. Establ. Salisbury, Salisbury, 1957, pp. 110-125.</mixed-citation></ref><ref id="scirp.27499-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">I. S. Berezin and N. P. Zhidkov, “Computing Methods,” Pergamon Press, New York, 1973.</mixed-citation></ref><ref id="scirp.27499-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">R. Horn and C. Johnson, “Matrix Analysis,” Cambridge University Press, Cambridge, 1989.</mixed-citation></ref><ref id="scirp.27499-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">V. S. Baushev, Zh. T. Zhusubaliev and S. G. Mikhalchenko, “Stocastic Features in the Dynamic Characteristics of a Pulse-width Controlled Voltage Stabilizer,” Electrical Techonology, Vol. 1, 1996, pp.</mixed-citation></ref></ref-list></back></article>