|
[Sponsors] |
August 2, 2012, 19:24 |
Deciding the mesh element size in CFD
|
#1 |
Senior Member
---------
Join Date: Oct 2010
Posts: 303
Rep Power: 18 |
Could some one please let me know how to choose / decide on the element size for meshing in a CFD analysis.
__________________
Best regards, Santhosh. |
|
August 3, 2012, 04:10 |
|
#2 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
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...
|
|
August 3, 2012, 06:44 |
|
#3 |
Senior Member
Join Date: Aug 2011
Posts: 272
Rep Power: 16 |
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. |
|
August 3, 2012, 10:14 |
|
#4 | |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
Quote:
Are you sure that's an exact equation, not a proportionality relation? |
||
August 3, 2012, 10:27 |
|
#5 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
You are right, it is actually just a proportionality relation.
|
|
August 3, 2012, 11:48 |
|
#6 |
Senior Member
Join Date: Aug 2011
Posts: 272
Rep Power: 16 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |
Icemcfd 11: Loss of mesh from surface mesh option? | Joe | CFX | 2 | March 26, 2007 19:10 |