Files
scixx_data/gmsh/cube_tetra3d4.geo

77 lines
1002 B
GLSL
Raw Normal View History

2025-11-25 13:29:00 +08:00
//+
Point(1) = {0, 0, 0, 0.1};
//+
Point(2) = {1, 0, 0, 0.1};
//+
Point(3) = {0, 1, 0, 0.1};
//+
Point(4) = {1, 1, 0, 0.1};
//+
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};
//+
Extrude {0, 0, 1} {
Surface{1};
}
//+
Delete {
Surface{26};
}
//+
Delete {
Surface{26};
}
//+
Delete {
Volume{1};
}
//+
Delete {
Surface{26};
}
//+
Point(15) = {0.5, 0.5, 1.0, 0.1};
//+
Line(21) = {15, 10};
//+
Line(22) = {15, 14};
//+
Line(23) = {15, 5};
//+
Line(24) = {15, 6};
//+
Curve Loop(2) = {7, -21, 24};
//+
Surface(26) = {2};
//+
Curve Loop(3) = {21, 8, -22};
//+
Surface(27) = {3};
//+
Curve Loop(4) = {22, 9, -23};
//+
Surface(28) = {4};
//+
Curve Loop(5) = {23, 6, -24};
//+
Surface(29) = {5};
//+
Surface Loop(1) = {26, 17, 1, 13, 29, 28, 27, 21, 25};
//+
Volume(1) = {1};
//+
Physical Surface("top", 30) = {27};
//+
Physical Surface("bottom", 31) = {1};
//+
Physical Volume("body", 32) = {1};