CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Grading in gmsh (https://www.cfd-online.com/Forums/openfoam-meshing/183383-grading-gmsh.html)

decah February 2, 2017 23:14

Grading in gmsh
 
1 Attachment(s)
Hi all,

I am trying to grade cells approaching a line (the bottom of my domain) and am wondering if there is a way to do this similar to blockMesh's simpleGrading tool. See the image below for what I have (left) and what I would like to have (right).

I know you can specify the grid size on individual points in gmsh but can't find anything in the documentation about specifying it over a line.

Flowkersma February 3, 2017 02:54

This is only possible for structured mesh (transfinite line). You can give a geometric ratio either for one end (Using Progression) or for both ends (Using Bump).

See more in the documentation: Structured grids

Quote:

Originally Posted by decah (Post 635725)
Hi all,

I am trying to grade cells approaching a line (the bottom of my domain) and am wondering if there is a way to do this similar to blockMesh's simpleGrading tool. See the image below for what I have (left) and what I would like to have (right).

I know you can specify the grid size on individual points in gmsh but can't find anything in the documentation about specifying it over a line.


decah February 3, 2017 13:35

Thanks Mikko, I had missed that in the documentation.


All times are GMT -4. The time now is 11:56.