| 1 |
/* ------------------------------------------------------------------------ |
| 2 |
* |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
* Copyright (C) 2024 - 2025 by the deal.II authors |
| 5 |
* |
| 6 |
* This file is part of the deal.II library. |
| 7 |
* |
| 8 |
* Part of the source code is dual licensed under Apache-2.0 WITH |
| 9 |
* LLVM-exception OR LGPL-2.1-or-later. Detailed license information |
| 10 |
* governing the source code and code contributions can be found in |
| 11 |
* LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. |
| 12 |
* |
| 13 |
* ------------------------------------------------------------------------*/ |
| 14 |
|
| 15 |
r = 9; |
| 16 |
|
| 17 |
d1 = 0.1; |
| 18 |
a1 = 0.3; |
| 19 |
b1 = 0.6; |
| 20 |
a2 = 0.9; |
| 21 |
b2 = 1.2; |
| 22 |
d2 = 2.0; |
| 23 |
d3 = 3.0; |
| 24 |
|
| 25 |
a13 = a1/Sqrt(3); |
| 26 |
b13 = b1/Sqrt(3); |
| 27 |
|
| 28 |
a23 = a2/Sqrt(3); |
| 29 |
b23 = b2/Sqrt(3); |
| 30 |
|
| 31 |
d23 = d2/Sqrt(3); |
| 32 |
d33 = d3/Sqrt(3); |
| 33 |
|
| 34 |
Point(0) = { 0, 0, 0}; |
| 35 |
|
| 36 |
Point(1) = { d1, d1, d1}; |
| 37 |
Point(2) = { d1,-d1, d1}; |
| 38 |
|
| 39 |
Point(3) = { a13, a13, a13}; |
| 40 |
Point(4) = { a13,-a13, a13}; |
| 41 |
|
| 42 |
Point(5) = { b13, b13, b13}; |
| 43 |
Point(6) = { b13,-b13, b13}; |
| 44 |
|
| 45 |
Point(7) = { a23, a23, a23}; |
| 46 |
Point(8) = { a23,-a23, a23}; |
| 47 |
|
| 48 |
Point(9) = { b23, b23, b23}; |
| 49 |
Point(10) = { b23,-b23, b23}; |
| 50 |
|
| 51 |
Point(11) = { d23, d23, d23}; |
| 52 |
Point(12) = { d23,-d23, d23}; |
| 53 |
|
| 54 |
Point(13) = { d33, d33, d33}; |
| 55 |
Point(14) = { d33,-d33, d33}; |
| 56 |
|
| 57 |
Line(1) = {1, 3}; |
| 58 |
Line(2) = {3, 5}; |
| 59 |
Line(3) = {5, 7}; |
| 60 |
Line(4) = {7, 9}; |
| 61 |
Line(5) = {9, 11}; |
| 62 |
|
| 63 |
Line(7) = {2, 4}; |
| 64 |
Line(8) = {4, 6}; |
| 65 |
Line(9) = {6, 8}; |
| 66 |
Line(10) = {8, 10}; |
| 67 |
Line(11) = {10, 12}; |
| 68 |
|
| 69 |
Line(13) = {1, 2}; |
| 70 |
|
| 71 |
Circle(14) = {3, 0, 4}; |
| 72 |
Circle(15) = {5, 0, 6}; |
| 73 |
Circle(16) = {7, 0, 8}; |
| 74 |
Circle(17) = {9, 0, 10}; |
| 75 |
|
| 76 |
Circle(18) = {11, 0, 12}; |
| 77 |
|
| 78 |
Line(19) = {11,13}; |
| 79 |
Line(20) = {12,14}; |
| 80 |
|
| 81 |
Circle(21) = {13, 0, 14}; |
| 82 |
|
| 83 |
Line Loop(1) = {7, -14, -1, 13}; |
| 84 |
Plane Surface(1) = {1}; |
| 85 |
|
| 86 |
Line Loop(2) = {8, -15, -2, 14}; |
| 87 |
Plane Surface(2) = {2}; |
| 88 |
|
| 89 |
Line Loop(3) = {9, -16, -3, 15}; |
| 90 |
Plane Surface(3) = {3}; |
| 91 |
|
| 92 |
Line Loop(4) = {10, -17, -4, 16}; |
| 93 |
Plane Surface(4) = {4}; |
| 94 |
|
| 95 |
Line Loop(5) = {11, -18, -5, 17}; |
| 96 |
Plane Surface(5) = {5}; |
| 97 |
|
| 98 |
Line Loop(6) = {20, -21, -19, 18}; |
| 99 |
Plane Surface(6) = {6}; |
| 100 |
|
| 101 |
Q1[] = Symmetry {0, 1, 1, 0} {Duplicata {Surface{:};}}; |
| 102 |
Q2[] = Symmetry {0, -1, 1, 0} {Duplicata {Surface{:};}}; |
| 103 |
|
| 104 |
ll = newll; Line Loop(ll) = {13, -26, 85, -55}; |
| 105 |
Plane Surface(ll) = {ll}; |
| 106 |
|
| 107 |
ll = newll; Line Loop(ll) = {14, 24, -83, 53}; |
| 108 |
Surface(ll) = {ll}; |
| 109 |
|
| 110 |
ll = newll; Line Loop(ll) = {15, 29, -88, 58}; |
| 111 |
Surface(ll) = {ll}; |
| 112 |
|
| 113 |
ll = newll; Line Loop(ll) = {16, 34, -93, 63}; |
| 114 |
Surface(ll) = {ll}; |
| 115 |
|
| 116 |
ll = newll; Line Loop(ll) = {17, 39, -98, 68}; |
| 117 |
Surface(ll) = {ll}; |
| 118 |
|
| 119 |
ll = newll; Line Loop(ll) = {18, 44, -103, 73}; |
| 120 |
Surface(ll) = {ll}; |
| 121 |
|
| 122 |
ll = newll; Line Loop(ll) = {21, 49, -108, 78}; |
| 123 |
Surface(ll) = {ll}; |
| 124 |
|
| 125 |
Surface Loop(1) = {1, 22, 81, 51, 109, 110}; |
| 126 |
Volume(1) = {1}; |
| 127 |
|
| 128 |
Surface Loop(2) = {2, 27, 86, 56, 110, 111}; |
| 129 |
Volume(2) = {2}; |
| 130 |
|
| 131 |
Surface Loop(3) = {3, 32, 91, 61, 111, 112}; |
| 132 |
Volume(3) = {3}; |
| 133 |
|
| 134 |
Surface Loop(4) = {4, 37, 96, 66, 112, 113}; |
| 135 |
Volume(4) = {4}; |
| 136 |
|
| 137 |
Surface Loop(5) = {5, 42, 101, 71, 113, 114}; |
| 138 |
Volume(5) = {5}; |
| 139 |
|
| 140 |
Surface Loop(6) = {6, 47, 106, 76, 114, 115}; |
| 141 |
Volume(6) = {6}; |
| 142 |
|
| 143 |
V1[] = Symmetry {1, 1, 0, 0} {Duplicata {Volume{:};}}; |
| 144 |
V2[] = Symmetry {-1, 1, 0, 0} {Duplicata {Volume{:};}}; |
| 145 |
V3[] = Symmetry {1, 0, 1, 0} {Duplicata {Volume{1, 2, 3, 4, 5, 6};}}; |
| 146 |
V4[] = Symmetry {1, 0, -1, 0} {Duplicata {Volume{1, 2, 3, 4, 5, 6};}}; |
| 147 |
|
| 148 |
Surface Loop(7) = {109, 319, 505, 137, 687, 869}; |
| 149 |
Volume(7) = {7}; |
| 150 |
|
| 151 |
Physical Volume(1) = {Volume{:}}; |
| 152 |
|
| 153 |
Physical Surface(2) = {115, 479, 665, 297, 847, 1029}; |
| 154 |
|
| 155 |
Recombine Surface "*"; |
| 156 |
Recombine Volume "*"; |
| 157 |
|
| 158 |
Transfinite Volume "*"; |
| 159 |
Transfinite Surface "*"; |
| 160 |
Transfinite Line "*" = r; |