<!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>
      <article-id pub-id-type="doi">10.18287/1613-0073-2015-1490-234-241</article-id>
      <title-group>
        <article-title>An adaptive mesh refinement in the finite volume method</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Avdeev E.V.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fursov V.A.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ovchinnikov V.A.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Samara State Aerospace University</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2015</year>
      </pub-date>
      <fpage>234</fpage>
      <lpage>241</lpage>
      <abstract>
        <p>In this paper we describe the method of adaptive mesh refinement, based on the estimation of eigenvalues of discretization matrix. This estimation based on Gershgorin Circle Theorem. This method can be used for unstructured meshes in two-dimensional problems as well as and in three-dimensional. The implementation of the grid adaptation algorithm was made within OpenFOAM open source library of continuum mechanics. This library consists of a set of modules for computational needs, modules written in C++. We give two numerical examples, which show the effectiveness of the proposed method of mesh adaptation.</p>
      </abstract>
      <kwd-group>
        <kwd>adaptive mesh refinement</kwd>
        <kwd>Gershgorin Circle Theorem</kwd>
        <kwd>OpenFOAM</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>volume as well as for the whole computational domain and for any number of control
volumes.</p>
      <p>One of the advantages of the finite volume method over finite difference methods
is that it does not require a structured mesh. Finite volume methods are especially
powerful on coarse nonuniform grids and in calculations where the mesh moves to
track interfaces or shocks.</p>
      <p>In general case it is impossible to know a priori how to design an optimal mesh, i.e.
mesh with minimal number of cells still satisfying the defined tolerance of the
computational error. For transient problems, where the flux is unsteady and the points
of interest can reposition during the simulation, uniform mesh becomes ineffective
and would need to be very fine to satisfy the error tolerance throughout the whole
simulation. To solve this problem a scheme where the mesh self-adapts its structure
upon some criteria can be used.</p>
      <p>The refinement based commonly on the physical quantity gradient field (see [3]
and [4]). Our algorithm based on discretization matrix eigenvalues estimation, which
mark cells to be refined or likewise mark cells to be unrefined. This approach has a
more effective use of cells and thereby lower computational cost.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Problem Formulation</title>
      <p>Suppose that after equations have been discretized by FVM we obtain the system
of algebraic equations, which can be written in matrix form as
Ax = b
where A – square  ×  discretization matrix,  −  × 1 column vector of unknown
variable,  −  × 1 right-hand column vector. The problem consists in finding vector
x whose elements are the values of physical quantity in the cell centers.</p>
      <p>
        It is known that the accuracy of the solution of the problem is largely connected
with conditionality of the matrix A. Perform the following transformation with the
expression (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
Where I – is the identity matrix. Then rewrite the expression (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) taking into account
that we use iterative method for solving, i.e.
      </p>
      <p>
        Note that error of the k-th and (k+1)-th iteration respectively can be written as
follows:
Subtract (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) from (
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
x  xk1 = (I  A)(x  xk )
or using (
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
ek1 = (I  A)ek
ek1 = Mek
      </p>
      <p>
        Expression (
        <xref ref-type="bibr" rid="ref5">5</xref>
        ) shows that for the sequence error reduction at each iteration, it is
necessary that for all eigenvalues of the matrix performs:
      </p>
      <p> (M)  1</p>
      <p>Thus we see that the eigenvalues of the matrix M = I - A depend on the matrix A
elements and play an important role in achieving the required accuracy. In particular,
they show whether the problem under these conditions converge, converge to the
correct solution and how fast.</p>
      <p>On other hand, it is known that the elements of matrix A and the right-hand side b
are functions of the mesh spacing. Consequently, there is a relation between
conditionality and mesh discretization step. Identification of this relations using
approximated equations is not easy task. Moreover, in closed source software, this
details are hidden. Therefore we construct procedures of direct analysis of matrix M
to identify the relations of conditionality and solution accuracy with mesh and
adaptive mesh refinement.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Adaptive mesh refinement algorithm</title>
      <p>It is known that the solution of eigenvalues problem is significant and has high
computational cost. Moreover, if the case is ill-conditioned, then small eigenvalues
can be calculated with low accuracy. Therefore, we have sufficient interest to use
simple estimates of eigenvalues, estimates which calculated by the matrix elements
insensitive to its conditioning.</p>
      <p>Gershgorin circles method [4] is a well-known method for the localization of
eigenvalues. According to Gershgorin’s Theorem every eigenvalues satisfies:
  Mii   Mij ,</p>
      <p>i j
where i 1, 2, ..., n .</p>
      <p>Let di   Mij . Then the set</p>
      <p>ji</p>
      <p>
        is called the ith Gershgorin disc of the matrix M. This disc
is the interior plus the boundary of a circle. The circle has a radius di and is centered
at (the real part of Mii , the imaginary part of Mii ).
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
(6)
      </p>
      <p>Calculating of estimates of the eigenvalues based on equation (6) is the
computationally simple task. However, sufficiently strong upper and lower
estimations are possible only for diagonally dominant matrices:
Mii   Mij .</p>
      <p>i j
If the matrix is not diagonally dominant, then lower and upper estimations of
eigenvalues are undefined.</p>
      <p>We offer to predict conditionality and mesh quality associated with conditionality
through the right boundary of the Gershgorin circle:
Fi  mii  ij mij . (7)</p>
      <p>This boundary can be easily calculated. The maximum value, which calculated
among the boundaries for all Gershgorin circles, defines an upper bound for the
maximum eigenvalue of the matrix. Because of change of mesh all eigenvalues
“shift” together with appropriate Gershgorin circles. There is reason that changes in
the mesh, which lead to increase   in (7), may lead to increase small eigenvalues.</p>
      <p>Based on these assumption we have the mesh adaptation algorithm, which based
on the analysis of scalar field   i 1, 2, ..., n , which formed by calculating the
values of (7) for all mesh nodes. Then mesh adaptation was made based on this scalar
field. The normalization of field F is performed before each iteration:</p>
      <p>Fi
normalised
</p>
      <p>Fi
max(Fi )</p>
      <p>Thus the values of the field F are within the semi-interval (0;1] and it let us to set
in OpenFOAM to refine mesh for cells with   close to 1 and unrefined cells with Fi
around 0. Values of field F decrease while refining mesh and increase while coursing
mesh.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Computational examples and analysis</title>
      <p>In order to illustrate feasibility and effectiveness of the algorithm, we use
following two examples [5]. Both examples use modified laplacianFoam OpenFOAM
solver called laplacianFoamF. New solver has ability to work with dynamic mesh,
which allows to adapt mesh.</p>
      <p>We compare AMR based on temperature scalar field T, i.e. based on temperature
gradient minimization (AMR T) and AMR based on described above scalar field F (8)
– (AMR F). For every example we tried to get about the same amount of cells.</p>
      <p>Initial geometry of first example, as shown on Fig.1, thin square plate. The length
along the x-axis and z-axis is 100 meters, along y-axis is 1 meter.
(8)
has temperature T2  273C . On all other surfaces the temperature gradient is set to
0, that walls do not conduct heat (adiabatic walls).</p>
      <p>During testing, we found that AMR based on scalar field F detects too large cells,
but does not take into account the boundary conditions (see Fig. 4). This occurs due to
the fact that the boundary conditions are contained in right-hand column vector b of
Eq.1, but almost no effect on discretization matrix M.</p>
      <p>AMR based on temperature gradient field T vice versa takes into account the
boundary conditions, but skips “bad” cells.</p>
      <p>Therefore for comparison was made third “hybrid” variant, which include first five
iterations of AMR F and after that it continues with AMR T. For comparison, residual
plots of three cases are given (see Fig. 6).</p>
      <p>As can be seen from the figure, AMR FT has the best residual, AMR F and AMR
T slightly worse.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In the proposed method mesh refinement based on discretization matrix
conditioning. As can be seen from above two examples – the method does not provide
a significant performance increase compared to AMR, based on temperature gradient
minimization, but use AMR T not always convenient or possible. Such situations are
possible in complex problems with dynamic geometry, multiphase flows, etc. Our
proposed method allows to choose more suitable AMR settings than in case of
AMR Т.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>In This work was supported by the Ministry of Education and Science of the
Russian Federation (project №"2.2335.2014/K").</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Versteeg</surname>
            <given-names>HK</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Malalasekera</surname>
            <given-names>W.</given-names>
          </string-name>
          <article-title>An introduction to computational fluid dynamics</article-title>
          .
          <year>2ed</year>
          ., Pearson Ed.,
          <year>2007</year>
          ; 517 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Joubarne</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guibault</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Braun</surname>
            <given-names>O</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Avellan</surname>
            <given-names>F</given-names>
          </string-name>
          .
          <article-title>Numerical capture of wind tip vortex improved by mesh adaptation</article-title>
          .
          <source>International Journal for Numerical Methods in Fluids</source>
          ,
          <year>2011</year>
          ;
          <volume>67</volume>
          (
          <issue>1</issue>
          ):
          <fpage>8</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Escobar</surname>
            <given-names>JA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ramirez</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jimenez</surname>
            <given-names>RA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giraldo</surname>
            <given-names>AM</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Silva</surname>
            <given-names>C</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lopez</surname>
            <given-names>OD</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ochoa</surname>
            <given-names>N</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mahecha</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leguizamon</surname>
            <given-names>S.</given-names>
          </string-name>
          <article-title>Numerical simulation of NASA wing-trap model as a Colombian Contribution to the High-Lift Prediction workshop</article-title>
          .
          <source>30th AIAA Applied Aerodynamics Conference Special Session: CFD High Lift Prediction Workshop</source>
          Followon II,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Brakken-Thal P. Gershgorin</surname>
          </string-name>
          <article-title>'s Theorem for Estimating Eigenvalues</article-title>
          . Source: &lt;http://buzzard.ups.edu/courses/2007spring/projects/brakkenthal-paper.
          <source>pdf&gt;.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>5. Source: &lt;https://github.com/j-avdeev/laplacianFoamF&gt;.</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>