mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
210 lines
3.9 KiB
C++
210 lines
3.9 KiB
C++
namespace netgen
|
|
{
|
|
const char * hexrules[] = {
|
|
"rule \"Hexa left-right-top\"\n",\
|
|
"\n",\
|
|
"quality 1\n",\
|
|
"\n",\
|
|
"flags t;\n",\
|
|
"\n",\
|
|
"mappoints\n",\
|
|
"(0, 0, 0);\n",\
|
|
"(1, 0, 0) { 1 } ;\n",\
|
|
"(1, 1, 0) { 1 } ;\n",\
|
|
"(0, 1, 0) { 1 } ;\n",\
|
|
"(0, 0, 1) { 1 } ;\n",\
|
|
"(1, 0, 1) { 1 } ;\n",\
|
|
"(1, 1, 1) { 1 } ;\n",\
|
|
"(0, 1, 1) { 1 } ;\n",\
|
|
"\n",\
|
|
"mapfaces\n",\
|
|
"(4, 3, 2, 1) del;\n",\
|
|
"(3, 7, 6, 2) del;\n",\
|
|
"(7, 8, 5, 6) del;\n",\
|
|
"(8, 4, 1, 5) del;\n",\
|
|
"\n",\
|
|
"newpoints\n",\
|
|
"\n",\
|
|
"newfaces\n",\
|
|
"(5, 6, 2, 1);\n",\
|
|
"(7, 8, 4, 3);\n",\
|
|
"\n",\
|
|
"elements\n",\
|
|
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
|
|
"\n",\
|
|
"freezone2\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.3 P1, 0.3 P2, 0.3 P5, 0.3 P6, -0.05 P3, -0.05 P4, -0.05 P7, -0.05 P8 };\n",\
|
|
"{ 0.3 P3, 0.3 P4, 0.3 P7, 0.3 P8, -0.05 P1, -0.05 P2, -0.05 P5, -0.05 P6 };\n",\
|
|
"\n",\
|
|
"freezonelimit\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.25 P1, 0.25 P2, 0.25 P5, 0.25 P6, -0.0 P3, -0.0 P4, -0.0 P7, -0.0 P8 };\n",\
|
|
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"endrule\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"rule \"Hexa left-right-top (10)\"\n",\
|
|
"\n",\
|
|
"quality 10\n",\
|
|
"\n",\
|
|
"flags t;\n",\
|
|
"\n",\
|
|
"mappoints\n",\
|
|
"(0, 0, 0);\n",\
|
|
"(1, 0, 0) { 1 } ;\n",\
|
|
"(1, 1, 0) { 1 } ;\n",\
|
|
"(0, 1, 0) { 1 } ;\n",\
|
|
"(0, 0, 1) { 1 } ;\n",\
|
|
"(1, 0, 1) { 1 } ;\n",\
|
|
"(1, 1, 1) { 1 } ;\n",\
|
|
"(0, 1, 1) { 1 } ;\n",\
|
|
"\n",\
|
|
"mapfaces\n",\
|
|
"(4, 3, 2, 1) del;\n",\
|
|
"(3, 7, 6, 2) del;\n",\
|
|
"(7, 8, 5, 6) del;\n",\
|
|
"(8, 4, 1, 5) del;\n",\
|
|
"\n",\
|
|
"newpoints\n",\
|
|
"\n",\
|
|
"newfaces\n",\
|
|
"(5, 6, 2, 1);\n",\
|
|
"(7, 8, 4, 3);\n",\
|
|
"\n",\
|
|
"elements\n",\
|
|
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
|
|
"\n",\
|
|
"freezone2\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.251 P1, 0.251 P2, 0.251 P5, 0.251 P6, -0.05 P3, -0.001 P4, -0.001 P7, -0.001 P8 };\n",\
|
|
"{ 0.251 P3, 0.251 P4, 0.251 P7, 0.251 P8, -0.05 P1, -0.001 P2, -0.001 P5, -0.001 P6 };\n",\
|
|
"\n",\
|
|
"freezonelimit\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.25 P1, 0.25 P2, 0.25 P5, 0.25 P6, -0.0 P3, -0.0 P4, -0.0 P7, -0.0 P8 };\n",\
|
|
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"endrule\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"rule \"Hexa left-right-top-front\"\n",\
|
|
"\n",\
|
|
"quality 1\n",\
|
|
"\n",\
|
|
"flags t;\n",\
|
|
"\n",\
|
|
"mappoints\n",\
|
|
"(0, 0, 0);\n",\
|
|
"(1, 0, 0) { 1 } ;\n",\
|
|
"(1, 1, 0) { 1 } ;\n",\
|
|
"(0, 1, 0) { 1 } ;\n",\
|
|
"(0, 0, 1) { 1 } ;\n",\
|
|
"(1, 0, 1) { 1 } ;\n",\
|
|
"(1, 1, 1) { 1 } ;\n",\
|
|
"(0, 1, 1) { 1 } ;\n",\
|
|
"\n",\
|
|
"mapfaces\n",\
|
|
"(4, 3, 2, 1) del;\n",\
|
|
"(3, 7, 6, 2) del;\n",\
|
|
"(7, 8, 5, 6) del;\n",\
|
|
"(8, 4, 1, 5) del;\n",\
|
|
"(1, 2, 6, 5) del;\n",\
|
|
"newpoints\n",\
|
|
"\n",\
|
|
"newfaces\n",\
|
|
"(7, 8, 4, 3);\n",\
|
|
"\n",\
|
|
"elements\n",\
|
|
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
|
|
"\n",\
|
|
"freezone2\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.3 P3, 0.3 P4, 0.3 P7, 0.3 P8, -0.05 P1, -0.05 P2, -0.05 P5, -0.05 P6 };\n",\
|
|
"\n",\
|
|
"freezonelimit\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P6 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"endrule\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"rule \"Hexa fill\"\n",\
|
|
"\n",\
|
|
"quality 1\n",\
|
|
"\n",\
|
|
"flags t;\n",\
|
|
"\n",\
|
|
"mappoints\n",\
|
|
"(0, 0, 0);\n",\
|
|
"(1, 0, 0) { 1 } ;\n",\
|
|
"(1, 1, 0) { 1 } ;\n",\
|
|
"(0, 1, 0) { 1 } ;\n",\
|
|
"(0, 0, 1) { 1 } ;\n",\
|
|
"(1, 0, 1) { 1 } ;\n",\
|
|
"(1, 1, 1) { 1 } ;\n",\
|
|
"(0, 1, 1) { 1 } ;\n",\
|
|
"\n",\
|
|
"mapfaces\n",\
|
|
"(4, 3, 2, 1) del;\n",\
|
|
"(3, 7, 6, 2) del;\n",\
|
|
"(7, 8, 5, 6) del;\n",\
|
|
"(8, 4, 1, 5) del;\n",\
|
|
"(1, 2, 6, 5) del;\n",\
|
|
"(3, 4, 8, 7) del;\n",\
|
|
"\n",\
|
|
"newpoints\n",\
|
|
"\n",\
|
|
"newfaces\n",\
|
|
"\n",\
|
|
"elements\n",\
|
|
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
|
|
"\n",\
|
|
"freezone2\n",\
|
|
"{ 1 P1 };\n",\
|
|
"{ 1 P2 };\n",\
|
|
"{ 1 P5 };\n",\
|
|
"{ 1 P3 };\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"endrule\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
"\n",\
|
|
0};
|
|
}
|