-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from yungyuc/multidim-rectangle-2dmesh
Add 2D unstructured mesh of triangle elements in a rectangle
- Loading branch information
Showing
5 changed files
with
458 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* A Gmsh template file for a rectangle domain. | ||
*/ | ||
lc = 0.25; | ||
// vertices. | ||
Point(1) = {0,0,0,lc}; | ||
Point(2) = {4,0,0,lc}; | ||
Point(3) = {4,1,0,lc}; | ||
Point(4) = {0,1,0,lc}; | ||
// lines. | ||
Line(1) = {1,2}; | ||
Line(2) = {2,3}; | ||
Line(3) = {3,4}; | ||
Line(4) = {4,1}; | ||
// surface. | ||
Line Loop(1) = {1,2,3,4}; | ||
Plane Surface(1) = {1}; | ||
// physics. | ||
Physical Line("lower") = {1}; | ||
Physical Line("right") = {2}; | ||
Physical Line("upper") = {3}; | ||
Physical Line("left") = {4}; | ||
Physical Surface("domain") = {1}; | ||
// mesh | ||
Mesh.MshFileVersion = 2.2; | ||
Mesh.ALgorithm = 6; // Frontal-Delaunay for 2D mesh. | ||
Mesh 2; |
Oops, something went wrong.