CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

Gmsh, extrude a 2D mesh with grading

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2020, 05:50
Default Gmsh, extrude a 2D mesh with grading
  #1
Senior Member
 
Mehdi Babamehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
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;}

Last edited by mb.pejvak; February 21, 2020 at 08:24.
mb.pejvak is offline   Reply With Quote

Old   February 22, 2020, 10:02
Default
  #2
Senior Member
 
Mehdi Babamehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
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

Last edited by mb.pejvak; February 22, 2020 at 11:49.
mb.pejvak is offline   Reply With Quote

Old   February 28, 2020, 04:25
Default
  #3
Senior Member
 
Mehdi Babamehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
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.
mb.pejvak is offline   Reply With Quote

Reply

Tags
gmsh, grading


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[ICEM] extrude surface mesh for solid wall Daniel_Khazaei ANSYS Meshing & Geometry 13 May 29, 2014 10:25
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
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


All times are GMT -4. The time now is 18:15.