<?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">
    jpee
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Power and Energy Engineering
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-588X
   </issn>
   <issn publication-format="print">
    2327-5901
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jpee.2024.129008
   </article-id>
   <article-id pub-id-type="publisher-id">
    jpee-136274
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Engineering
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Mathematical Modeling and Control Algorithm Development for Bidirectional Power Flow in CCS-CNT System
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Sinqobile Wiseman
      </surname>
      <given-names>
       Nene
      </given-names>
     </name>
    </contrib>
   </contrib-group> 
   <aff id="affnull">
    <addr-line>
     aDepartment of Electrical Engineering, Tshwane University of Technology, EMalahleni, South Africa
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     10
    </day> 
    <month>
     09
    </month>
    <year>
     2024
    </year>
   </pub-date> 
   <volume>
    12
   </volume> 
   <issue>
    09
   </issue>
   <fpage>
    131
   </fpage>
   <lpage>
    143
   </lpage>
   <history>
    <date date-type="received">
     <day>
      22,
     </day>
     <month>
      August
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      23,
     </day>
     <month>
      August
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      23,
     </day>
     <month>
      September
     </month>
     <year>
      2024
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © 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>
    As the demand for more efficient and adaptable power distribution systems intensifies, especially in rural areas, innovative solutions like the Capacitor-Coupled Substation with a Controllable Network Transformer (CCS-CNT) are becoming increasingly critical. Traditional power distribution networks, often limited by unidirectional flow capabilities and inflexibility, struggle to meet the complex demands of modern energy systems. The CCS-CNT system offers a transformative approach by enabling bidirectional power flow between high-voltage transmission lines and local distribution networks, a feature that is essential for integrating renewable energy sources and ensuring reliable electrification in underserved regions. This paper presents a detailed mathematical representation of power flow within the CCS-CNT system, emphasizing the control of both active and reactive power through the adjustment of voltage levels and phase angles. A control algorithm is developed to dynamically manage power flow, ensuring optimal performance by minimizing losses and maintaining voltage stability across the network. The proposed CCS-CNT system demonstrates significant potential in enhancing the efficiency and reliability of power distribution, making it particularly suited for rural electrification and other applications where traditional methods fall short. The findings underscore the system's capability to adapt to varying operational conditions, offering a robust solution for modern power distribution challenges.
   </abstract>
   <kwd-group> 
    <kwd>
     Capacitor Couple Substation
    </kwd> 
    <kwd>
      Ferroresonance
    </kwd> 
    <kwd>
      Power Flow Control
    </kwd> 
    <kwd>
      Controllable Network Controller
    </kwd> 
    <kwd>
      Capacitor-Coupled Substation Incorporating Controllable Network Transformer (CCS-CNT) System
    </kwd> 
    <kwd>
      System Modeling
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>As the demand for efficient and flexible power distribution systems grows, especially in rural areas, the need for advanced solutions like the Capacitor-Coupled Substation with a Controllable Network Transformer (CCS-CNT) becomes apparent <xref ref-type="bibr" rid="scirp.136274-1">
     [1]
    </xref> <xref ref-type="bibr" rid="scirp.136274-2">
     [2]
    </xref>. Traditional power distribution networks often struggle to meet the complex demands of modern energy systems, especially with the integration of renewable energy sources and the need for reliable electrification in underserved regions <xref ref-type="bibr" rid="scirp.136274-3">
     [3]
    </xref> <xref ref-type="bibr" rid="scirp.136274-4">
     [4]
    </xref>. In this context, the Capacitor-Coupled Substation with a Controllable Network Transformer (CCS-CNT) emerges as a promising solution. This innovative system leverages the bidirectional capabilities of the Controllable Network Transformer (CNT) to regulate and optimize power flow between high-voltage (HV) transmission lines and local distribution networks <xref ref-type="bibr" rid="scirp.136274-5">
     [5]
    </xref>. The CCS-CNT system is designed to address the challenges of conventional distribution transformers, which are typically unidirectional and lack the flexibility to efficiently manage power flow in both directions <xref ref-type="bibr" rid="scirp.136274-6">
     [6]
    </xref>. This capability is particularly critical in modern grids, where power can flow from distributed generation sources, such as microgrids and renewable energy installations, back to the main grid <xref ref-type="bibr" rid="scirp.136274-7">
     [7]
    </xref> <xref ref-type="bibr" rid="scirp.136274-8">
     [8]
    </xref>. The energy balance control in a grid-tiered system, such as the renewable power sources, is critical as unstable output results in fluctuating voltages and frequency <xref ref-type="bibr" rid="scirp.136274-9">
     [9]
    </xref>. The CCS-CNT system integrates a Capacitor-Coupled Substation (CCS), which provides additional benefits such as voltage regulation, reactive power compensation, and the mitigation of ferroresonance, a phenomenon that can lead to instability and equipment damage in conventional substations <xref ref-type="bibr" rid="scirp.136274-10">
     [10]
    </xref> <xref ref-type="bibr" rid="scirp.136274-11">
     [11]
    </xref>. By incorporating these advanced features, the CCS-CNT system enhances the overall reliability and efficiency of power distribution networks, making it a suitable option for rural electrification and other applications where traditional methods fall short. The viability of the planning of new installations and determining the best operating conditions of a power distribution network relies on effective power flow system analysis <xref ref-type="bibr" rid="scirp.136274-12">
     [12]
    </xref>.</p>
   <p>This paper delves into the mathematical representation of power flow within the CCS-CNT system, providing a detailed analysis of the interactions between the CCS, CNT, and the connected power grid. The mathematical model is essential for understanding the system’s behavior under various operating conditions and for designing control strategies that ensure optimal performance. In addition, a control algorithm is proposed, aimed at dynamically managing power flow to balance load demand, minimize losses, and maintain voltage stability across the network. The algorithm is designed to respond to real-time changes in grid conditions, leveraging the controllable aspects of the CNT to achieve a more resilient and adaptable power distribution system.</p>
  </sec><sec id="s2">
   <title>2. Mathematical Representation of Power Flow in CCS-CNT</title>
   <p>The bidirectional power flow in a CCS-CNT system is fundamentally governed by the relationship between the active and reactive power and the control variables, including the voltages on the primary and secondary sides of the system, the capacitive reactance of the coupling capacitor, and the phase angle difference between the two voltages <xref ref-type="bibr" rid="scirp.136274-13">
     [13]
    </xref> <xref ref-type="bibr" rid="scirp.136274-14">
     [14]
    </xref>. Each of these factors plays a crucial role in determining the direction and magnitude of power flow within the system, making it possible to control power transfer effectively in both directions, from the high-voltage transmission line to the local distribution network and vice versa. This mathematical representation can be simplified in the following flowchart:</p>
   <sec id="s2_1">
    <title>2.1. Active Power Flow Equation</title>
    <p>In this system, the active power P transferred through the coupling capacitor is influenced by the voltage magnitudes on the primary HV side and the secondary side V<sub>tap</sub>, as well as the phase angle difference between these voltages, is given by:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         P 
       </mi> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mi>
            c 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mtext>
         sin 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          δ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>where:</p>
   </sec>
   <sec id="s2_2">
    <title>2.2. Reactive Power Flow Equation</title>
    <p>The reactive power Q is associated with the maintenance of voltage levels within the system and is influenced by the difference in voltage magnitudes between the two sides of the coupling capacitor and is described by:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Q 
       </mi> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            V 
          </mi> 
          <mn>
            1 
          </mn> 
          <mn>
            2 
          </mn> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            1 
          </mn> 
         </msub> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mn>
            2 
          </mn> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mi>
            c 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mtext>
         cos 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          δ 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>This equation shows that reactive power is managed by adjusting the voltage difference and the phase angle 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        δ 
      </mi> 
     </math>. These equations demonstrate that by controlling 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math>, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math> and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        δ 
      </mi> 
     </math>, the CCS-CNT system can provide or absorb reactive power, thereby stabilizing voltage levels in the network and enhancing overall power quality.</p>
   </sec>
  </sec><sec id="s3">
   <title>3. Bidirectional Power Control Strategy</title>
   <p>The use of advanced power electronics technology is said to help generate electricity efficiently and the power transfer capabilities of a system depend on the converter configuration <xref ref-type="bibr" rid="scirp.136274-15">
     [15]
    </xref> <xref ref-type="bibr" rid="scirp.136274-16">
     [16]
    </xref>. The integration of advanced power electronics technology into Capacitor-Coupled Substation (CCS) and Controllable Network Transformer (CNT) systems significantly enhances the efficiency of electricity generation and the power transfer capabilities. The control of bidirectional power flow in a CCS-CNT system centers on the ability to adjust the voltage levels and phase angle ( 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       δ 
     </mi> 
    </math>) between the primary ( 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         V 
       </mi> 
       <mn>
         1 
       </mn> 
      </msub> 
     </mrow> 
    </math>) and secondary ( 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         V 
       </mi> 
       <mn>
         2 
       </mn> 
      </msub> 
      <mo>
        ≈ 
      </mo> 
      <msub> 
       <mi>
         V 
       </mi> 
       <mrow> 
        <mi>
          t 
        </mi> 
        <mi>
          a 
        </mi> 
        <mi>
          p 
        </mi> 
       </mrow> 
      </msub> 
     </mrow> 
    </math>) sides of the transformer. The control strategy involves:</p>
   <p>Using Equations (1) and (2), the apparent power ( 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        S 
      </mi> 
      <mo>
        = 
      </mo> 
      <mi>
        P 
      </mi> 
      <mo>
        + 
      </mo> 
      <mi>
        j 
      </mi> 
      <mi>
        Q 
      </mi> 
     </mrow> 
    </math>), active power and reactive power can be modeled and calculated through MATLAB using code:</p>
   <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
    <tr> 
     <td class="aleft" width="108.46%">% Define the variables<p style="text-align:left"></p>V1 = &lt;value&gt;; % Voltage on the primary side<p style="text-align:left"></p>V2 = &lt;value&gt;; % Voltage on the secondary side=Vtap<p style="text-align:left"></p>Xc = &lt;value&gt;; % Capacitive reactance<p style="text-align:left"></p>delta = &lt;value&gt;; % Phase angle difference in radians<p style="text-align:left"></p><p style="text-align:left"></p>% Calculate Active Power (P)<p style="text-align:left"></p>P = (V1 * V2 / Xc) * sin(delta);<p style="text-align:left"></p><p style="text-align:left"></p>% Calculate Reactive Power (Q)<p style="text-align:left"></p>Q = (V1^2 - V1 * V2 * cos(delta)) / Xc;<p style="text-align:left"></p><p style="text-align:left"></p>% Complex Power (S)<p style="text-align:left"></p>S = P + 1j * Q;<p style="text-align:left"></p><p style="text-align:left"></p>% Display the results<p style="text-align:left"></p>disp('Active Power (P):');<p style="text-align:left"></p>disp(P);<p style="text-align:left"></p>disp('Reactive Power (Q):');<p style="text-align:left"></p>disp(Q);<p style="text-align:left"></p>disp('Complex Power (S):');<p style="text-align:left"></p>disp(S);<p style="text-align:left"></p></td> 
    </tr> 
   </table>
   <p>In this code, you can replace &lt;value&gt; with the actual numerical values for V<sub>1</sub>, V<sub>2</sub>, X<sub>c</sub>, and 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       δ 
     </mi> 
    </math>. The code calculates the active power P, reactive power Q, and the complex power S based on the given formula. Run the code, to get the results. The direction of the power flow will be determined by the phase angle difference value.</p>
   <sec id="s3_1">
    <title>Bidirectional Power Flow Control Mathematical Representation</title>
    <p>In a Capacitor-Coupled Substation (CCS) system integrated with a Controllable Network Transformer (CNT), achieving bidirectional power flow is essential for efficient operation, especially in scenarios where power needs to be both tapped from a high-voltage (HV) line and injected back into the grid from a lower voltage level. The mathematical representation of bidirectional power flow control is developed through different stages. The system parameters are chosen. The following are the chosen parameters:</p>
    <p>The active power flow of the system can occur in two primary modes: tapping mode (HV to LV) and injection mode (LV to HV).</p>
    <p>The power flow equations are developed as:</p>
    <p>Active Power Flow from HV to LV (tapping mode):</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mi>
         cos 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            θ 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         − 
       </mo> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           s 
         </mi> 
         <mi>
           s 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mi>
           n 
         </mi> 
         <mi>
           j 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           M 
         </mi> 
         <mi>
           G 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         − 
       </mo> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           s 
         </mi> 
         <mi>
           s 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>The reactive power flow of the system also, can occur in two primary modes: tapping mode (HV to LV) and injection mode (LV to HV).</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            Z 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mi>
         sin 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            θ 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           c 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           m 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mi>
           n 
         </mi> 
         <mi>
           j 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           M 
         </mi> 
         <mi>
           G 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           c 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           m 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         − 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           s 
         </mi> 
         <mi>
           s 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>The voltage control is achieved by the CNT adjusting the voltage at the tap node based on the power flow direction and load or MG conditions (whether is it absorbing or injecting power). The voltage at the secondary side of the CNT can be expressed as:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             H 
           </mi> 
           <mi>
             V 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mrow> 
         <mi>
           a 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            t 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
       </mfrac> 
       <mo>
         × 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mi>
            c 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>To control power flow is both directions, the CNT’s control algorithm adjusts the tap ratio 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          t 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> and coordinates with the MG and the capacitor bank. The controller maintains the voltages levels withing the desired limits and ensures stable bidirectional power flow.</p>
    <p>The control strategy for tapping power involves maintaining the 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> close to the desired value while supplying power to the load by adjusting 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          t 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> to minimize the difference between 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> and the reference voltage 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           r 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           f 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          t 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             H 
           </mi> 
           <mi>
             V 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             r 
           </mi> 
           <mi>
             e 
           </mi> 
           <mi>
             f 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mo>
         × 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mi>
            c 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>The control strategy for injecting power involves ensuring that the MG power is injected into the HV line with minimal losses by adjusting 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          t 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> based in the desired injection power 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mi>
           n 
         </mi> 
         <mi>
           j 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> and voltage level at the HV side as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         a 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          t 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             r 
           </mi> 
           <mi>
             e 
           </mi> 
           <mi>
             f 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mo>
         × 
       </mo> 
       <mfrac> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mi>
            c 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <mi>
           j 
         </mi> 
         <msub> 
          <mi>
            X 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           r 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           f 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> is set based on the desired injection conditions.</p>
    <p>The stability of the system is maintained by ensuring that ferroresonance suppression and reactive power compensation is effectively managed. The stability condition is maintained by:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             H 
           </mi> 
           <mi>
             V 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
       </mfrac> 
       <mo>
         ≤ 
       </mo> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mrow> 
         <mi>
           r 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           f 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          a 
        </mi> 
        <mrow> 
         <mi>
           r 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           f 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> is the maximum turns ratio for stability.</p>
    <p>This mathematical representation and control strategy enables the CCS-CNT system to efficiently manage bidirectional power flow, ensuring reliable operation while adapting to varying load and microgrid conditions.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. CCS-CNT Control Algorithm Development</title>
   <p>The control algorithm for managing bidirectional power flow in a Capacitor Coupled Substation-Controllable Network Transformer (CCS-CNT) system is a critical component for ensuring stable and efficient operation. This algorithm aims to maintain desired power flow conditions by dynamically adjusting control parameters. Below is a detailed discussion of the algorithm.</p>
   <sec id="s4_1">
    <title>4.1. Initialization</title>
    <p>The control process begins with the initialization phase, where key parameters are set:</p>
   </sec>
   <sec id="s4_2">
    <title>4.2. Measurement of Actual Power Flows</title>
   </sec>
   <sec id="s4_3">
    <title>4.3. Error Calculation</title>
    <p>To correct any deviations from the desired setpoints:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          P 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           s 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         − 
       </mo> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           m 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           s 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          Q 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           s 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         − 
       </mo> 
       <msub> 
        <mi>
          Q 
        </mi> 
        <mrow> 
         <mi>
           m 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           s 
         </mi> 
        </mrow> 
       </msub> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>These errors represent the amount by which the actual power flow deviates from the setpoints and are used to determine the necessary adjustments.</p>
   </sec>
   <sec id="s4_4">
    <title>4.4. Controller Design</title>
    <p>A Proportional-Integral-Derivative (PID) controller is used to adjust the control variables based on the calculated errors:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          P 
        </mi> 
       </msub> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <mstyle displaystyle="true"> 
        <mrow> 
         <mo>
           ∫ 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             e 
           </mi> 
           <mi>
             P 
           </mi> 
          </msub> 
          <mtext>
            d 
          </mtext> 
          <mi>
            t 
          </mi> 
         </mrow> 
        </mrow> 
       </mstyle> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           d 
         </mi> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <mfrac> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <msub> 
          <mi>
            e 
          </mi> 
          <mi>
            P 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           2 
         </mn> 
        </mrow> 
       </msub> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          Q 
        </mi> 
       </msub> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mn>
           2 
         </mn> 
        </mrow> 
       </msub> 
       <mstyle displaystyle="true"> 
        <mrow> 
         <mo>
           ∫ 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             e 
           </mi> 
           <mi>
             Q 
           </mi> 
          </msub> 
          <mtext>
            d 
          </mtext> 
          <mi>
            t 
          </mi> 
         </mrow> 
        </mrow> 
       </mstyle> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           d 
         </mi> 
         <mn>
           2 
         </mn> 
        </mrow> 
       </msub> 
       <mfrac> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <msub> 
          <mi>
            e 
          </mi> 
          <mi>
            Q 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <mi>
         δ 
       </mi> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           3 
         </mn> 
        </mrow> 
       </msub> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          P 
        </mi> 
       </msub> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mn>
           3 
         </mn> 
        </mrow> 
       </msub> 
       <mstyle displaystyle="true"> 
        <mrow> 
         <mo>
           ∫ 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             e 
           </mi> 
           <mi>
             P 
           </mi> 
          </msub> 
          <mtext>
            d 
          </mtext> 
          <mi>
            t 
          </mi> 
         </mrow> 
        </mrow> 
       </mstyle> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           d 
         </mi> 
         <mn>
           3 
         </mn> 
        </mrow> 
       </msub> 
       <mfrac> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <msub> 
          <mi>
            e 
          </mi> 
          <mi>
            P 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <mtext>
           d 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math></p>
    <p>where:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         ← 
       </mo> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         + 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         ← 
       </mo> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         + 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         δ 
       </mi> 
       <mo>
         ← 
       </mo> 
       <mi>
         δ 
       </mi> 
       <mo>
         + 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <mi>
         δ 
       </mi> 
      </mrow> 
     </math></p>
    <p>This updating process ensures that the control variables are continuously refined to reduce errors and achieve the desired power flow conditions.</p>
   </sec>
  </sec><sec id="s5">
   <title>5. Application to a CCS-CNT System</title>
   <p>In the CCS-CNT system, the following parameters are considered:</p>
   <sec id="s5_1">
    <title>5.1. Power Flow Calculation</title>
    <p>To control power flow within the CCS-CNT:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           a 
         </mi> 
         <mi>
           p 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         × 
       </mo> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             s 
           </mi> 
           <mi>
             e 
           </mi> 
           <mi>
             t 
           </mi> 
          </mrow> 
         </msub> 
         <mo>
           − 
         </mo> 
         <msub> 
          <mi>
            V 
          </mi> 
          <mrow> 
           <mi>
             t 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             p 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             m 
           </mi> 
           <mi>
             e 
           </mi> 
           <mi>
             a 
           </mi> 
           <mi>
             s 
           </mi> 
          </mrow> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           2 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          P 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           3 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          Q 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         Δ 
       </mi> 
       <mi>
         δ 
       </mi> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          K 
        </mi> 
        <mrow> 
         <mi>
           p 
         </mi> 
         <mn>
           4 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         × 
       </mo> 
       <msub> 
        <mi>
          e 
        </mi> 
        <mi>
          P 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
       <mo>
         × 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          1 
        </mn> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mrow> 
         <mn>
           2 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           n 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
       <mo>
         × 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <msub> 
        <mi>
          V 
        </mi> 
        <mn>
          2 
        </mn> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          δ 
        </mi> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mi>
           e 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mi>
         δ 
       </mi> 
       <mo>
         × 
       </mo> 
       <mi>
         Δ 
       </mi> 
       <mi>
         δ 
       </mi> 
      </mrow> 
     </math></p>
    <p>If 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         0 
       </mn> 
      </mrow> 
     </math> on the HV side and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         &lt; 
       </mo> 
       <mn>
         0 
       </mn> 
      </mrow> 
     </math> on the tap node, power is flowing from the HV side to the CCS. Conversely, if 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         &lt; 
       </mo> 
       <mn>
         0 
       </mn> 
      </mrow> 
     </math> on the HV side and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mrow> 
         <mi>
           f 
         </mi> 
         <mi>
           l 
         </mi> 
         <mi>
           o 
         </mi> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </msub> 
       <mo>
         &gt; 
       </mo> 
       <mn>
         0 
       </mn> 
      </mrow> 
     </math> on the tap node, power is flowing from the CCS side to the HV network.</p>
    <p>This control algorithm ensures that the CCS-CNT system operates efficiently and meets the desired power flow conditions, while also maintaining stability and reliability in the grid.</p>
   </sec>
   <sec id="s5_2">
    <title>5.2. Power Flow Control MATLAB Code Verification</title>
    <p>The power flow direction within the CCS-CNT can be verified through a MATLAB code approach to prove the viability of the claim of power flow direction in Section 5.1.</p>
    <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
     <tr> 
      <td class="aleft" width="100.00%">% Initialize system parameters<p style="text-align:left"></p>V_HV = 132e3; % High-voltage supply in volts (132 kV)<p style="text-align:left"></p>V_tap_set = 11e3; % Desired tap voltage (11 kV)<p style="text-align:left"></p>V_tap_meas = 11e3; % Measured tap voltage<p style="text-align:left"></p>I_HV = 0; % Initialize current on the HV side<p style="text-align:left"></p>I_tap = 0; % Initialize current on the tap side<p style="text-align:left"></p>P_set = 0; % Desired active power setpoint<p style="text-align:left"></p>Q_set = 0; % Desired reactive power setpoint<p style="text-align:left"></p>delta = 0; % Phase angle difference (in radians)<p style="text-align:left"></p>X_c = 0; % Capacitive reactance of the coupling capacitor<p style="text-align:left"></p>Z_load = 0; % Load impedance<p style="text-align:left"></p><p style="text-align:left"></p>% Control gains for proportional control<p style="text-align:left"></p>Kp1 = 0.1; % Proportional gain for tap voltage control<p style="text-align:left"></p>Kp2 = 0.05; % Gain for active power control<p style="text-align:left"></p>Kp3 = 0.05; % Gain for reactive power control<p style="text-align:left"></p>Kp4 = 0.01; % Gain for phase angle control<p style="text-align:left"></p><p style="text-align:left"></p>% Step through the control loop (assuming discrete time steps for control)<p style="text-align:left"></p>for t = 1:100 % Run for 100 time steps<p style="text-align:left"></p> % Compute the error between the desired and measured tap voltage<p style="text-align:left"></p> e_Vtap = V_tap_set - V_tap_meas;<p style="text-align:left"></p> <p style="text-align:left"></p> % Adjust the tap voltage<p style="text-align:left"></p> delta_Vtap = Kp1 * e_Vtap;<p style="text-align:left"></p> V_tap_meas = V_tap_meas + delta_Vtap; % Update tap voltage<p style="text-align:left"></p> <p style="text-align:left"></p></td> 
     </tr> 
     <tr> 
      <td class="aleft" width="100.00%"> % Compute power flow errors (P_set - actual power)<p style="text-align:left"></p> % Assuming basic power flow equations for this calculation<p style="text-align:left"></p> e_P = P_set - (V_HV * I_HV * cos(delta)); % Active power error<p style="text-align:left"></p> e_Q = Q_set - (V_HV * I_HV * sin(delta)); % Reactive power error<p style="text-align:left"></p> <p style="text-align:left"></p> % Adjust control variables for power flow control<p style="text-align:left"></p> delta_V1 = Kp2 * e_P;<p style="text-align:left"></p> delta_V2 = Kp3 * e_Q;<p style="text-align:left"></p> delta_delta = Kp4 * e_P;<p style="text-align:left"></p> <p style="text-align:left"></p> % Update system voltages and phase angle<p style="text-align:left"></p> V_1_new = V_HV * (1 + delta_V1);<p style="text-align:left"></p> V_2_new = V_tap_meas * (1 + delta_V2);<p style="text-align:left"></p> delta_new = delta * (1 + delta_delta);<p style="text-align:left"></p> <p style="text-align:left"></p> % Calculate power flow on HV and tap sides<p style="text-align:left"></p> P_flow_HV = V_HV * I_HV * cos(delta_new);<p style="text-align:left"></p> P_flow_tap = V_tap_meas * I_tap * cos(delta_new);<p style="text-align:left"></p> <p style="text-align:left"></p> % Determine power flow direction<p style="text-align:left"></p> if P_flow_HV &gt; 0 &amp;&amp; P_flow_tap &lt; 0<p style="text-align:left"></p> disp('Power is flowing from HV side to CCS');<p style="text-align:left"></p> elseif P_flow_HV &lt; 0 &amp;&amp; P_flow_tap &gt; 0<p style="text-align:left"></p> disp('Power is flowing from CCS to HV side');<p style="text-align:left"></p> end<p style="text-align:left"></p>end<p style="text-align:left"></p></td> 
     </tr> 
    </table>
    <p>The gains and setpoints of active and reactive power can be modified as per the system requirements.</p>
   </sec>
  </sec><sec id="s6">
   <title>6. Conclusion</title>
   <p>The mathematical representation and control strategy for bidirectional power flow in a Capacitor-Coupled Substation with a Controllable Network Transformer (CCS-CNT) system effectively illustrate the system’s capability to manage both active and reactive power. By fine-tuning key parameters such as voltage levels and phase angle differences, the CCS-CNT system can dynamically adjust to varying power demands, ensuring stability and efficiency in power distribution networks. The proposed control algorithm, which systematically addresses the challenges of power flow control, provides a robust framework for optimizing power distribution, particularly in scenarios involving renewable energy integration and rural electrification. The findings underscore the potential of CCS-CNT systems as a transformative solution for modern power distribution networks, offering enhanced flexibility and reliability over conventional methods.</p>
  </sec><sec id="s7">
   <title>Acknowledgements</title>
   <p>Dr Abe and Dr Nnachi of Tshwane University of Technology.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.136274-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Baldwin, E., Brass, J.N., Carley, S. and MacLean, L.M. (2014) Electrification and Rural Development: Issues of Scale in Distributed Generation. WIREs Energy and Environment, 4, 196-211. &gt;https://doi.org/10.1002/wene.129
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Omole, F.O., Olajiga, O.K. and Olatunde, T.M. (2024) Challenges and Successes in Rural Electrification: A Review of Global Policies and Case Studies. Engineering Science&amp;Technology Journal, 5, 1031-1046. &gt;https://doi.org/10.51594/estj.v5i3.956
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Alstone, P., Gershenson, D. and Kammen, D.M. (2015) Decentralized Energy Systems for Clean Electricity Access. Nature Climate Change, 5, 305-314. &gt;https://doi.org/10.1038/nclimate2512
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bhatti, H.J. and Danilovic, M. (2018) Making the World More Sustainable: Enabling Localized Energy Generation and Distribution on Decentralized Smart Grid Systems. World Journal of Engineering and Technology, 6, 350-382. &gt;https://doi.org/10.4236/wjet.2018.62022
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nene, S.W., Abe, B.T. and Nnachi, A.F. (2024) Cost-Effective Rural Electrification with Capacitor Coupled Substations: A Simulation Approach. In: Sheu, G.Y., Ed., Current Approaches in Engineering Research and Technology Vol. 5, B P International, 168-185. &gt;https://doi.org/10.9734/bpi/caert/v5/1057
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nene, S.W., Abe, B.T. and Nnachi, A.F. (2023) Transmission Line Modeling and State Space Formulation under Capacitor Coupled Substation Power Tapping Conditions. 2023 IEEE AFRICON, Nairobi, 20-22 September 2023, 1-6. &gt;https://doi.org/10.1109/africon55910.2023.10293540
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Das, D., Divan, D.M. and Harley, R.G. (2010) Power Flow Control in Networks Using Controllable Network Transformers. IEEE Transactions on Power Electronics, 25, 1753-1760. &gt;https://doi.org/10.1109/tpel.2010.2042076
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Das, D. (2012) Dynamic Control of Grid Power Flow Using Controllable Network Transformers. PhD Dissertation, Georgia Institute of Technology.
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Onuka, S., Umemura, A., Takahashi, R., Tamura, J., Sakahara, A., Tosaka, F., et al. (2020) Frequency Control of Power System with Renewable Power Sources by HVDC Interconnection Line and Battery Considering Energy Balancing. Journal of Power and Energy Engineering, 8, 11-24. &gt;https://doi.org/10.4236/jpee.2020.84002
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ma, W., Wang, W., Chen, Z., Wu, X., Hu, R., Tang, F., et al. (2021) Voltage Regulation Methods for Active Distribution Networks Considering the Reactive Power Optimization of Substations. Applied Energy, 284, Article 116347. &gt;https://doi.org/10.1016/j.apenergy.2020.116347
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ngwenya, N., Nnachi, A.F. and Abe, B.T. (2020) Switching Transient Analysis of Capacitor Coupled Substation. 2020 IEEE PES/IAS PowerAfrica, Nairobi, 25-28 August 2020, 1-5. &gt;https://doi.org/10.1109/powerafrica49420.2020.9219963
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Muzzammel, R., Khail, I., Tariq, M.H., Asghar, A.M. and Hassan, A. (2019) Design and Power Flow Analysis of Electrical System Using Electrical Transient and Program Software. Energy and Power Engineering, 11, 186-199. &gt;https://doi.org/10.4236/epe.2019.114011
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nene, S.W., Abe, B.T. and Nnachi, A.F. (2023) Modeling and Simulation of a Transmission Line Response to a 400 kv/400V Capacitor Coupled Substation. Journal of Power and Energy Engineering, 11, 1-14. &gt;https://doi.org/10.4236/jpee.2023.1112001
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nene, S.W. (2024) Study of Capacitor Coupled Substation with Controllable Network Transformer for Power Tapping and Control. SCIREA Journal of Electrical Engineering, 9, 11-26. 
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bharathi, K. and Sasikumar, M. (2021) Power Flow Control Based on Bidirectional Converter for Hybrid Power Generation System Using Microcontroller. Microprocessors and Microsystems, 82, Article 103950. &gt;https://doi.org/10.1016/j.micpro.2021.103950
    </mixed-citation>
   </ref>
   <ref id="scirp.136274-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Imdadullah, Amrr, S.M., Jamil Asghar, M.S., Ashraf, I. and Meraj, M. (2020) A Comprehensive Review of Power Flow Controllers in Interconnected Power System Networks. IEEE Access, 8, 18036-18063. &gt;https://doi.org/10.1109/access.2020.2968461
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>