CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Graded Mesh From gmsh? (http://www.cfd-online.com/Forums/openfoam/80185-graded-mesh-gmsh.html)

lordvon September 17, 2010 12:09

Graded Mesh From gmsh?
 
Can gmsh do graded meshes? If so, how? If not, are there any OpenFOAM modifications I can do?

Solution: Just define a length characteristic for all points involved in the boundary of interest. The easiest way to do this is to go into the .geo file, define length characteristic variables, and append it to all the point definitions as the fourth parameter. i.e. A point at (0,0,0) with length characteristic of .2 would be 'Point(1)={0,0,0,0.2};'.

If you run into an error and have narrow gaps to mesh, you may just need to put a smaller length characteristic on the narrow gaps.

Edison_Ge September 18, 2010 11:56

Quote:

Originally Posted by lordvon (Post 275631)
Can gmsh do graded meshes? If so, how? If not, are there any OpenFOAM modifications I can do?

Solution: Just define a length characteristic for all points involved in the boundary of interest. The easiest way to do this is to go into the .geo file, define length characteristic variables, and append it to all the point definitions as the fourth parameter. i.e. A point at (0,0,0) with length characteristic of .2 would be 'Point(1)={0,0,0,0.2};'.

same question~~~~~~~~~~


All times are GMT -4. The time now is 21:53.