<!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  implementation  of  calculation  of  technical  characteristics of water treatment systems in power engineering </article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Inna Pivovarova</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexander V. Matveev</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anna Pevneva</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Saint Petersburg National Research University of Information Technologies, Mechanics and Optics University ITMO</institution>
          ,
          <addr-line>49, Kronverksky Prosp, Saint Petersburg, 197101</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Saint Petersburg University of State Fire Service of EMERCOM of Russia</institution>
          ,
          <addr-line>149, Moskovsky Prosp., Saint Petersburg, 196105</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>2022</volume>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>   The paper proposes a developed software application for automating the calculation of the technical characteristics of continuous ionites units with a fluidized ionite bed used in the water treatment system of the energy complex. The program is designed to calculate the structural and hydraulic parameters of an ion-exchange parallel-point filter used in water softening and demineralization schemes at water treatment facilities of heat power facilities. The necessary initial data, formulas are given, on the basis of which the algorithm is compiled, logical structures are developed and a software solution is obtained. The importance of work on ensuring high quality of water heat carriers for ensuring long-term and uninterrupted operation of the energy complex from the point of view of technogenic safety, as well as reducing capital and operating costs is shown. The possibility of using the developed software application in training specialists, as well as directly in working conditions, is described.</p>
      </abstract>
      <kwd-group>
        <kwd> 1  Automation</kwd>
        <kwd>filters</kwd>
        <kwd>water treatment system</kwd>
        <kwd>software application</kwd>
        <kwd>energy</kwd>
        <kwd>industrial safety</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction </title>
      <p>
        Modern energy development requires the use of a huge amount of various resources, including
water. Water is used as a heat carrier, diluent and cooling component. Each individual production or
technology requires the production of water of a certain quality. Compliance with the water regime is
one of the key tasks to ensure reliable and safe operation of energy complexes. The service life of all
equipment depends on the purity of the coolant, even small deviations from the norms can lead to
increased corrosion, deterioration of heat transfer and premature failure [
        <xref ref-type="bibr" rid="ref1 ref2">1-2</xref>
        ].
      </p>
      <p>The main feature of the equipment of the enterprises of the energy complex is operation at high
thermal loads. Such modes require strict limitation of the thickness of deposits on the heating surfaces.
The source of scale formation is the impurities supplied with the make-up water. That is why the most
important task for the energy complex is to ensure high quality of water heat carriers.</p>
      <p>Each water source requires an individual analysis and calculation of a water treatment plant for
industrial use. Industrial water treatment is a complex of operations that provide water purification - the
removal of harmful impurities from it, which are in a molecularly dissolved, colloidal and suspended
state. The main operations of water treatment: cleaning from suspended impurities by sedimentation
and filtration, softening, and in some cases - desalination, neutralization, degassing and disinfection.</p>
      <p>
        The article describes the developed software application for automating the calculation of the
parameters of the water purification filter. A filter of the FIPa type is considered - ion-exchange
parallelflow filter. Such filters are used in water softening and desalination schemes at water treatment plants
of power plants, industrial and heating boilers [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Ionite filters are designed for water treatment in order
to remove scale-forming cations (Ca2 + and Mg2 +) from it in the process of
hydrogen-sodiumcationization or ammonium-sodium-cationization, as well as sulfate, chloride and nitrate anions in the
process of desalting natural waters.
      </p>
      <p>
        Feedwater systems of high-pressure boilers and many technological systems of energy complexes
require almost complete removal of all ions, including carbon dioxide and silica [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Ion exchange
systems are used to effectively remove dissolved ions from water. Therefore, it is not surprising that
ion-exchange technologies occupy the main share in water purification at currently operating power
plants and thermal installations not only in Russia, but also in European countries [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2.  Materials and methods </title>
      <p>
        Ionites are solid insoluble substances capable of exchanging their ions for ions from the surrounding
solution. These are usually synthetic organic resins with acidic or alkaline groups. Ionites are solid
insoluble substances capable of exchanging their ions for ions from the surrounding solution. These are
usually synthetic organic resins with acidic or alkaline groups. Ionites are divided into cationites that
absorb cations, anionites that absorb anions, and amphoteric ionites that have both of these properties.
They are widely used for water desalination [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>Ion-exchange materials of natural and artificial origin, such as cationites and anionites, are used as
filter loading in ionite filters.</p>
      <p>The filter consists of:
 Enclosures
 Bottom and top switchgear
 Pipelines
 Shut-off valves
 Sampling devices</p>
      <p>
        Purification (filtration) at stage I FIP (additional purification at stage II FIP) of the incoming stream
from dissolved ionic impurities occurs due to the exchange of metal cations (anions of acid residues)
for an equivalent amount of Na + or H + cations (anions of Cl- or OH- groups) in grains filtering
material (cation or anion). After filtration is completed, the filter stops and is disconnected from the
working manifold. A technological operation is carried out to loosen the ionite, designed to eliminate
its compaction. After loosening, the ionite is regenerated [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
2.1.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Calculation part </title>
      <p>
        As a mathematical apparatus for calculating the filter parameters, the method of Yu.I. Dytnersky (in
accordance with the Manual to SNiP 2.04.03-85), when the value of the hydraulic characteristics
obtained from the initial group of data is compared with the theoretical value for the required degree of
purification [
        <xref ref-type="bibr" rid="ref8 ref9">8-9</xref>
        ].
      </p>
      <p>The formulas used for the calculation are as follows:
Sorption isotherm equation</p>
      <p>The sorption isotherm equation for the exchange of equally charged H+ ions for Na+ on the basis of
the mass action law is written as follows:</p>
      <p>∗
where</p>
      <p>– total exchange capacity, 
2.1.1. Liquid flow rate 
   /</p>
      <p> 
1  1 /
– equilibrium constant, 
– final concentration.</p>
      <p>(1) </p>
      <p>The fictitious fluid velocity in the fluidized bed is found from the equation connecting the criteria
Re, Аr with the porosity of the bed е:
0.61√  ∙</p>
      <p>.</p>
      <p>The porosity of the bed in ionites with a fluidized bed can be determined from the operating data of
industrial ionites, according to which the height of the fluidized bed is 1.5-2 times the height of the
fixed bed. Taking into account these data, taking the porosity of the fixed bed ε0 = 0,4, it is possible to
obtain the interval of porosity variation ε = 0,6-0,7. The porosity of the bed in this interval: ε = 0,65.</p>
      <p>Density of the swollen cationite particle:</p>
      <sec id="sec-3-1">
        <title>Archimedes criterion:</title>
      </sec>
      <sec id="sec-3-2">
        <title>Liquid rate:</title>
        <p>Apparatus diameter: 
filter diameters.
(2) 
(3) 
(4) 
(5) 
(6) 
(7) 
(8) 
(9) 
(10) 
where  к</p>
        <p>– final concentration of Na+ in the cationite, kg/kg.</p>
        <p>
          Due to the fact that in cylindrical apparatuses with a fluidized bed, the solid phase is completely
mixed, the density of the distribution of ionite particles over the residence time is determined by the
ratio [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]:
        </p>
        <p>In the region of relatively low concentrations, the equilibrium dependence is close to linear.
Approximately, the sorption exchange isotherm can be assumed to be linear with the slope tangent equal
to  ∗

/</p>
        <p>, where 
the flow can be found as the average logarithmic
– average ion concentration Na+. The average concentration of Na+ ions in</p>
        <p>к
 

1
exp


Determination of limiting diffusion resistance:</p>
        <p>The phase in which the limiting diffusion resistance is concentrated can be determined by the value
of the Biot criterion:  ’
mass transfer, m/s;</p>
        <p>с / 
– effective diffusion coefficient in the particle, m2/s;  is the tangent of the angle</p>
        <p>G , where R is the particle radius, m;  с
– coefficient of external
of inclination of the equilibrium line, m3/kg;</p>
        <p>– ionite density, kg/m3. At  ’ 20 he overall mass
predominant. The external mass transfer coefficient  с is determined by the criterion equation
transfer rate is determined by internal diffusion, while at  ’ 1,0 external diffusion resistance is
,
After finding the diameter, it is required to round it to the number presented in the range of standard

where  ’
1,17 ∙ 10– m2/s.</p>
        <p>µ /с ∙  ;
The external mass transfer coefficient is determined by the formula:
Average tangent of the slope of the equilibrium dependence:</p>
        <p>Bio criterion:
where 
 – / 1 –</p>
        <p>.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>2.1.2. Average residence time of ionite particles in the apparatus </title>
      <p>The degree of processing of a spherical ionite grain , which is in a liquid medium with a
concentration of Cav at Bi → 0 for time t, is determined by the following expression:</p>
      <p>Assuming that the equilibrium concentration in the ionite corresponds to the average concentration
in the fluid flow (</p>
      <p>), it is possible to find the average degree of ionite processing throughout the bed:</p>
      <p>The final concentration of Na+ ions in the cationite is found from the material balance, having
previously determined the minimum and operating consumption of the ionite. The minimum flow rate
is found from the condition of equilibrium of the solid phase with the solution leaving the apparatus:</p>
      <p>
        According to experimental data, the working consumption of the sorbent is 1.1-1.3 times higher than
the minimum [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Taking the ratio of the working and minimum costs equal to 1.2, the working
consumption of cationite is obtained:
      </p>
      <p>Average residence time of cationite particles:</p>
    </sec>
    <sec id="sec-5">
      <title>2.1.3. Height of the fluidized ionite bed </title>
      <p>Volumetric ionite consumption
Fluidized bed volume
Fluidized bed height
1


 к
The value  ∗  к is determined from the isotherm equation.</p>
      <p>
        As you can see, the calculation algorithm is quite cumbersome and requires a certain loss of working
time [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Therefore, to automate the process of selecting parameters for a filter from the standard range,
it was decided to make a software application.
      </p>
      <p>The volume of the fluidized bed and its height can be determined by integrating the mass transfer
equation written for a fluidized bed of infinitesimal height. This approach gives the following
calculation formula for the volume of the fluidized bed
2.2.
The project is developed in the Java programming language using modern programming techniques,
such as anonymous functions (also known as lambda expressions), dynamic arrays, hash tables. The
features available in Java SE 8 are used. The MVC (Model-View-Controller) scheme is applied, which
assumes the division of the program code into 3 parts, describing, respectively, the visual component
displayed on the screen, the so-called controller, that is, the part of the program code that ensures
coordination between the visual and computational parts, and directly the part of the code that
implements business logic. The external view of the project directory is shown in Figure 1.</p>
      <p>The algorithm is as follows:</p>
      <p>Read the necessary parameters from the form, sufficient for further calculations</p>
      <p>Find the filter diameter
3. Search the database to refine the diameter</p>
      <p>Display the result on the form</p>
      <p>Table 1 
Dependence of technological parameters on the brand of cationite used (initial data for calculation) </p>
      <sec id="sec-5-1">
        <title>Cationite  brand </title>
        <p>КУ‐1 
КУ‐2‐8 
КУ‐23 
КБ‐4П‐2 </p>
      </sec>
      <sec id="sec-5-2">
        <title>Diameter (d),  mm </title>
      </sec>
      <sec id="sec-5-3">
        <title>Density (ρ),  kg/m3 </title>
      </sec>
      <sec id="sec-5-4">
        <title>Sp.volume,(ν0) </title>
        <p>Sm3/g 
1.2 
0.9 
0.75 
0.95 </p>
        <p>Thus, there is a need for the following structures: filter, cationite - represent a table entry, and in the
following classes: an application that coordinates the work, a form - a visual display of information on
the screen, a class that performs the necessary calculations, a database - loads from files and software
provides the necessary information for certain requests. Additionally, one utility class has been
introduced, which also represents a database, which in response returns strings in Russian and English.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>3.  Results and discussion </title>
      <p>The Application class has a main (String[] args), method, which is the entry point to the program.
In this procedure, databases When the form display method is called, a separate thread is launched,
which in a loop processes screen events and calls the methods that have been subscribed (using the
Listener programming pattern). When you click on the "Calculate" button, the entered values are
checked, and if they correspond to the logic of the task, then the Application class is called to perform
calculations - the process () method is called, the arguments of which are the initial parameters. Thus,
separation is performed: for the form to work, the module that performs the calculations is not directly
required, and vice versa, the calculation part is in no way connected with the implementation of the
form.</p>
      <p>The main project class makes sequential calls to the calculation class, the database class and again
to the calculation class to determine the output parameters. Then the obtained values are transferred to
the form, on which the information is displayed.</p>
      <p>Working procedure with the program:
1. The user starts the program, the main form of the application is displayed on the screen (Figure 2)
2. If you wish to work in Russian, the author, using the File -&gt; Language -&gt; menu, selects the</p>
      <p>Russian interface language
3. The user enters the required parameters that determine the operating mode of the filter, cationite
and the level of water pollution
4. The program checks the entered values, and in case of successful verification, the calculation is
performed. The calculated values are placed at the bottom of the screen form (Figure 3)
5. To exit the program, click on the "Exit" button, on the icon for closing the window, or using the</p>
      <p>File -&gt; Exit item.</p>
    </sec>
    <sec id="sec-7">
      <title>4. Conclusion </title>
      <p>The practical significance of the work carried out on the development of the software application is
obvious and consists in simplifying and automating the calculations of the parameters of the cleaning
filter. For the developed software application, a Certificate of state registration was obtained and its
work was tested in the university educational process.</p>
      <p>Competent selection of filter parameters for a water treatment system can not only improve the
economic component of the energy complex, but is also very important in the field of technogenic
safety. Ionic impurities can seriously affect the reliability and efficiency of the entire technological
system. Hardness ions, such as calcium and magnesium, must be removed from the water supply system
before it can be used as feed water in the energy system. Overheating caused by the accumulation of
scale or deposits formed by these impurities can lead to catastrophic pipe failures, costly production
losses and unplanned downtime.</p>
    </sec>
    <sec id="sec-8">
      <title>5. References </title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>V. G.</given-names>
            <surname>Starchak</surname>
          </string-name>
          , et al,
          <article-title>Povysheniye effektivnosti vodoochistki - put' k ekologicheskoy bezopasnosti i resursosberezheniyu, Voda i ekologiya: problemy i resheniya 3 (</article-title>
          <year>2018</year>
          )
          <fpage>48</fpage>
          -
          <lpage>53</lpage>
          . doi:
          <volume>10</volume>
          .23968/
          <fpage>2305</fpage>
          -
          <lpage>3488</lpage>
          .
          <year>2018</year>
          .
          <volume>20</volume>
          .3.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Choshnova</surname>
          </string-name>
          ,
          <article-title>Improving of the water preparation systems in the industry thermal power plants</article-title>
          ,
          <source>Proceedings of the MATEC Web of Conferences</source>
          <volume>145</volume>
          (
          <year>2017</year>
          )
          <fpage>1</fpage>
          -
          <lpage>7</lpage>
          . doi:
          <volume>10</volume>
          .1051/matecconf/201814505016
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Zh. S.</given-names>
            <surname>Nurullin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. G.</given-names>
            <surname>Sheshegova</surname>
          </string-name>
          ,
          <article-title>Raschet i proyektirovaniye ustanovok vodopodgotovki, Izd-vo Kazansk. gos</article-title>
          . arkhitekt.-stroit. un-ta,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Bondarev</surname>
          </string-name>
          , et al,
          <article-title>Modeling an automated management system of technological processes in public energetics</article-title>
          ,
          <source>Journal of Physics. Conf. Series</source>
          <volume>1515</volume>
          (
          <year>2020</year>
          ). doi:
          <volume>10</volume>
          .1088/
          <fpage>1742</fpage>
          - 6596/1399/5/05500
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Marek</surname>
          </string-name>
          ,
          <article-title>State-of-the-Art Water Treatment in Czech Power Sector: Industry-Proven Case Studies Showing Economic and Technical Benefits of Membrane and Other Novel Technologies for Each Particular Water Cycle</article-title>
          ,
          <source>Membranes</source>
          <volume>11</volume>
          (
          <issue>2</issue>
          ) (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .3390/membranes11020098
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A. P.</given-names>
            <surname>Vergun</surname>
          </string-name>
          , Ionoobmennyye tekhnologii,
          <source>Tomskiy politekhnicheskiy universitet</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Tekhnicheskiye kharakteristiki</surname>
            <given-names>FIP</given-names>
          </string-name>
          ,
          <year>2016</year>
          . URL: https://www.teko-filter.ru/production/filtr-dlyochistki
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Yu. I. Dytnerskiy</surname>
          </string-name>
          ,
          <article-title>Osnovnyye protsessy i apparaty khimicheskoy tekhnologii</article-title>
          , Khimiya, Moskva,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Nikolaev</surname>
          </string-name>
          et al,
          <article-title>Mass transfer processes</article-title>
          ,
          <source>VSGTU Publishing House, Ulan-Ude</source>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>L. O.</given-names>
            <surname>Shtripling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. P.</given-names>
            <surname>Turenko</surname>
          </string-name>
          ,
          <article-title>Osnovy ochistki stochnykh vod i pererabotki tverdykh otkhodov, Izd-vo OmGTU</article-title>
          , Omsk,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Yu. P Klapshin</surname>
          </string-name>
          ,
          <article-title>Umyagcheniye vody ionoobmennym i barometricheskim metodami</article-title>
          ,
          <source>Nizhniy Novgoro</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>L.</given-names>
            <surname>Ansorge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zeman</surname>
          </string-name>
          ,
          <article-title>Model of Water Needs for Energy Production</article-title>
          ,
          <source>Statistika</source>
          <volume>96</volume>
          (
          <year>2016</year>
          )
          <fpage>36</fpage>
          -
          <lpage>46</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>