<!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>of the Influence of Changes in the Controlled Dissipative Properties on the Accuracy of the QGDFoam Solver</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexander Bondarev</string-name>
          <email>bond@keldysh.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artem Kuvshinnikov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Keldysh Institute of Applied Mathematics RAS</institution>
          ,
          <addr-line>Miusskaya sq. 4, 125047, Moscow</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This work is devoted to the study of the influence of variation of the controlled dissipative properties on the accuracy of the QGDFoam solver and the visual representation of this influence. The work continues a series of studies on the comparative assessment of the accuracy of various numerical methods and solvers built on their basis. To carry out a comparative assessment, a generalized computational experiment for classes of problems with a reference solution is constructed and implemented. A generalized computational experiment based on the synthesis of solutions of mathematical modeling problems, parallel technologies and visual analysis tools makes it possible to obtain solutions not only for individual problems, but for whole classes of problems determined by the specified ranges of key parameters. Accordingly, a comparative assessment of the accuracy of numerical methods is also carried out for a class of problems. Earlier, a similar computational experiment was carried out for a comparative assessment of the accuracy for solvers of the OpenFOAM open source software package on the well-known classical problem of an oblique shock wave formation. One of the solvers participating in the calculations, namely the QGDFoam solver, was the only one of all to have controlled dissipative properties. New generalized computational experiment was implemented to study the effect of variation of the parameter that controls the dissipative properties. The target was to reduce the error in comparison with the reference solution. The research results are presented in this work.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>assessment of the accuracy</p>
      <p>computational experiment, visualization, QGDFoam solver, comparative</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        This work develops an approach to constructing a generalized computational experiment for
comparative analysis of the accuracy of numerical methods and solvers implemented on their basis. The
work continues a series of studies devoted to the comparative assessment of the accuracy for solvers of
the open source software package OpenFOAM [
        <xref ref-type="bibr" rid="ref2 ref3">1,2</xref>
        ]. These studies are described in detail in [
        <xref ref-type="bibr" rid="ref1 ref4 ref5">3-8</xref>
        ].
      </p>
      <p>
        The general essence of the research carried out can be described as follows. Problems are selected
that have a reference solution in certain ranges of key parameters. The region of the key parameter
space is meshed. At each point of the grid partition, the problem under consideration is solved using
several solvers and compared with the exact solution. The target functional here is the error of each
solver - a deviation from the reference solution. The data obtained are investigated using visual analysis
and give a sufficient idea of the comparative accuracy of the considered solvers in a specific class of
problems [
        <xref ref-type="bibr" rid="ref1 ref4 ref5">3-8</xref>
        ].
      </p>
      <p>Previously, a similar study was carried out for 4 solvers of the OpenFOAM open source software
package for the problem of oblique shock wave formation. A shock wave was formed when a supersonic
flow fell on a plate at an angle of attack. Results have been obtained that allow a comparative assessment
of the accuracy [6, 7]. However, one solver from the comparison, namely the QGDFoam solver, has</p>
      <p>2021 Copyright for this paper by its authors.
unique properties. This solver has a parameter that allows one to control the dissipative properties of
the implemented numerical method, that is, to regulate the artificial viscosity. Therefore, we had an
idea to investigate the issue of improving the accuracy of this solver by varying this parameter. These
studies are summarized in this paper.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Background – previous studies</title>
      <p>This work is based primarily on the use of a generalized computational experiment. A generalized
computational experiment is a computational technology based on the synthesis of solutions to
problems of mathematical modeling, parallel technologies and visual analysis tools. This technology
makes it possible to obtain solutions not only for individual problems, but for entire classes of problems,
determined by the specified ranges of changes in key parameters. As a rule, the purpose of constructing
a generalized computational experiment is to study the dependence of a certain target functional on
changes in the defining parameters of the problem under consideration. The result of such an experiment
is multidimensional data, the study of which requires the use of visualization and visual analytics
methods.</p>
      <p>
        This work continues the research cycle. Previous papers contain a description of the main approaches
to the construction of a generalized computational experiment and the visualization problems arising in
this case. Papers [
        <xref ref-type="bibr" rid="ref1 ref4 ref5">3-5, 8</xref>
        ] consider the problem of comparative assessment of the accuracy of
OpenFOAM solvers when considering an inviscid flow around a cone at an angle of attack. Three
defining parameters vary here - the Mach number, the cone half-angle and the angle of attack. Papers
[6, 7] use a similar approach for the problem of the formation of an oblique shock wave when a
supersonic flow falls on a plate. Here, the variable parameters are the Mach number and the flow
deflection angle. It was this task that became the basis for the research presented in this work.
      </p>
    </sec>
    <sec id="sec-4">
      <title>3. QGDFoam solver and control of dissipative properties</title>
      <p>The system of quasi-gas dynamic (QGD) equations was created in the eighties by a group of
scientists
from
the</p>
      <sec id="sec-4-1">
        <title>Keldysh</title>
      </sec>
      <sec id="sec-4-2">
        <title>Institute of</title>
      </sec>
      <sec id="sec-4-3">
        <title>Applied</title>
      </sec>
      <sec id="sec-4-4">
        <title>Mathematics under the leadership of</title>
        <p>B.N. Chetverushkin [9, 10]. Later, quasi-gas dynamic equations were presented in the form of
conservation laws, investigated in detail, and theoretically substantiated [11-15]. Monographs dedicated
to the derivation of the equations and their applications to numerical modeling problems were also
written [16, 17]. A fundamental and essential difference of the QGD approach from the Navier-Stokes
theory was the use of a space-time averaging procedure to determine the basic gasdynamic quantities.
Thus, additional terms appear. More precisely, the mass flux density vector, the viscous stress tensor
and the heat flux vector are represented as a sum of the corresponding quantities in the Navier-Stokes
form and small additions of a significantly nonlinear form, proportional to a small parameter having the
time dimension.</p>
        <p>Many calculations have been carried out based on the QGD system of gas dynamics equations.
However, all of them were performed using individual programs. In order to extend the application of
the QGD approach to a wider range of problems, the OpenFOAM solver [18-20] was developed under
the guidance of T.G. Elizarova at the Keldysh Institute of Applied Mathematics of the Russian Academy
of Sciences.</p>
        <p>One of the most important properties of this approach is the possibility to control the dissipative
properties. In the framework of the Euler equations the dissipative coefficient can be written out as:
where α is a dimensionless parameter, ℎ is the spatial grid step,   is the sound speed. The presence
of a controllable parameter with dissipative terms allows one to successfully suppress undesirable
oscillations in numerical simulations of problems with discontinuities.</p>
        <p>= 
ℎ</p>
        <p />
        <p>During numerical experiments, the problem formulation fully corresponded to that described
in [6, 7]. We considered a two-dimensional problem of oblique shock wave formation. A supersonic
flow of inviscid gas falls on a half-plate at the angle of attack. An oblique shock wave is formed at the
end of the plate. The problem was considered with a variation of the defining parameters, where the
Mach number varied from 2 to 4 in 0.5 step, and the angle of attack varied from 6° to 20°. The deviation
from the known exact solution in different norms, L1 and L2, was calculated. Using the obtained data,
the error surfaces were plotted for all solvers involved in the calculations.</p>
        <p>In the past studies [6, 7] the parameter α was taken equal to 0.1 for the solver QGDFoam. But we
need to find the optimal values of this parameter to minimize the error in the norms L1 and L2. Taking
into account that a single uniform grid is used for all calculations, we have to solve the inverse problem.
We need to find such a value of the parameter α at which the value of the error is minimal in both
norms. Then the problem of finding such values can be formulated as follows:</p>
        <p>Argmin ErrL1(α) , ErrL1(α) = ∑ |  ( )−   | for norm L1</p>
        <p>∑ |  |
Argmin ErrL2(α) , ErrL2(α) =</p>
        <p>for norm L2
√∑ (  ( )− 
√∑ ( 
)2
)2
(2)
(3)</p>
        <p>The search for optimal values of α was carried out for fixed values of the defining parameters M=2,
β=6°. This variant was chosen as a basic one in [6, 7]. To begin with, the minimum possible value of
the parameter was found, at which the solver worked. For this problem the value was α=0.031. Further
a numerical calculation with variation of parameter α was carried out and an error for the pressure field
in norms L1 and L2 was found. The minimum values of the norm are highlighted in bold. The results
are presented in Table 1.</p>
        <p>The values of the parameter α that provide the minimum error in the norms L1 and L2 were found.
These values differ from the previously used value α = 0.1. For norm L1 the optimal value is α = 0.125,
for norm L2 – α = 0.1075. It was decided to carry out a generalized computational experiment for each
norm separately with a fixed value of α at variations in Mach number and angle of attack. It would be
natural to solve such an inverse problem for each point of the grid partitioning of the area of the defining
parameter space, but this is too computationally expensive. Numerical solutions with parameter α
computed from the point for the base case should provide insight into the effect of variation in parameter
α on the accuracy of the solver under consideration. The results are presented in Tables 2-11.</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>rCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>pCF</p>
        <p>It should be noted that during the calculations the authors were interested in the high error that
appeared at Mach number M = 2 and angle β = 20° for the solvers rhoCentralFoam and
pisoCentralFoam in norm L1. A similar phenomenon was observed in the calculations at the same Mach
number and angles β = 15°, 20° for the L2 norm. When solving these solvers numerically, oscillations
perpendicular to the shock wave front appear (Figure 1). The QGDFoam solver has a parameter that
affects the numerical dissipation and, with the optimal values of the parameter used, the oscillations are
not visually distinguishable (Figure 2). This is serious evidence of the advantages of the QGDFoam
solver, which has the ability to limit undesirable oscillations due to the presence of controlled dissipative
properties.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Results of numerical experiments</title>
      <p>During numerical experiments, the problem formulation fully corresponded to that described in
[6, 7]. We considered a two-dimensional problem of oblique shock wave formation. A supersonic flow
of inviscid gas falls on a half-plate at the angle of attack. An oblique shock wave is formed at the end
of the plate. The problem was considered with a variation of the defining parameters, where the Mach
number was varied from 2 to 4 in 0.5 step, and the angle of attack was varied from 6° to 20°. The
deviation from the known exact solution in different norms, L1 and L2, was calculated. Based on the
data obtained, error surfaces were plotted for all solvers involved in the calculations.</p>
      <p>Figure 3 shows the error surfaces in the L2 norm for all four solvers that took part in the comparison.
The calculations for the QGDFoam solver were performed with a single chosen value of α = 0.1.</p>
      <p>The Figure 4 shows the results for the same solvers in the L1 norm, but added surface, denoted as
QGDF*, calculated at α = 0.125. It can be seen that the variation of the parameter α reduced the error.
The surface QGDF* lies substantially below the surface QGDF.</p>
      <p>The following Figure 5 presents in the L1 surface norm for the solver QGDFoam when choosing
α = 0.1 (QGDF) and α = 0.125 (QGDF*).</p>
      <p>The figure shows a significant reduction in the error when the previously found value of the
parameter α = 0.125 is chosen. The maximum error reduction is 12.6% with respect to the values
obtained by choosing α = 0.1.</p>
      <p>Next, we consider similar results for the norm L2. Here, to plot the surface corresponding to the error
for the QGDFoam solver, the parameter α = 0.1075 was chosen according to Table 1. Figure 6 shows
the results for the solvers rhoCentralFoam, pisoCentralFoam, sonicFoam, and QGDFoam when α = 0.1
(QGDF) and α = 0.125 (QGDF*) were chosen.</p>
      <p>The overall picture is about the same as in Figure 4. However, for the norm L2 the error reduction is
significantly smaller. The maximum error reduction here is 2.3% with respect to the values obtained by
choosing α = 0.1. The following Figure 7 presents in the L2 norm a close-up of the error surface for the
QGDFoam solver when α = 0.1 (QGDF) and α = 0.1075 (QGDF*) are chosen.</p>
      <p>Thus, the implemented generalized computational experiment allows us to assert that variations of
the parameter regulating the dissipative properties of the QGDFoam solver can significantly reduce the
error in comparison with the reference solution and increase the accuracy of calculations. This should
be considered as a clear advantage of this solver and a great potential in its use for solving practical
problems of mathematical modeling.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions</title>
      <p>In this paper, we studied the effect of variation in controllable dissipative properties on the accuracy
of the QGDFoam solver and a visual representation of this effect. This work continues a series of studies
on the comparative evaluation of various numerical methods accuracy and solvers built on their basis.
The study is based on the construction of a generalized computational experiment for a comparative
analysis of the accuracy of numerical methods and solvers based on them. The realization of the
generalized computational experiment has shown that variations of the parameter regulating dissipative
properties of the solver QGDFoam can significantly reduce the error in comparison with the reference
solution and increase the accuracy of calculations.</p>
    </sec>
    <sec id="sec-7">
      <title>7. Acknowledgements</title>
      <p>The study was supported by a grant from the Russian Science Foundation № 19-11-00169,
https://rscf.ru/project/19-11-00169/</p>
    </sec>
    <sec id="sec-8">
      <title>8. References</title>
      <p>[5] A. E. Bondarev, A. E. Kuvshinnikov, Analysis of the behavior of OpenFOAM solvers for 3D
problem of supersonic flow around a cone at an angle of attack, CEUR Workshop Proceedings
2763 (2020) 48–51. doi:10.30987/conferencearticle_5fce2771320ef0.90086903.
[6] A. K. Alekseev, A. E. Bondarev, A. E. Kuvshinnikov, Comparative analysis of the accuracy of
OpenFOAM solvers for the oblique shock wave problem, Matematica Montisnigri XLV (2019)
95–105. doi:10.20948/mathmontis-2019-45-8.
[7] A. Bondarev, A. Kuvshinnikov, Parametric Study of the Accuracy of OpenFOAM Solvers for the
Oblique Shock Wave Problem, in: IEEE The Proceedings of the 2019 Ivannikov ISPRAS Open
Conference (ISPRAS-2019), 2019, pp. 108–112. doi:10.1109/ISPRAS47671.2019.00023.
[8] A.E. Bondarev, Processing of Visual Results of a Generalized Computational Experiment for the
Problem of Supersonic Flow Around a Cone at an Angle of Attack, Scientific Visualization 13(2)
(2021) 104–116. doi:10.26583/sv.13.2.08.
[9] B. N. Chetverushkin, T. N. Elizarova, Kinetic algorithms for calculating gas dynamic flows,</p>
      <p>U.S.S.R. Comput. Math. Math. Phys. 5(5) (1985) 164–169.
[10] T. G. Elizarova, B. N. Chetverushkin, Application of kinetic models in the simulation of
gasdynamic flows, in: Matematicheskoie modelirovanie. Protsessy v nelineinykh sredakh, Nauka,
Moscow, 1986, pp. 261-278.
[11] T. G. Elizarova, A. N. Pavlov, B. N. Chetverushkin, Application of system of quasi-gasdynamic
equations for simulation of the flow around body with a needle, Dokl. Akad. Nauk SSSR 297(2)
(1987) 327–331.
[12] T. G. Elizarova, Yu. V. Sheretov, The invariant norm and asymptotic properties of a generalized
quasi-gas-dynamic system, U.S.S.R. Comput. Math. Math. Phys. 31(7) (1991) 72–78.
[13] T. G. Elizarova, Yu. V. Sheretov, Theoretical and Numerical Analysis of Quasi-Gasdynamic and</p>
      <p>Quasi-Fluid-Dynamic Equations, Comput. Math. Math. Phys., 41(2) (2001) 219–234.
[14] T. G. Elizarova, M. T. Sokolova, Yu. V. Sheretov, Quasi-gasdynamic equations and numerical
simulation of viscous gas flows, Comput. Math. Math. Phys., 45(3) (2005) 524–534.
[15] A. A. Zlotnik, B. A. Chetverushkin, Parabolicity of the quasi-gasdynamic system of equations, its
hyperbolic second-order modification, and the stability of small perturbations for them, Comput.</p>
      <p>Math. Math. Phys., 48(3) (2008) 420–446. doi: 10.1007/s11470-008-3008-9.
[16] B. N. Chetverushkin, Kinetic schemes and Quasi-Gas Dynamic system of equations, CIMNE,</p>
      <p>Barcelona, 2008.
[17] T. G. Elizarova, Quasi-Gas Dynamic Equations, Springer-Verlag, Berlin, Heidelberg, 2009.
[18] M. V. Kraposhin, D. A. Ryazanov, E. V. Smirnova, T. G. Elizarova, M. A. Istomina, Development
of OpenFOAM Solver for Compressible Viscous Flows Simulation Using Quasi-Gas Dynamic
Equations, Ivannikov ISPRAS Open Conference, 2017, pp. 117–123. doi:
10.1109/ISPRAS.2017.00026.
[19] M. A. Istomina, About realization of one-dimensional quasi-gas dynamic algorithm in the open
program OpenFOAM complex, Preprint IPM No. 1 (Moscow: KIAM), (2018).
[20] M. V. Kraposhin, E. V. Smirnova, T. G. Elizarova, M. A. Istomina, Development of a new
OpenFOAM solver using regularized gas dynamic equations, Computers &amp; Fluids, 166 (2018)
163–175. doi: 10.1016/j.compfluid.2018.02.010.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          4.
          <article-title>QGDFoam solver and control of dissipative properties</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>OpenFOAM</given-names>
            <surname>Foundation</surname>
          </string-name>
          , OpenFOAM: Free CFD software,
          <year>2021</year>
          , URL: http://www.openfoam.org.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Jasak</surname>
          </string-name>
          ,
          <article-title>OpenFOAM: Open source CFD in research and industry</article-title>
          ,
          <source>Int. J. Nav. Archit. Ocean Eng</source>
          .,
          <volume>1</volume>
          (
          <issue>2</issue>
          ) (
          <year>2009</year>
          )
          <fpage>89</fpage>
          -
          <lpage>94</lpage>
          . doi:
          <volume>10</volume>
          .2478/IJNAOE-2013-0011
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Bondarev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Kuvshinnikov</surname>
          </string-name>
          ,
          <article-title>Analysis of the Accuracy of OpenFOAM Solvers for the Problem of Supersonic Flow Around a Cone</article-title>
          , in: Y.
          <string-name>
            <surname>Shi</surname>
          </string-name>
          et al. (Eds.),
          <source>Computational Science - ICCS</source>
          <year>2018</year>
          , volume
          <volume>10862</volume>
          of Lecture Notes in Computer Science, Springer, Cham,
          <year>2018</year>
          , pp.
          <fpage>221</fpage>
          -
          <lpage>230</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>319</fpage>
          -93713-7_
          <fpage>18</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Bondarev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kuvshinnikov</surname>
          </string-name>
          ,
          <article-title>Comparative Estimation of QGDFoam Solver Accuracy for Inviscid Flow Around a Cone</article-title>
          ,
          <source>in: IEEE The Proceedings of the 2018 Ivannikov ISPRAS Open Conference (ISPRAS-2018)</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>82</fpage>
          -
          <lpage>87</lpage>
          . doi:
          <volume>10</volume>
          .1109/ISPRAS.
          <year>2018</year>
          .
          <volume>00019</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>