CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Gmsh. I want a mesh with Quadrangle (9 nodes instead of 8 nodes)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2014, 15:59
Default Gmsh. I want a mesh with Quadrangle (9 nodes instead of 8 nodes)
  #1
Member
 
Guiliguili
Join Date: Aug 2010
Location: Montréal
Posts: 97
Rep Power: 15
Touré is on a distinguished road
Hi,

I tried the Transfinite Surface "*" and Recombine Surface "*" to get Quadrangle9 but I still obtained 8 nodes instead of 9 nodes.
Please, how do I get only Quadrangle9 elements as illustrated below with gmesh command line?

3-----6-----2
7-----8-----5
0-----4-----1

Thanks.
Touré is offline   Reply With Quote

Old   July 5, 2016, 06:48
Default 8 node quads mesh
  #2
New Member
 
Tshering Lhamo
Join Date: Jul 2016
Posts: 3
Rep Power: 9
Tshering is on a distinguished road
Hello, I don't know if it's too late. However, I wanted to ask if it is possible to generate 8 node quads elements mesh with GMSH. I have a file from Lagamine with only 8 node elements. Thank you
Tshering is offline   Reply With Quote

Old   June 23, 2017, 12:17
Default
  #3
Member
 
Guiliguili
Join Date: Aug 2010
Location: Montréal
Posts: 97
Rep Power: 15
Touré is on a distinguished road
Hello,
If it's not too late you need a second order element (Check at http://gmsh.info/doc/texinfo/gmsh.ht...r-options-list)

Does Gmsh support curved elements? Yes, Gmsh can generate both 1st order and 2nd order elements. To generate second order elements, click on ‘High order’ in the mesh menu after the mesh is completed. To always generate 2nd order elements, select ‘Generate second order elements’ in the mesh option panel. From the command line, you can also use -order 2.


If you're using the command line, you will need first to combine triangles into rectangles by using Recombine function in the geometry file:
Recombine Surface { expression-list } | "*" < = expression >; Recombines the triangular meshes of the surfaces listed in expression-list into mixed triangular/quadrangular meshes. The optional expression on the right hand side specifies the maximum difference (in degrees) allowed between the largest angle of a quadrangle and a right angle (a value of 0 would only accept quadrangles with right angles; a value of 90 would allow degenerate quadrangles; default value is 45).

At last, from a command line:
gmsh t1.geo -3 -order 2 mesh.msh

where
t1.geo is you geometry file
-2 for a 2D
-order 2 for a second order element (-order int: set mesh order(1, ..., 5))
mesh.msh is the name of your output file
Touré is offline   Reply With Quote

Reply


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
[Other] Dynamic Mesh: Morph internal mesh nodes nucat OpenFOAM Meshing & Mesh Conversion 0 September 15, 2014 11:04
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[Gmsh] background mesh in gmsh Nick_J OpenFOAM Meshing & Mesh Conversion 1 March 20, 2013 04:20
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


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