|
[Sponsors] |
April 29, 2020, 14:10 |
GMSH: 2D axisymmetric structured mesh
|
#1 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 8 |
Hi,
I want to create a structured mesh for my 2D axisymmetric case with gmsh. The difference between the 2D and 2D axisymmetric lies where Code:
Extrude {0,0,Z} { Surface{14,12,16}; Layers{1}; Recombine; } Coherence; Code:
Rotate {{1, 0, 0}, {0, 0, 0}, -angle/2} { Surface{12,14,16}; } Extrude {{1, 0, 0}, {0, 0, 0}, angle} { Surface{12,14,16}; Layers{1}; Recombine; }Coherence; The .geo file specifying the features of the mesh is exactly the same expect the part that I mentioned above. I read earlier that by indicating the surfaces to be recombined as follows: Code:
Transfinite Surface {14,12,16}; Recombine Surface {14,12,16}; Does anyone have a clue to help me ? Thanks in advance, Mary |
|
May 2, 2020, 04:20 |
|
#2 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 8 |
No one can help me ?
|
|
September 6, 2020, 04:00 |
|
#3 |
New Member
dinesh Choudhary
Join Date: May 2020
Posts: 2
Rep Power: 0 |
I am having same issue mesh is getting unstructured does anyone have solution for this....?
|
|
November 5, 2020, 18:17 |
Structured annular 2D mesh in gmsh
|
#4 |
New Member
Mark Stock
Join Date: Nov 2011
Location: Boston area
Posts: 5
Rep Power: 14 |
I've been working on this today, and here is my solution: don't use Extrude, keep it all 2D. This generates a 2D structured annular mesh of quads.
Code:
xc = 0.0; yc = 0.0; r0 = 0.5; r1 = 1.0; ncirc = 1.65*r0/0.05; nrad = (r1-r0)/0.05; Point(1) = {xc, yc, 0}; Point(2) = {xc+r0, yc, 0}; Point(3) = {xc, yc+r0, 0}; Point(4) = {xc-r0, yc, 0}; Point(5) = {xc, yc-r0, 0}; Point(6) = {xc+r1, yc, 0}; Point(7) = {xc, yc+r1, 0}; Point(8) = {xc-r1, yc, 0}; Point(9) = {xc, yc-r1, 0}; Point(10)= {xc, yc, 0}; Circle(1) = {2,1,3}; Circle(2) = {3,1,4}; Circle(3) = {4,1,5}; Circle(4) = {5,1,2}; Circle(5) = {6,10,7}; Circle(6) = {7,10,8}; Circle(7) = {8,10,9}; Circle(8) = {9,10,6}; Transfinite Curve{1:8} = ncirc; Line(11) = {2, 6}; Line(12) = {3, 7}; Line(13) = {4, 8}; Line(14) = {5, 9}; Transfinite Curve{11:14} = nrad Using Progression 1.1; Curve Loop(11) = {11, 5, -12, -1}; Plane Surface(12) = {11}; Transfinite Surface{12}; Recombine Surface{12}; Curve Loop(13) = {12, 6, -13, -2}; Plane Surface(14) = {13}; Transfinite Surface{14}; Recombine Surface{14}; Curve Loop(15) = {13, 7, -14, -3}; Plane Surface(16) = {15}; Transfinite Surface{16}; Recombine Surface{16}; Curve Loop(17) = {14, 8, -11, -4}; Plane Surface(18) = {17}; Transfinite Surface{18}; Recombine Surface{18}; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh/splitMeshRegion : region1 in zone "-1" | GuiMagyar | OpenFOAM Meshing & Mesh Conversion | 3 | August 4, 2023 12:38 |
foam-extend-4.1 release | hjasak | OpenFOAM Announcements from Other Sources | 19 | July 16, 2021 05:02 |
[Gmsh] Gmsh: Structured Mesh problems | skrishnamoorthy | OpenFOAM Meshing & Mesh Conversion | 3 | August 9, 2017 22:48 |
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM | kawamatt2 | ANSYS Meshing & Geometry | 17 | December 20, 2011 11:45 |
Structured Mesh in GMSH | vitor | Main CFD Forum | 4 | April 28, 2010 08:15 |