CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Mesh Generation & Pre-Processing (https://www.cfd-online.com/Forums/mesh-generation/)
-   -   Gmsh, extrude a 2D mesh with grading (https://www.cfd-online.com/Forums/mesh-generation/224477-gmsh-extrude-2d-mesh-grading.html)

mb.pejvak February 21, 2020 04:50

Gmsh, extrude a 2D mesh with grading
 
I want to know if it is possible to extrude 2D mesh in Gmsh and have grading in the direction of extrusion. for example, in the command, it generate 12 layer in len of z direction with equal interval. I want to know that if it is possible to have grading in z direction

Code:

Extrude {0, 0, z_len} { Surface{1}; Layers{12}; Recombine;}

mb.pejvak February 22, 2020 09:02

For the users who may need the solution
HTML Code:

https://www.cfd-online.com/Forums/openfoam-meshing/179247-using-bump-extrude-layers-gmsh.html

mb.pejvak February 28, 2020 03:25

The method mentioned above can not generate 3D mesh, to solve the problem asked in the question, it should be done by manipulation Layer attribute in extrude command in this way
Code:

Extrude {0, 0, z_len} { Surface{1}; Layers{{6,3,2},{0.2,0.5,1}}; Recombine;}
which means that the 20% of the length of extrusion divided into 6 subdivisions, between 20% and 50% into 3 subdivision, and the rest into 2.


All times are GMT -4. The time now is 19:31.