<!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>Modeling and Simulation of the interaction between oil and rotating gear within Final drive volume</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>E. Avdeev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V. Ovchinnikov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laduga Automotive Engineering</institution>
          ,
          <addr-line>71 Mozhayskoe shosse, 143000, Odintsovo</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>34 Moskovskoe Shosse, 443086, Samara</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>5</fpage>
      <lpage>9</lpage>
      <abstract>
        <p>An adaptive mesh refinement (AMR) method based on discretization matrix metric is described. The computational algorithm is implemented using OpenFOAM parallel library. This open C++ library provides data structures and routines to work with the finite volume method and adaptive mesh. The method was used for oil flow in final drive simulation. For more efficient use of computing resources, we decided to use an approach based on the use of adaptive mesh refinement/coarsening. Adaptive mesh refinement approach showed greater efficiency in cases of low rotational frequencies and less efficiency in case of high frequency.</p>
      </abstract>
      <kwd-group>
        <kwd>mesh adaptation</kwd>
        <kwd>lubrication modeling</kwd>
        <kwd>final drive modeling</kwd>
        <kwd>bearing modeling</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        To simulate oil flow we decided to use a two-phase liquid-air model without taking into account the compressibility, heat
transfer and miscibility. For phase separation we use VOF method, such as Lemfeld [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], Chunfeng [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Oil flow simulation is
quite complex and requires a lot of computational time. For more efficient use of computing resources, we decided to use an
approach based on the use of adaptive mesh refinement/coarsening (Adaptive Mesh Refinement - AMR). AMR procedure
implemented in the OpenFOAM library [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], but the original library does not support AMR for rotating mesh. In this paper, we
conducted the OpenFOAM library modification for final drive lubricity modeling.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Mesh adaptation method</title>
      <p>
        Currently, the mesh adaptation technologies are widely used in numerical problems solving. There is a large amount of
literature which deals with dynamic mesh and mesh adaptation methods. One of the first works on dynamic mesh application
were investigations of Miller [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and Yanenko[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Mesh adaptation methods usually based on minimization of some selected
functional. It is achieved by refinement or coarsening of mesh elements (h-adaptation) or mesh nodes moving (p-adaptation).
      </p>
      <p>Mesh adaptation allows to reduce computational cost, to correct mesh in more complex areas, to handle moving surfaces,
phase transitions and other areas of high gradients. Mesh adaptation approaches was successfully implemented in many
commercial and non-commercial software packages such as Star-CCM+, FlowVision, Abaqus, Ansys, OpenFOAM. In this
study we used an OpenFOAM open library, which has complete modules for AMR implementation.</p>
      <p>High-Performance Computing / E. Avdeev, V. Ovchinnikov
For AMR configuration in OpenFOAM user need to provide following information:
 mesh update frequency (update mesh on every first, second or subsequent iteration);
 scalar field, whose values will be used for the mesh refinement/coarsening;
 field values interval, defined by minimum and maximum values, at which we want to refine mesh;
 field threshold value, below which we want to start mesh coarsening;
 maximum cells refinement level relative to initial mesh cells;
 the maximum allowable mesh cells amount.</p>
      <p>
        In this work as scalar field we use field, based on discretization matrix eigenvalues estimation. This method described in more
detail in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>Adaptive mesh refinement algorithm includes following steps:</p>
      <sec id="sec-2-1">
        <title>1. Discretization matrix A initialization.</title>
        <p>2. Matrix M  I  A calculation.
3. Eigenvalues estimation matrix calculation.
Fi  mii   mij ,
i j
where
mii and
m</p>
        <p>ij diagonal and off-diagonal elements of matrix M .</p>
      </sec>
      <sec id="sec-2-2">
        <title>4. Mesh cells refinement/coarsening, based on matrix F .</title>
        <p>
          Current version of OpenFOAM-v4.1 does not allow to use mesh adaptation (implemented by dynamicRefineFvMesh class)
and rotation of the mesh (implemented by solidBodyMotionFvMesh class) simultaneously. Therefore, to achieve the desired
functionality, we have created a new C ++ class solidBodyMotion dynamicRefineFvMesh by virtual inheritance. The sources
available at [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Discussed Problems</title>
      <p>In this section we briefly consider the mathematical model, which describes oil distribution during final drive gear wheel
rotation.</p>
      <p>
        Oil distribution is described by the following equations [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]:
is combined Reynolds (turbulent) and viscous stress, M
– averaged
inter– averaged transport velocity, p – pressure, t – time discretization step size, g –
      </p>
      <p>Combining equation (2) for two phases with   a and b yields the volumetric continuity equation for the mixture, which
will be utilized to formulate an implicit equation for the pressure. The volumetric continuity equation reads:
where U  a U  a U b .</p>
      <p>The averaged equations representing the conservation of mass and momentum for each phase.</p>
      <p>After the technical requirements analysis we decide to perform lubrication modeling for the following selected shaft rotational
frequencies: 551, 800, 1600, 2400 rpm. These frequencies set describes final drive basic operating modes.
 U</p>
      <p>t
</p>
      <p>t
 U  0
    U U     Reff   


  p 
 g </p>
      <p>M

   U   0
where  – phase, </p>
      <p>eff
– phase fraction, R
phase momentum transfer term, U
acceleration due to gravity,  – phase density.
(1)
(2)
(3)</p>
    </sec>
    <sec id="sec-4">
      <title>4. OpenFOAM library parallelism</title>
      <p>The method of parallel computing used in OpenFOAM is based on the computational domain mesh and fields decomposition
into separate parts, every single part is assigned to a separate computing core. Algorithms parallelization is built-in OpenFOAM
parallel library. Thus, the parallel calculation process includes the following steps: mesh and fields decomposition; parallel
solver run; postprocessing after mesh and fields reconstruction or right in the decomposed form. When post-processing cases
that have been run in parallel the user has two options:
 reconstruction of the mesh and field data to recreate the complete domain and fields, which can be post-processed as
normal;
 post-processing each segment of decomposed domain individually.</p>
      <p>A decomposed OpenFOAM case is run in parallel using the openMPI implementation of MPI. openMPI can be run on a local
multiprocessor machine very simply but when running on machines across a network, a file must be created that contains the
host names of the machines. The file can be given any name and located at any path. OpenFOAM also allows to use other MPI
implementation libraries.</p>
      <p>All computations are performed on cluster “Sergey Korolev”. In particular, we used two blade server types:
 HS22 blade servers, each of them has 2x CPU: Intel Xeon X5560, 4 cores;
 HS23 blade servers, each of them has 2x CPU: Intel Xeon E5-2665, 8 cores.</p>
      <p>Execution time comparison for this server types showed on Figure 3.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Numerical simulation results</title>
      <p>Figure 4 shows the oil-air free surface for wheel rotational frequency 2400 rpm, time = 0.278 s.</p>
      <p>Figure 5 shows the oil distribution for wheel rotational frequency 551 rev/min, time t = 1.7 s. It can be seen that in this case
the oil flow reaches the stuffing box location.</p>
      <p>Adaptive mesh refinement more effective in areas of constant oil flow form, less effective in areas with stochastic oil flow
behavior.</p>
      <p>Figure 6 shows mesh fragment for case of wheel rotational frequency 551 rev/min, time t = 1e-6 s. More fine mesh formed in
areas with a higher  phase fraction gradient, which reduces task computational cost.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>Algorithms parallelization performed by built-in features of OpenFOAM parallel library. An implemented by OpenFOAM
library model has shown efficiency and stability. Adaptive mesh refinement along with the ability to use parallel computing also
provides computational costs reduction compared to the static mesh.</p>
      <p>Adaptive mesh refinement approach showed greater efficiency in cases of low rotational frequencies and less efficiency in
case of high frequency. Computational complexity of the problem should be taken into account when deciding on the use of
AMR. The additional costs of calculating the mesh quality metric field and mesh updating decrease efficiency of AMR using.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements References</title>
      <p>This work was supported by the Ministry of Education and Science of the Russian Federation.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Lemfeld</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fran</surname>
            <given-names>K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Unger</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Numerical simulations of unsteady oil flows in the gearboxes</article-title>
          .
          <source>Journal of applied science in the thermodynamics and fluid mechanics</source>
          <year>2007</year>
          ;
          <volume>1</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Vande</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vierendeels</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dick</surname>
            <given-names>E.</given-names>
          </string-name>
          <article-title>Flow simulations in rotary volumetric pumps and compressors with the fictious domain method</article-title>
          .
          <source>Journal of Computational and Applied Mathematics</source>
          <year>2004</year>
          ;
          <volume>168</volume>
          (
          <issue>1-2</issue>
          ):
          <fpage>491</fpage>
          -
          <lpage>499</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>OpenFOAM</given-names>
            <surname>UserGuide. URL</surname>
          </string-name>
          : http://foam.sourceforge.net/docs/Guides-a4/
          <article-title>OpenFOAMUserGuide-A4</article-title>
          .
          <source>pdf (4</source>
          .
          <fpage>02</fpage>
          .
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Miller</surname>
            <given-names>K</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            <given-names>RN</given-names>
          </string-name>
          .
          <article-title>Moving finite elements</article-title>
          .
          <source>Journal on Numerical Analysis - SIAM</source>
          <year>1981</year>
          ;
          <volume>18</volume>
          (
          <issue>6</issue>
          ):
          <fpage>1019</fpage>
          -
          <lpage>1032</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Yanenko</surname>
            <given-names>NN</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lisseikin</surname>
            <given-names>VD</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kovenia</surname>
            <given-names>VM</given-names>
          </string-name>
          .
          <article-title>The method of the solution of gaz dynamical problems in moving meshes</article-title>
          .
          <source>Computing Methods in Applied Sciences and Engineering</source>
          <year>1977</year>
          ;
          <volume>91</volume>
          (
          <issue>2</issue>
          ):
          <fpage>48</fpage>
          -
          <lpage>61</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Avdeev</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fursov</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ovchinnikov</surname>
            <given-names>V.</given-names>
          </string-name>
          <article-title>An adaptive mesh refinement in the finite volume method</article-title>
          .
          <source>CEUR Workshop Proceedings</source>
          <year>2015</year>
          ;
          <volume>1490</volume>
          :
          <fpage>234</fpage>
          -
          <lpage>241</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <article-title>[7] Final drive lubrication OpenFOAM case sources</article-title>
          . URL: https://github.com/j-avdeev/
          <source>DriveLubrication (4</source>
          .
          <fpage>02</fpage>
          .
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Rusche</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Computational Fluid</surname>
          </string-name>
          <article-title>Dynamics of Dispersed Two-Phase Flows at High Phase Fractions</article-title>
          . URL: http://powerlab.fsb.hr/ped/kturbo /OpenFOAM/docs/HenrikRuschePhD2002.pdf (
          <issue>4</issue>
          .
          <fpage>02</fpage>
          .
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>