<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="publisher-id">jcse</journal-id><journal-title-group><journal-title>Journal of Computational Science and Engineering</journal-title></journal-title-group><issn>1710-4068</issn><publisher><publisher-name>Advancersin</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">jcse-v8-a04</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>Comparison of Finite Difference and Finite Volume Method Basd on MAC for Numerical Simulation of Driven Cavity Flow</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Li</surname><given-names>Jiangfei</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Jin</surname><given-names>Long</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Yuan</surname><given-names>Lian</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Li</surname><given-names>Bo</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Fu</surname><given-names>Zhizhong</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Wu</surname><given-names>Changchun</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff id="aff-1">Beijing Key Laboratory of Urban Oil and Gas Distribution Technology China University of Petroleum (Beijing), Beijing, China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2013"><year>2013</year></pub-date><volume>8</volume><fpage>305</fpage><lpage>309</lpage><permissions><copyright-statement>2013 © The American Computational Science Society.</copyright-statement><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/" start_date="2021-11-26">https://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), which permits sharing and adaptation, including commercial reuse, subject to attribution, a link to the license and an indication of changes. Third-party material separately credited with different terms is governed by the license or rights notice stated for that material.</license-p></license></permissions><self-uri content-type="fulltext" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v8-a04/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v8-a04/jcse-v8-a04.pdf"/><abstract><p>This paper briefly presents the history of development of the TRIZ namely the Theory of the Solution of Inventive Problems, introduces the current situation of the theoretical research and the application of the TRIZ, and propounds the emphasis and direction of the research and application of the TRIZ in China, which will contribute to the enhance the efficiency and benefits in Computer Aided Manufacturing.</p></abstract><kwd-group><kwd>MAC Method</kwd><kwd>Staggered grid</kwd><kwd>Finite difference</kwd><kwd>Finite volume</kwd><kwd>Driven cavity flow</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>Introduction</title>
      <p>The original state of the driven cavity f low ,</p>
      <p>in</p>
      <p>a rec tangular domain, is assumed to be</p>
      <p>two dimensional, static and incompressible. The</p>
      <p>top lid of the cavity flow</p>
      <p>is moving at a positive, constant velocity top u in the positive x−direction</p>
      <p>(2013) -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>while the other walls of the cavity keep still. The height and length of the rectangular domain are H. Fluid density is  .The d ynamic viscosity of the fluid is  [1] .</p>
      <p>The purpose of th is</p>
      <p>paper is to determine the dimensionless velocity U in x d irection in the place of H x  , the dimensionless velocity V</p>
      <p>in y direction in the place of H y  ,the mean value s of | U | and | V |, separately; and draw the ve locity distribution curve</p>
      <p>while the flow is on steady state</p>
      <p>in the cavity for Re=1000.</p>
      <p>2.</p>
      <p>Mathematical Model</p>
      <p>By considering H ,  , top u dimensionless metric, which were equal to 1,the Navier - Stokes e quations</p>
      <p>were simplif ied into</p>
      <p>the dimensionless equations [2] .</p>
      <p>The</p>
      <p>dimensionless</p>
      <p>pressure - Poisson equation</p>
      <p>can be solved by the TDMA [ 3] .</p>
      <p>） （ X V Y U Y V X U Y P X P                . (1)</p>
      <p>2.1 The finite diferrence method</p>
      <sec>
        <title>2.1.1 The description of the grids and</title>
        <p>conditions [4]</p>
        <p>The dimensionless governing equations were discretized with 80×80 uniform staggered mesh grids. ij P</p>
        <p>was in the central of the grid. The numbers of U, V deviating from ij P , were the same as the number of P .The dimensionless velocity U was staggered in half a grid with ij P in x direction and the dimensionless velocity V was staggered in half a grid with ij P in y direction.</p>
        <p>The grid generation is described in detail as follows.</p>
        <p>a)</p>
        <p>For pressure P: in x direction, the distance between interior points is X  and the boundary point is X  from the interior point, including 83 points from 0 (t he left boundary point) to 82 (the right boundary point); in y direction, the distance between interior points is Y  and the boundary point is Y  from the interior point, including 83 points from0 (the bottom boundar y point) to 82 (the top boundary point).</p>
        <p>b) For velocity U:In x direction, the distance between points is X  , including 82 points from 0 (the left boundary point) to 81 (the right boundary point);in y direction, the distance between int erior points is Y  and the boundary point is Y  from the interior point, including 83 points from0 (the bottom boundary point) to 82 (the top boundary point).</p>
        <p>c) For velocity V: in x direction, the distance between in terior points is X  and the boundary point is X  from the interior point, including 83 points from0 (the left boundary point) to 82 (the right boundary point); in y direction, the distance between points is Y  , including 82 points from 0 (the bottom boundary point) to 81 (the top boundary point);</p>
        <p>2.1.2 The process of the discretization based on MAC</p>
        <p>The</p>
        <p>central difference format was used to separately discretize</p>
        <p>t he</p>
        <p>convective term and the diffusi on term of the Navier - Stokes equations. The velocities term were discretized in explicit format and the p ressure gradient term adopted the implicit format. The time step</p>
        <p>(2013) -</p>
        <p>© The American Computational Science Society. All rights reserved.</p>
        <p>is   , the steps of x, y are separately</p>
        <p>considered as X  , Y  .The velocity in x direction was discretized as follow s.</p>
        <p>The discretization of interior point s:</p>
        <p>        n j i n j i U U U , ,</p>
        <p>,</p>
        <p>X U U U X U U n j i n j i n j i       , , , ,</p>
        <p>Y U U V V V V Y U V n j i n j i n j i n j i n j i n j i               ) ( , , , , , ,</p>
        <p>X P P X P n j i n j i           , , ,</p>
        <p>, , , X U U U X U n j i n j i n j i         ,</p>
        <p>, , , Y U U U Y U n j i n j i n j i         .</p>
        <p>The interior point s next to the boundary</p>
        <p>were s pecially handled, setting the points next to the top boundary as example [5] . Taylor expansion of , i  j U and , i  j U were conducted at j U , i .</p>
        <p>) ( , , , , Y Y U U U Y U n j i n j i n j i j i           </p>
        <p>,</p>
        <p>(2)</p>
        <p>) ( , , , , Y Y U U U Y U n j i n j i n j i j i           </p>
        <p>,</p>
        <p>(3)</p>
        <p>U can be conve rted using ( ) and(3) to</p>
        <p>the following form :</p>
        <p>X P P U U n j i n j i n j i n j i           , , , ,  . (4 )</p>
        <p>,  n j i V can be obtained with the same theory .</p>
        <p>Y P P V V n j i n j i n j i n j i           , , , ,  .</p>
        <p>(5)</p>
        <p>2.2 The finite</p>
        <p>volume method</p>
        <p>The dimensionless governing equations were discretized with 80×80 uniform st aggered mesh grids using the same theory as the finite difference method.</p>
        <p>We used the control volume integration method based on MAC to solve this problem. The central difference format was used to separately discretize the convective term and the diffusi on term. The velocities term were discretized in explicit format and the pressure gradient term adopted the implicit format. The time step is   , the steps of x, y are separately considered as X  , Y  .</p>
        <p>For interior points:</p>
        <p>                 ) ( ] [ , , n j i n j i n p n p n s e w t t t U U U U d d d U   2 2 , 1, , 1, ( ) ( ) ( ) [ ] 4 4 n n n n t t n e i j i j i j i j t s w U U U U UU d d d                  , 1, , , 1 , 1 1, 1 , , 1 ( )( ) ( )( ) ( ) [ ] 4 4 n n n n n n n n t t e n i j i j i j i j i j i j i j i j t w s V V U U V V U U VU d d d                                                  ] ) ( ) ( [ e ) ( e , , , , w n j i n j i e n j i n j i t t t n s e w U U U U R d d d U R                           ] ) ( ) ( ) ( ) ( [ e ) ( e , , , , s n j i n j i n n j i n j i t t t e w n s U U U U R d d d U R ,</p>
        <p>The pressure term</p>
        <p>                    ) ( , , n j i n j i t t t n s e w d d d P .</p>
        <p>The diffusion term of the top and bottom boundary points</p>
        <p>, 8 1 1 1 1 ( ) e e e ( ) ( ) 2 2 n p i p n n n U U U U U R R R            ) ( Re ) ( Re ) ( Re , Y U U Y U U dY dU i p s p s       .</p>
        <p>Then the interior points’ velocity U can be converted into the following format</p>
        <p>,  n j i U            , , , n j i n j i n j i U  . (6)</p>
        <p>(2013) -</p>
        <p>© The American Computational Science Society. All rights reserved.</p>
        <p>The velocity V can be derived in the same theory</p>
        <p>1 1 , , 1 , , ( ) n n i j i j n n i j i j V V Y              </p>
        <p>.</p>
        <p>(7)</p>
        <p>3.</p>
        <p>Solution</p>
        <p>The discretization control equation and its diffusion coefficient expression were shown as follows [6] .</p>
        <p>1 1 1 1 1 . 1. 1. . 1 . 1 n n n n n P i j E i j W i j N i j S i j a P a P a P a P a P b               , (8)</p>
        <p>Where</p>
        <p>E W a a X      ,</p>
        <p>N S a a Y      ,</p>
        <p>1 , , , 1 , n n n n i j i j i j i j U U V V b X X Y Y           .</p>
        <p>The interior point s next to the top boundary:</p>
        <p>Y V Y V a n j i n j i N       , , , .</p>
        <p>The interior point s next to the bottom</p>
        <p>boundary:</p>
        <p>Y V Y V a n j i n j i S         , , , .</p>
        <p>The interior point s next to the left boundary:</p>
        <p>X U X U a n j i n j i E         , , , .</p>
        <p>The interior point s next to the right boundary:</p>
        <p>X U X U a n j i n j i W       , , , .</p>
        <p>4.</p>
      </sec>
    </sec>
    <sec>
      <title>Conclusion</title>
      <p>According to the results presented in Table 1and figure.1 to figure.3, it’s shown that MAC has high calculation precision to solve the problem of driven cavity flow. To accelerate computation speed, 20×20 grid systems can be adopted since results change little in the grid systems of 20×20,40×40 and 80×80.The time of calculation can be shortened by choosing a large time step with little effect on the precision.</p>
      <p>However, divergence occurred when time s tep is larger than t=0.02s.</p>
      <p>T able 1</p>
      <p>iterative times of CACULATION</p>
      <p>( R E =1 000,</p>
      <p>P RECISION = - )</p>
      <p>Grid numbers</p>
      <p>0×</p>
      <p>20×20</p>
      <p>40×40</p>
      <p>0×</p>
      <p>Grid numbers</p>
      <p>0×</p>
      <p>0×</p>
      <p>0×</p>
      <p>0×</p>
      <p>t</p>
      <p>0.001</p>
      <p>0.001</p>
      <p>0.001</p>
      <p>0.001</p>
      <p>t</p>
      <p>0.000</p>
      <p>0.001</p>
      <p>0.002</p>
      <p>0.005</p>
      <p>I terative times (P)</p>
      <p>178085</p>
      <p>284516</p>
      <p>471512</p>
      <p>70879</p>
      <p>I terative times (P)</p>
      <p>76745</p>
      <p>708796</p>
      <p>640421</p>
      <p>537223</p>
      <p>I terative times</p>
      <p>(UV)</p>
      <p>51142</p>
      <p>47085</p>
      <p>38042</p>
      <p>36499</p>
      <p>I terative times</p>
      <p>(UV)</p>
      <p>65017</p>
      <p>36499</p>
      <p>20926</p>
      <p>10430</p>
      <p>(2013) -</p>
      <p>© The American Computational Science Society. All rights reserved.</p>
      <p>F ig .</p>
      <p>T he velocity distribution of the steady flow</p>
      <p>while N = ; Re = 400; t=0.0005 , 0.001, 0.002 , 0 .005, 0.01 (The upper pictures are results of the f inite volume method and the lower pictures are obtained by the finite difference method)</p>
      <p>F ig . T he velocity distribution of the steady flow determined by t he finite volume method while N = ; Re =1 ,400 ,1000</p>
      <p>F ig .</p>
    </sec>
    <sec>
      <title>3 T</title>
      <p>he velocity distribution while the flow is on steady state by t he finite volume method while N =20,40, ; Re =1</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] Y.H. Robert, R.H. Wang, Computer &amp; Fluids, 2 (2003) 337-352.</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] W.Q. Tao, Xi’an University of Communications Press, 301:327(in Chinese).</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] S. Abdallah, Journal of computational physics, 31（1987）182-192.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] M. Hortmann, M. Perić, G.J. Scheuerer, International Journal for Numerical Methods in Fluids, 6（1990）189-207.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] I. Demirdžić, M. Perić, International Journal for Numerical Methods in Fluids, 9（1990）771-790.</mixed-citation>
      </ref>
      <ref id="ref-006">
        <mixed-citation>[6] A. Brandt, Springer Berlin/Heidelberg, 12 （1973）82-89.</mixed-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="fig-001" position="float">
      <graphic xlink:href="figures/fig-001.jpg"/>
    </fig>
    <fig id="fig-002" position="float">
      <graphic xlink:href="figures/fig-002.jpg"/>
    </fig>
    <fig id="fig-003" position="float">
      <graphic xlink:href="figures/fig-003.jpg"/>
    </fig>
    <fig id="fig-004" position="float">
      <graphic xlink:href="figures/fig-004.jpg"/>
    </fig>
    <fig id="fig-005" position="float">
      <graphic xlink:href="figures/fig-005.jpg"/>
    </fig>
  </floats-group>
</article>
