CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Mesh independence studies

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2019, 08:47
Default Mesh independence studies
  #1
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Hey


I am trying to understand the mesh convergence while using interFOAM. So what is have seen are two methods where tthe interface shape is compared after a certain time and the other option is to use Grid Convergence Index (GCI) like described in
http://www.grc.nasa.gov/WWW/wind/val.../spatconv.html


I am trying to figure out GCI method I got confused after looking at how it is used in literature. So I was hoping someone can help it me out
What I understood about GCI is that:

  1. Order of grid convergence p
p = \text{ln}\frac{f_3 - f_2}{f_2 - f_1}/Big{\text{ln}r}
kuria is offline   Reply With Quote

Old   November 25, 2019, 10:59
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes, continue....
LuckyTran is offline   Reply With Quote

Old   November 25, 2019, 11:18
Default Mesh independence studies
  #3
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Sorry.. I couldn't edit the post earlier due to some network problem.


So what I understood about GCI is that

  • First we calcualte the order of convergence as
[math] p = \frac{ln \frac{f_3 - f_2}{f_2 - f_1} }{ln r} [math]


where r is the ratio of the mesh size between the meshes used (greater than 1). This is dependent on the solution methods and is usually lower than 2 because of non-linearities in the governing equations.


  • Then we calculate relative error as
[math] \epsilon = \frac{f_2 - f_1}{f_1} [math]
  • Then we calculate GCI as
[math] GCI = F\frac{\epsilon}{r^p - 1} [math]
This GCI is for 'fine' mesh. And F is factor of safety.

  • Then to show that mesh has actually converged, the GCIs should satisfy :
[math] GCI_{23} = r^p GCI_{12}


Please let me know if I misunderstood something so far


Now my questions are:
  • When I was going through literature, most of the papers usually stop after calcualting GCIs for different meshes and say that the errors are small so it is converged. As GCI is proportional to relative error (whose magnitude of the variable considered for the mesh convergency study). Like relative error in pressure drop would be very small as the denominator is in the order of 1atm.
  • Then in the work by Roache, GCI is also calcualted for a coarse grids too differently from the previous expression. Typically if we use 3 grids: coarse, medium and fine. When is the GCI expression for coarse grids be used ?
Thank you for your time!
kuria is offline   Reply With Quote

Old   November 25, 2019, 13:03
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes, GCI is a relative error, you can interpret it like an error bar.

Say you have 3 grids, coarse, medium, fine. In Roache's proposed method, your working grid is the coarse grid. The purpose of running a medium and fine grid is purely for calculating the GCI and you never see these grids again. Now this sounds silly to a lot of people. Because why would I not utilize the superior results of the finest available grid? Why take results from the coarsest and not finest grid? More technically, it has to do with the way the Richardson extrapolation. You don't need to extrapolate per se when you are using a coarse grid (because you have a medium grid). But if you are using a fine grid, then you have to extrapolate because you don't have a finer grid.

Hence, you will find two different methods for GCI calculation. One with the coarse grid as a reference and another with the fine grid as a reference. You can pick the approach that you prefer, just use the right formulas.
LuckyTran is offline   Reply With Quote

Old   November 25, 2019, 15:37
Default
  #5
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Yes, GCI is a relative error, you can interpret it like an error bar.

Say you have 3 grids, coarse, medium, fine. In Roache's proposed method, your working grid is the coarse grid. The purpose of running a medium and fine grid is purely for calculating the GCI and you never see these grids again. Now this sounds silly to a lot of people. Because why would I not utilize the superior results of the finest available grid? Why take results from the coarsest and not finest grid? More technically, it has to do with the way the Richardson extrapolation. You don't need to extrapolate per se when you are using a coarse grid (because you have a medium grid). But if you are using a fine grid, then you have to extrapolate because you don't have a finer grid.

Hence, you will find two different methods for GCI calculation. One with the coarse grid as a reference and another with the fine grid as a reference. You can pick the approach that you prefer, just use the right formulas.



Thank you for the quick reply!
Can you recommend a place I can learn more about for calculating GCI and mesh sensitivity tests in literature apart from Roache's work?


Thanks again in advance
kuria is offline   Reply With Quote

Old   November 26, 2019, 00:58
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Well, Patrick Roache is the one that came up with the GCI method. I can't think of a better place to learn specifically about this technique. Roache also write several (pretty thick) books on this topic.
LuckyTran is offline   Reply With Quote

Old   November 26, 2019, 03:15
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,776
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
A brief description is also in the Peric & Ferziger textbook
FMDenaro is offline   Reply With Quote

Old   November 26, 2019, 07:46
Default
  #8
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Thank you for the suggestions!
kuria is offline   Reply With Quote

Old   November 28, 2019, 17:04
Default
  #9
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Hey again


As you suggested I was going through the work by Roache and I came across : Procedure for Estimation and Reporting of Uncertainty Due to Discretization in CFD Applications, Journal of Fluids engineering (ASME). They have described each steps.



I have few additional questions:

  • In this paper, the authors recommend calcualting p using a iterative method. But quite a lot of studies in literature calculate p as ln(eps31/eps21)/ln(r21) like done in https://www.grc.nasa.gov/WWW/wind/va.../spatconv.html, why is the iterative approach not used by everyone?
  • Also one stupid question what is this sgn function used in GCI? I looked around and I understood it as the sign function (https://en.wikipedia.org/wiki/Sign_function). Then it is the same as writing s = eps32/eps21. Did i misunderstand this?
  • And one last thing, what value of GCI_fine calculated is 'mesh converged' as GCI_fine provides error graph on the finest gird used in the simulation ?
Sorry to post so many questions and thank you for taking the time to answer them in advance
kuria is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
Transient mode simulation (VoF model) mesh independence study problem yulu FLUENT 4 September 20, 2016 17:30
Seeking guidance in how to do: Mesh Independence Studies Jeeloong Main CFD Forum 1 March 6, 2015 14:21
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 11:02.