definition of maxLocalCells and maxGlobalCells?
Dear Foamers,
Happy New Year! I would like to generate a mesh around complex geometry. Could someone explain me something about the snappyhexmesh setting 1. what are the meaning of maxLocalCells and maxGlobalCells? the default values are: Quote:
2. what is the unit used here in snappyhexMesh, could I convert it to other, such as mm? Code:
refinementBox 4. For region refinement, such as Quote:
Many thanks in advance! Regards, Yage |
Hi,
Quote:
Just make sure that this variable has a reasonable value, i.e. you expect your final mesh to be arround 2.5 mio cells so you would set maxGlobalCells to 4-5 mio. If you have a low RAM amount on your Workstation you can avoid to run out of memory with it. The next questions: snappy works in SI units (so meter) and so should you. Basically you want to define your blockMesh in m and make sure that your stl is scaled in m. All refinement levels are based on the background mesh so if you have a mesh base size of 0.1 x 0.1 x 0.1 m, then a level 3 refinement would split your cells 3 times leading to 0.0125 m. Higher levels (so finer mesh) always overlaps the coarse mesh but both are based on the background mesh. Hope this helps! |
All times are GMT -4. The time now is 19:50. |