CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Where to stop with mesh (https://www.cfd-online.com/Forums/fluent/28892-where-stop-mesh.html)

Slobodan Pazin September 5, 2001 15:29

Where to stop with mesh
 
Hi Where to stop with number of cells when meshing in Gambit, because when the number of cells are biger and biger the results in Fluent are diferent and diferent. Whit adapt it is the same.

Thanks in advance

Scott Whitney September 5, 2001 16:01

Re: Where to stop with mesh
 
This depends on a few things.

1) How much of a change are you talking about. Suppose you are most interested in a result (such as temperature at a point). Is this result changing by 1%, 10%, or 100%? 2) What is your required error margin in this result? 3) If you aren't using a turbulent model you must keep increasing the cell count until your result differences are less than your required error margin. I typically try one grid, find the result. Then I make a grid with about double the cells and find the new result. Repeat until the difference is less than your required error margin. 4) If you are using a turbulence model, you must make sure you don't violate the near-wall conditions. That is you may accidently make the cells too small or too large at the walls. But as long as you don't violate this, follow step (3).

John C. Chien September 6, 2001 00:28

Re: Where to stop with mesh
 
(1). It is sad to hear that, the solution keeps changing with refined mesh. (2). Well, there is something you must do to regain your confidence in CFD. First of all, select a few test cases, such as flow over a flat plate (laminar), flow in a lid driven cavity (laminar, say Re=400. it's a good number.), flow in the entrance of a 2-D channel (laminar). (3). If you can not get the mesh independent solution for these cases, then you should stop using the code. (or you could try to get the vendor's support engineer to solve it for you) (4). You should try to solve these problems before any attempt to solve turbulent flows. (5). I have used my own codes to solve these problems, now it is your turn to do it using the commercial code. (I didn't have the time to do it when I was using the code.)

Kang September 6, 2001 14:33

Re: Where to stop with mesh
 
It is not sad in the sense that this is probably because that's the way the commercial codes were designed, to have maximum stability/convergence with the sacrifice of accuracy, because the code has to be coping with so many different problems -- the so-called general purpose CFD codes...

The advantage of using commerical codes is to get results quickly, but on the side, there should be some other (analytical, experimental) data to make the results more convincing...


John C. Chien September 6, 2001 16:46

Re: Where to stop with mesh
 
(1). What you are saying is that they are not "non-profit organization". For that, I can understand.

Rikard Gebart November 4, 2001 11:17

Re: Where to stop with mesh
 
To better understand the effect of truncation errors I suggest that you read the section about grid convergence in the Ferziger & Peric CFD textbook ("Computational methods for fluid dynamics", Springer Verlag, 2001) or the book by Roache ("Verification and Validation in Computational Science and Engineering", Hermosa Publishers, 1998). This problem has been the subject of lots of research the last decade, you can find many of the references in the book by Roache.

It is natural that your result changes as you refine the grid. In practice the error compared to an infinitely fine grid will often be around 5-10% both for local and global values (functionals) even with relatively fine grids. The simplest way to estimate the error is to apply Richardson extrapolation to the results from a sequence of two or three grids. You can find details about how to do this in Ferziger & Peric.

When you do the extrapolation you will probably be disappointed to find that the requirements on the grids are quite strict. Often 1000000+ grid cells will be necessary to obtain a relative error less than 1%.

Hope this helps, Rikard


All times are GMT -4. The time now is 06:25.