Skip to content

Commit

Permalink
unit Quad mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-afeef-badri committed Jan 23, 2024
1 parent 6ffd466 commit 44f34a8
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
30 changes: 30 additions & 0 deletions meshes/msh/unitQuad.geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//------------------------------------
// GMSH geo file to create a single
// Quadrangular mesh element
//
// NOTE: mesh will be msh41 format
//------------------------------------

lc = 2.0;

Point(1) = {0.0 , 0.0 , 0.0 , lc};
Point(2) = {1.0 , 0.0 , 0.0 , lc};
Point(3) = {0.0 , 1.0 , 0.0 , lc};
Point(4) = {1.0 , 1.0 , 0.0 , lc};


Line(1) = {1, 2};
Line(2) = {2, 4};
Line(3) = {4, 3};
Line(4) = {3, 1};

Curve Loop(1) = {4, 1, 2, 3};
Plane Surface(1) = {1};

Physical Curve("bot", 5) = {1};
Physical Curve("right", 6) = {2};
Physical Curve("top", 7) = {3};
Physical Curve("left", 8) = {4};
Physical Surface("surface", 9) = {1};
Physical Point("left", 10) = {1, 3};
Physical Point("right", 11) = {2, 4};
66 changes: 66 additions & 0 deletions meshes/msh/unitQuad.msh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
7
0 10 "left"
0 11 "right"
1 5 "bot"
1 6 "right"
1 7 "top"
1 8 "left"
2 9 "surface"
$EndPhysicalNames
$Entities
4 4 1 0
1 0 0 0 1 10
2 1 0 0 1 11
3 0 1 0 1 10
4 1 1 0 1 11
1 0 0 0 1 0 0 1 5 2 1 -2
2 1 0 0 1 1 0 1 6 2 2 -4
3 0 1 0 1 1 0 1 7 2 4 -3
4 0 0 0 0 1 0 1 8 2 3 -1
1 0 0 0 1 1 0 1 9 4 4 1 2 3
$EndEntities
$Nodes
9 4 1 4
0 1 0 1
1
0 0 0
0 2 0 1
2
1 0 0
0 3 0 1
3
0 1 0
0 4 0 1
4
1 1 0
1 1 0 0
1 2 0 0
1 3 0 0
1 4 0 0
2 1 0 0
$EndNodes
$Elements
9 9 1 9
0 1 15 1
1 1
0 2 15 1
2 2
0 3 15 1
3 3
0 4 15 1
4 4
1 1 1 1
5 1 2
1 2 1 1
6 2 4
1 3 1 1
7 4 3
1 4 1 1
8 3 1
2 1 3 1
9 1 2 4 3
$EndElements

0 comments on commit 44f34a8

Please sign in to comment.