CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Deciding the mesh element size in CFD (http://www.cfd-online.com/Forums/main/105575-deciding-mesh-element-size-cfd.html)

 saisanthoshm88 August 2, 2012 18:24

Deciding the mesh element size in CFD

Could some one please let me know how to choose / decide on the element size for meshing in a CFD analysis.

 cfdnewbie August 3, 2012 03:10

Depends on your method (FV, FD, FE...), your flow situation, boundary conditions, time step considerations, RAM size, CPU time available, governing equations.... impossible to give a general answer here...

 leflix August 3, 2012 05:44

There is at least one global rule.
If you perform 3D DNS, then the whole number of grid points should be N=Re(power 9/4)
where Re is the Reynolds number.
So if for instance you have Re=1000 then it would require 178 grid points in each direction NX=178, NY=178, NZ=178.
If you are below this grid resolution it does not mean thecomputation will faill.It is just the requirement to capture the smallest eddies at the Kolmogorov scale.

So the grid size is first a question of the level of accuracy you expect.
Apart of this accuracy requirement,you have some requirements due to the stability of your temporal scheme.
It links the grid size and the time step.
for explicit schemes the CFL condition is the rule. roughly speaking it indicates that between a time step period, the information which travels at velocity U, must not cover a distance greater that a grid size.

so start to decide what should be the grid size following your accuracy requirement.Then you apply the CFL condition and it will give you the time step.

Implicit time schemes are theoretically unconditionnaly stable. which means that whatever the grid size, any time step will work. In practice it is not completely true. And even if the constraint is less than for explicit schemes you can choose greater time step than those for explicit schemes.

For the same accuracy, high order spatial schemes will require less grid points than low order schemes.
It means that with a low order scheme (upwind scheme) you can obtain the same accuracy with a high order scheme,but it would cost much more towards grid points and thus computational time.

To verifiy that you have used the correct grid size, and to validate your results you should perform griz size independancy tests. You compute your solution with a given grid size. Then you refine the grid and compute again. You do this several time with finer and finer grids. Then your monitored solution at one given location and at the same time step of course, should tend assymptotically to one value.
The grid size for which the monitored solution does not evolve anymore, will be the right size.

 cfdnewbie August 3, 2012 09:14

Quote:
 Originally Posted by leflix (Post 375204) There is at least one global rule. If you perform 3D DNS, then the whole number of grid points should be N=Re(power 9/4) where Re is the Reynolds number. So if for instance you have Re=1000 then it would require 178 grid points in each direction NX=178, NY=178, NZ=178. If you are below this grid resolution it does not mean thecomputation will faill.It is just the requirement to capture the smallest eddies at the Kolmogorov scale.
Am I mistaken, or is the Kolmogorov scale estimate just a measure of proportionality? I.e the relationship I remember goes like nu = K * Re(power 9/4), where K is the unknown proportionality constant..... that would mean that you cannot fix your minimum N the way you described, the only thing you could do is to do a full DNS of a flow at a given Reynolds number, ensure you do indeed have a DNS and then use this relationship to compute N for a different Re....

Are you sure that's an exact equation, not a proportionality relation?

 flotus1 August 3, 2012 09:27

You are right, it is actually just a proportionality relation.

 leflix August 3, 2012 10:48

Quote:
 Originally Posted by cfdnewbie (Post 375248) Are you sure that's an exact equation, not a proportionality relation?
yes indeed you are right cfdnewbie and Flotus1, N has to be proportional to Re(power 9/4).

 All times are GMT -4. The time now is 01:10.