<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Software Package for Power Flow Mathematical Modeling with Single-Phase and Three-Phase Power-Energy Flow Model</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Pavel Bannykh, Semyon Lozhkin, Andrey Pazderin Ural Power Engineering Institute Ural Federal University Ekaterinburg</institution>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Nowadays power flow mathematical modeling underlines power system operation. Traditionally, software packages for power flow calculation use a mathematical model based on nodal admittance equation. The authors have developed a software package for calculating power flow using an alternative power-energy flow model. The model has several advantages compared with the traditional approach. In particular, it allows combining single-phase and three-phase network representation. The authors have analyzed the limits of applicability of this method, as well as the errors that it introduces.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        1 Introduction
A classical problem of circuit theory is to find all branch currents and all node voltages of an assigned
circuit. Typical input data are generator voltages as well as the impedances of all branches. If all
impedances are constant, the resulting set of equations that describe the circuit is linear. The power flow
problem is conceptually the same problem as solving a steadystate ac circuit [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The only, though
substantial, difference is the set of input data. Input data for power flow calculation is active and reactive
load and active power injection of generators, as well as power lines and transformers describing the
transmission network. In this formulation of the problem, it is necessary to solve a system of nonlinear
algebraic equations. The result of the calculation is the voltages in the nodes of power system.
Power flow mathematical modeling has wide application in power system engineering. For solving design
and operation problems, it is necessary to understanding of the consequences of changing elements states
in power system. In particular, bus voltages must be maintained near nominal values. In addition, currents
in elements of power system must not exceed admissible continuous current. There are a number of other
aspects in power system operation and control that can be associated with power flow calculation [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
There are different software packages in which the power flow calculation function is implemented. In
addition, this function is implemented in SCADA system [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for analysis controlled power system. There
are various models describing power flow, but models are represented by nonlinear algebraic equations in
mathematical point of view. For solve this nonlinear algebraic equations different variations of Newton
method are used [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Nowadays power flow model based on nodal admittance equations has received the
most widespread.
      </p>
      <p>The main problem of this approach is connected with the fact that iteration procedure of Newton method
may diverge. It depends on initial conditions and structure of grid. In addition, this method has
sufficiently high computational complexity for large grid. This circumstance can be significant when
using power flow calculation in control systems, which performs variant calculations.</p>
      <p>
        The authors proposed the formulation of the problem based on the power-energy flow model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Initially, this model
was developed to solve the problem of state estimation. Further, the formulation of the problem for power flow calculation
was developed. This model has better conditioning than nodal admittance model. This leads to the fact that the Newton
method begins to converge more stable and for a smaller number of iterations.
      </p>
      <p>
        High voltage transmission network are generally modeled using single-phase model. It is believed that power flow of
backbone networks are symmetric. In this way, exact consideration of all three phases is not required. In normal condition,
this assumption does not lead to a high error. For the analysis of asymmetric condition, such as short circuits, it is customary
to use the symmetric component method[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] . In distribution grid, load unbalanced is more significant in comparison with
backbone networks and power flow calculation on single-line model lead to a significant error. For this reason, three-phase
model of network is used for power flow calculation of distribution grid [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        Traditionally management of distribution and transmission grids was divided administratively and technically. As a
consequence, there was no need for a joint consideration of two types networks. Modern trends in digital smart grid [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]
concept are changing this situation. The amount of available information increases, which entails an increase in the load
on computing systems. The requirements to the accuracy of calculations are raised which reduces the scope of application
of approximate fast calculation methods. Respectively there is a need to combine single-phase model for transmission grid
and three-phase model for distribution grid. In this paper, authors proposed approach based on power-energy flow model
for solve this problem.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Power-energy flow model</title>
      <p>In general, approach for compilation equation is the same for single-phase and three-phase models. In proposed model
active Ps and reactive Qs line start power, voltage magnitudeV in bus are accepted as unknown variables. Three types
of equation describe power flow. In the beginning, they will be described in general form for a single-phase model, and
then fundamental differences will be presented for a three-phase model.
2.1</p>
      <sec id="sec-2-1">
        <title>Single-phase model</title>
        <p>First type of equation is relationship between voltages of the beginning Vi and the end Vj of line:
Where ' V ' and ' V '' are expressed as:</p>
        <p>Vj</p>
        <p>Vi</p>
        <p>Vi '</p>
        <p>V ' 2 '</p>
        <p>V ''</p>
        <p>2
' V '
' V ''</p>
        <sec id="sec-2-1-1">
          <title>Pijs  Rij Q isj</title>
          <p>X ij</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>Pijs  X ij Q isj Rij</title>
          <p>Vi
Vi
Where: Vi – voltage of line start, Vj – voltage of line end, Pijs and Qisj – active and reactive line start power, Rij and X ij
– active and reactive line resistance.</p>
          <p>Second type of equations are active and reactive power balance in bus:
(Q sji '</p>
          <p>Pji )¦
Q ji )¦
(Piks )
(Qisk )</p>
          <p>P
i
0
Where: Pi and Qi – load of bus; Piks and Qisk – start power of lines, that start number coinciding with the node number;
Pjsi and Q sji – start power of lines, that end number coinciding with the node number; ' Pji and ' Qji – power loses in
lines , that end number coinciding with the node number. Power loses are expressed as follows:
Third type of equations use condition that sum of the angle difference is equal to zero in closed loop:
For variables under consideration, this equation can be transformed as follows:
' Pji
' Q ji</p>
          <p>Ps 2
ji
Ps 2
ji
V j2
Vj 2</p>
          <p>Q sji2 R ,</p>
          <p>ji</p>
          <p>Qsji2 X ji
¦ ' G</p>
          <p>0
¦</p>
          <p>§ ' V '' ·
atg ©¨ Vi ' V ¹¸'
0
All voltages in single-phase model are phase-to-phase voltages, all power in single phase are the sum of each phase power.</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2 Three-phase model</title>
        <p>In three-phase model, all this type of equations is used for each phase. The main difference is connected with component
' Pji , ' Qji , ' V ' and ' V '' . Below are the expressions for phase A, expressions for phases B and C can be obtained by
analogy. Active power loses is expressed as:
' Pa Pa2 RUea[2Zaa ] Qa2 URea2[Zaa ]
(PaQb PbQa )Im[e i(12q0 G ab)Zab ] (Pa Pb QaQb ) Re[e iq(120 G ab) Zab ]</p>
        <p>UaUb
(PaQc PcQa )Im[ei(120q G ac)Zac ] (Pa Pc QaQc ) Re[ei(12q0 G ac)Zac ]</p>
        <p>U U</p>
        <p>a c
Reactive power loses is expressed as:
' Qa
(PaQb
(PaQc</p>
        <p>Pa2 Im[Zaa ] Qa2 Im[Zaa ]</p>
        <p>U a2 U a2
PbQa ) Re[e i(12q0 G ab) Zab ] (Pa Pb</p>
        <p>UaUb
PcQa ) Re[ei(120q G ac) Zac ] (Pa Pc</p>
        <p>U U
a c</p>
        <p>QaQb ) Im[e iq(120 G ab)Zab ]
QaQc ) Im[ei(12q0 G ac)Zac ]
Voltage drop components are expressed as:
' V '</p>
        <p>Pa Re[Zaa ]</p>
        <p>U a</p>
        <p>
          Qa Im[Zaa ]
To analyze the proposed approach, a software package was developed in the Wolfram Mathematica [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] environment. The
choice of this environment has greatly accelerated the development process, since Wolfram Mathematica contains all the
necessary mathematical methods . In addition to standard numerical methods for the described mathematical approach, a
library of work with graphs is required. Methods to search all closed loops in graph and the search for the spanning tree
were used. The developed package can be used as a standalone application. It is also possible to compile libraries of the C
language, which allows it to be integrated into other software products.
        </p>
        <p>To analyze the algorithms underlying the software package, a test network was used, which is presented in Figure 1. The
network combines both a single-phase representation for the backbone network and a three-phase representation of the
distribution network.
Firstly, power flow calculation in three phases with regard to mutual induction was analyzed. For this, a set of asymmetrical
loads was generated, the maximum amplitude values of the loads are shown in Figure 1. Then, based on these loads, the
model without mutual induction and the reference model were compared. An exact three-phase model was used as a
reference calculation. The results of the calculation of the modes are shown in Figure 2. In this case, each point in Figure
1 corresponds to the steady-state power flow, the standard deviation of the voltage in the reference calculation is plotted
along the X-axis, and the error resulting from the calculation is on the Y-axis. As you can see, the error does not exceed 5
percent, if the standard deviation of the voltage does not exceed 3%. These data can be considered the limit of applicability
of the three-phase model.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>The article described a software package for calculating power flow of electric power systems. It is based on a
powerenergy flow model. The model allows, depending on the available information and the requirements for the problem being
solved, applying the phase or linear form of the described model. The transition from one model to another is carried out
without a significant change in the design model itself. Within this model, assumptions are used at the interface point
between the single-phase and three-phase network representation. Error analysis was performed on a test system.
Calculations showed if at the interface point the differences between the voltages do not exceed 10% percent, then the
proposed approach does not lead to a significant error.</p>
      <sec id="sec-3-1">
        <title>Acknowledgements</title>
        <p>The reported study was funded by the Ministry of Education and Science of the Russian Federation under Federal Targeted
Programme according to the agreement № 14.578.21.0226 (Project identifier: RFMEFI57817X0226).</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Milano</surname>
          </string-name>
          ,
          <source>Power System Modelling and Scripting, т. 0</source>
          . Berlin, Heidelberg: Springer Berlin Heidelberg,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>«Modern</given-names>
            <surname>Power Systems Analysis | Xi-Fan</surname>
          </string-name>
          <string-name>
            <surname>Wang</surname>
          </string-name>
          | Springer». [Онлайн]. Доступно на: https://www.springer.com/us/book/9780387728520. [Просмотрено:
          <fpage>07</fpage>
          -окт-2018].
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>F. M.</surname>
          </string-name>
          <article-title>Enescu и N. Bizon, «SCADA Applications for Electric Power System», в Reactive Power Control in AC Power Systems: Fundamentals</article-title>
          and
          <string-name>
            <given-names>Current</given-names>
            <surname>Issues</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. Mahdavi</given-names>
            <surname>Tabatabaei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Jafari</given-names>
            <surname>Aghbolaghi</surname>
          </string-name>
          , N. Bizon, и
          <string-name>
            <given-names>F.</given-names>
            <surname>Blaabjerg</surname>
          </string-name>
          , Ред. Cham: Springer International Publishing,
          <year>2017</year>
          , сс.
          <fpage>561</fpage>
          -
          <lpage>609</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R.</given-names>
            <surname>Idema</surname>
          </string-name>
          и
          <string-name>
            <given-names>D.</given-names>
            <surname>Lahaye</surname>
          </string-name>
          ,
          <article-title>Computational Methods in Power System Analysis</article-title>
          . Atlantis Press,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Pazderin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. E.</given-names>
            <surname>Kokin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. O.</given-names>
            <surname>Egorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>и E. S.</given-names>
            <surname>Kochneva</surname>
          </string-name>
          , «
          <article-title>Solution of energy flow problem using state estimation technique»</article-title>
          ,
          <source>в 2009 35th Annual Conference of IEEE Industrial Electronics</source>
          ,
          <year>2009</year>
          , сс.
          <fpage>1736</fpage>
          -
          <lpage>1741</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Pazderin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Plesniaev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>и E. V.</given-names>
            <surname>Mashalov</surname>
          </string-name>
          , «
          <article-title>An energy flow calculation method based on energy meters data»</article-title>
          ,
          <source>в 2008 Third International Conference on Electric Utility Deregulation and Restructuring and Power Technologies</source>
          ,
          <year>2008</year>
          , сс.
          <fpage>834</fpage>
          -
          <lpage>839</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Arrillaga</surname>
          </string-name>
          и
          <string-name>
            <given-names>C. P.</given-names>
            <surname>Arnold</surname>
          </string-name>
          , «
          <article-title>Faulted System Studies»</article-title>
          ,
          <source>в Computer Analysis of Power Systems</source>
          , Wiley-Blackwell,
          <year>2013</year>
          , сс.
          <fpage>135</fpage>
          -
          <lpage>154</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Garces</surname>
          </string-name>
          , «
          <article-title>A Linear Three-Phase Load Flow for Power Distribution Systems»</article-title>
          ,
          <source>IEEE Trans. Power Syst., т. 31</source>
          ,
          <issue>вып</issue>
          . 1, сс.
          <fpage>827</fpage>
          -
          <lpage>828</lpage>
          , янв.
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Golkar</surname>
          </string-name>
          , «
          <article-title>A novel method for load flow analysis of unbalanced three-phase radial distribution networks»</article-title>
          ,
          <source>Turk. J. Electr. Eng. Comput. Sci., т. 15</source>
          ,
          <issue>вып</issue>
          . 3, сс.
          <fpage>329</fpage>
          -
          <lpage>337</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>N.</given-names>
            <surname>Nidhi</surname>
          </string-name>
          , D. Prasad, и V. Nath, «
          <article-title>Different Aspects of Smart Grid: An Overview», в</article-title>
          <string-name>
            <surname>Nanoelectronics</surname>
          </string-name>
          ,
          <source>Circuits and Communication Systems</source>
          ,
          <year>2019</year>
          , сс.
          <fpage>451</fpage>
          -
          <lpage>456</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11] «Wolfram Mathematica». [Онлайн]. Доступно на: http://www.wolfram.com/mathematica/. [Просмотрено:
          <fpage>07</fpage>
          -окт- 2018].
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>