Files
scixx_data/gmsh/cube_tetra3d4.geo
2025-11-27 09:40:55 +08:00

103 lines
1.6 KiB
GLSL

//+
Point(1) = {0, 0, 0, 0.05};
//+
Point(2) = {1, 0, 0, 0.05};
//+
Point(3) = {1, 1, 0, 0.05};
//+
Point(4) = {0, 1, 0, 0.05};
//+
Point(5) = {0, 0, 1, 0.05};
//+
Point(6) = {1, 0, 1, 0.03};
//+
Point(7) = {1, 1, 1, 0.01};
//+
Point(8) = {0, 1, 1, 0.03};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 3};
//+
Line(3) = {3, 4};
//+
Line(4) = {4, 1};
//+
Line(5) = {1, 5};
//+
Line(6) = {2, 6};
//+
Line(7) = {3, 7};
//+
Line(8) = {4, 8};
//+
Point(9) = {0.5, 0.5, 1, 0.02};
//+
Point(10) = {1.0, 0.5, 1, 0.02};
//+
Point(11) = {0.5, 1.0, 1, 0.02};
//+
Line(9) = {5, 6};
//+
Line(10) = {6, 10};
//+
Line(11) = {10, 7};
//+
Line(12) = {7, 11};
//+
Line(13) = {11, 8};
//+
Line(14) = {8, 5};
//+
Line(15) = {9, 10};
//+
Line(16) = {9, 11};
//+
Curve Loop(1) = {3, 4, 1, 2};
//+
Surface(1) = {1};
//+
Curve Loop(2) = {4, 5, -14, -8};
//+
Plane Surface(2) = {2};
//+
Curve Loop(3) = {8, -13, -12, -7, 3};
//+
Plane Surface(3) = {3};
//+
Curve Loop(4) = {9, -6, -1, 5};
//+
Plane Surface(4) = {4};
//+
Curve Loop(5) = {6, 10, 11, -7, -2};
//+
Plane Surface(5) = {5};
//+
Curve Loop(6) = {15, 11, 12, -16};
//+
Plane Surface(6) = {6};
//+
Curve Loop(7) = {13, 14, 9, 10, -15, 16};
//+
Plane Surface(7) = {7};
//+
Surface Loop(1) = {4, 7, 3, 2, 1, 5, 6};
//+
Volume(1) = {1};
//+
Physical Volume("cube", 17) = {1};
//+
Physical Surface("bottom", 18) = {1};
//+
Physical Surface("top_big", 19) = {7};
//+
Physical Surface("top_small", 20) = {6};
//+
Physical Curve("top_south", 21) = {9};
//+
Physical Curve("top_west", 22) = {14};
//+
Physical Curve("top_east", 23) = {10, 11};
//+
Physical Curve("top_north", 24) = {12, 13};