Skip to content

Commit 3c8e3e8

Browse files
authored
Merge pull request #20 from SeisSol/davschneller/even-better-quad
Add even more new tetrahedral quad rules
2 parents 3785197 + 7c3b6f0 commit 3c8e3e8

32 files changed

Lines changed: 3892 additions & 34 deletions

‎src/quad_rules/OrbitSearchTet.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class OrbitSearchTet(TabulatedTet):
5-
"""Fully symmetric rules found for SeisSol by a search over orbit structures (degree 10)."""
5+
"""Fully symmetric rules found for SeisSol by a search over orbit structures (degrees 9 and 10)."""
66

77
def __init__(self):
88
super().__init__("orbit-search")

‎src/quad_rules/SymmetricTet.py‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@
2121
"witherden-vincent/witherden-vincent-n24-d6.txt",
2222
"witherden-vincent/witherden-vincent-n35-d7.txt",
2323
"witherden-vincent/witherden-vincent-n46-d8.txt",
24+
"orbit-search/orbit-search-n59-d9.txt",
2425
"orbit-search/orbit-search-n79-d10.txt",
25-
"jaskowiec-sukumar-symmetric/jaskowiec-sukumar-n110-d11.txt",
26-
"reduced-symmetric/reduced-symmetric-n128-d12.txt",
26+
"worku-hicken-zingg/worku-hicken-zingg-n100-d11.txt",
27+
"worku-hicken-zingg/worku-hicken-zingg-n124-d12.txt",
2728
"witherden/witherden-n145-d13.txt",
28-
"reduced-symmetric/reduced-symmetric-n188-d14.txt",
29+
"worku-hicken-zingg/worku-hicken-zingg-n181-d14.txt",
2930
"witherden/witherden-n213-d15.txt",
3031
"witherden/witherden-n251-d16.txt",
3132
"witherden/witherden-n290-d17.txt",
3233
"witherden/witherden-n352-d18.txt",
33-
"jaskowiec-sukumar-symmetric/jaskowiec-sukumar-n487-d19.txt",
34-
"jaskowiec-sukumar-symmetric/jaskowiec-sukumar-n552-d20.txt",
34+
"worku-hicken-zingg/worku-hicken-zingg-n408-d19.txt",
35+
"worku-hicken-zingg/worku-hicken-zingg-n469-d20.txt",
36+
"worku-hicken-zingg/worku-hicken-zingg-n540-d21.txt",
3537
]
3638

3739
# Orbits under the permutations of the vertices, as patterns of barycentric coordinates.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from quad_rules.TabulatedTet import TabulatedTet
2+
3+
4+
class WorkuHickenZinggTet(TabulatedTet):
5+
"""Fully symmetric rules of Worku, Hicken and Zingg (2024), via SummationByParts.jl (degrees 1 to 21)."""
6+
7+
def __init__(self):
8+
super().__init__("worku-hicken-zingg")

‎src/quad_rules/tetrahedron/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ on the reference tetrahedron (-1, -1, -1), (1, -1, -1), (-1, 1, -1), (-1, -1, 1)
2323
| `xiao-gimbutas` | 1–15 | no | Xiao, Gimbutas (2010), via quadraturerules.org | CC BY 4.0 |
2424
| `jaskowiec-sukumar-symmetric` | 1–20 | yes | Jaśkowiec, Sukumar (2021), via modepy | CC BY 4.0 |
2525
| `reduced-symmetric` | 12, 14 | yes | computed for SeisSol from the Jaśkowiec–Sukumar rules | CC BY 4.0 (adapted) |
26-
| `orbit-search` | 10 | yes | computed for SeisSol by a search over orbit structures | BSD 3-Clause (this repository) |
26+
| `orbit-search` | 9, 10 | yes | computed for SeisSol by a search over orbit structures | BSD 3-Clause (this repository) |
27+
| `worku-hicken-zingg` | 1–21 | yes | Worku, Hicken, Zingg (2024), via SummationByParts.jl | MIT |
2728

2829
## Selection of symmetric rules
2930

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
# Symmetric rules for the tetrahedron found by a search over orbit structures
22

3-
Fully symmetric rules with positive weights and all barycentric coordinates above 1e-3,
4-
with fewer points than the other rules of this kind and degree in `quad_rules`:
3+
Fully symmetric rules with positive weights and all barycentric coordinates above 1e-3, with no more points
4+
than the other rules of this kind and degree in `quad_rules` and further inside than those with as many:
55

66
| Degree | Points | Orbits | Smallest barycentric coordinate | Other fully symmetric rules with positive weights |
77
| ------ | ------ | ------ | ------------------------------- | ------------------------------------------------- |
8-
| 10 | 79 | S1x1 S4x3 S6x1 S12x5 | 1.06e-2 | Witherden–Vincent: 81 points (smallest barycentric coordinate 6.1e-3) |
8+
| 9 | 59 | S1x1 S4x4 S6x1 S12x3 | 2.6e-3 | Witherden–Vincent, Jaśkowiec–Sukumar: 59 points each, with points on the boundary (smallest barycentric coordinate 6.2e-10, 3.4e-9); Worku–Hicken–Zingg: 61 points (3.8e-4) |
9+
| 10 | 79 | S1x1 S4x3 S6x1 S12x5 | 1.06e-2 | Witherden–Vincent: 81 points (smallest barycentric coordinate 6.1e-3); Worku–Hicken–Zingg: 79 points (3.6e-3) |
910

1011
They were computed for SeisSol with `tools/search_symmetric_tet_rule.py`: for a given number of orbits of
1112
each kind, it solves the moment equations from many random starts, keeping the weights positive and the
1213
points inside. The structure of degree 10 has one unknown more than there are equations, so its solutions
1314
form a one-parameter family; the rule here is the member whose smallest barycentric coordinate is largest.
14-
The result is refined to 40 digits; the moments of all monomials up to the degree are exact to a relative
15+
The structure of degree 9 has two unknowns more than its 18 equations, and the rule here is where the tool
16+
climbs to within that two-parameter family. The rules of Witherden–Vincent and of Jaśkowiec–Sukumar with
17+
59 points have the same orbits and solve the same equations, with an orbit at the vertices and one on the
18+
edges respectively. A search over the 15 structures with 51 to 58 points whose ranks can reach the 18
19+
equations of degree 9, 6000 random starts each, found no rule with all barycentric coordinates above 1e-3.
20+
The results are refined to 40 digits; the moments of all monomials up to the degree are exact to a relative
1521
error below 1e-40. Each file lists its orbits in the header.
1622

1723
A rule of degree 10 with 79 points has also been published by G. Chuluunbaatar, O. Chuluunbaatar,
1824
A. A. Gusev, S. I. Vinitsky, PI-type fully symmetric quadrature rules on the 3-, ..., 6-simplexes,
1925
Computers & Mathematics with Applications 124, 89–97, 2022, and one with the same orbits, another member of
2026
the family, by Z. A. Worku, J. E. Hicken, D. W. Zingg, Very high-order symmetric positive-interior
2127
quadrature rules on triangles and tetrahedra, arXiv:2409.02027, 2024, whose smallest barycentric
22-
coordinate is 3.6e-3.
28+
coordinate is 3.6e-3. For degree 9, Chuluunbaatar et al. list a rule with 59 points as well, and Worku,
29+
Hicken and Zingg one with 61 points, whose smallest barycentric coordinate is 3.8e-4.
2330

24-
To reproduce (about ten minutes):
31+
To reproduce (about ten and about four minutes):
2532

2633
```sh
2734
python tools/search_symmetric_tet_rule.py --degree 10 --structure S1:1,S4:3,S6:1,S12:5 \
2835
orbit-search-n79-d10.txt
36+
python tools/search_symmetric_tet_rule.py --degree 9 --structure S1:1,S4:4,S6:1,S12:3 \
37+
orbit-search-n59-d9.txt
2938
```
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Fully symmetric rule for the tetrahedron, degree 9, 59 points, positive weights, barycentric coordinates > 0.001
2+
# obtained with tools/search_symmetric_tet_rule.py for the structure S1x1 S4x4 S6x1 S12x3; see README.md
3+
# orbits: kind, weight per point, parameters (see the tool)
4+
# S1 0.05662733142443545102746205518804818412027
5+
# S4 0.00007454423799527633704886687867067495202642 0.002625613778042676231708100264951616481428
6+
# S4 0.008106019135730923955772450200970059380576 0.04521614340009734636908669370286893064353
7+
# S4 0.02249320969945585551673592390668656909209 0.1641950484809450451418422949931839368573
8+
# S4 0.0295619111678731991216573596289628248941 0.3223944183214503264857621289912030920496
9+
# S6 0.03780367857844319758328515457312635469221 0.1121567179465029193374064047448195561768
10+
# S12 0.0211788816466035693479671015678351621977 0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089
11+
# S12 0.01000968853242020936097506049354158949131 0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765
12+
# S12 0.008445418166033249936721889181292679515265 0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375
13+
# columns: l0 l1 l2 l3 weight (barycentric coordinates; the weights sum to 1)
14+
0.25 0.25 0.25 0.25 0.05662733142443545102746205518804818412027
15+
0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.9921231586658719713048756992051451505557 0.00007454423799527633704886687867067495202642
16+
0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.9921231586658719713048756992051451505557 0.002625613778042676231708100264951616481428 0.00007454423799527633704886687867067495202642
17+
0.002625613778042676231708100264951616481428 0.9921231586658719713048756992051451505557 0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.00007454423799527633704886687867067495202642
18+
0.9921231586658719713048756992051451505557 0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.002625613778042676231708100264951616481428 0.00007454423799527633704886687867067495202642
19+
0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.8643515697997079608927399188913932080694 0.008106019135730923955772450200970059380576
20+
0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.8643515697997079608927399188913932080694 0.04521614340009734636908669370286893064353 0.008106019135730923955772450200970059380576
21+
0.04521614340009734636908669370286893064353 0.8643515697997079608927399188913932080694 0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.008106019135730923955772450200970059380576
22+
0.8643515697997079608927399188913932080694 0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.04521614340009734636908669370286893064353 0.008106019135730923955772450200970059380576
23+
0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.5074148545571648645744731150204481894281 0.02249320969945585551673592390668656909209
24+
0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.5074148545571648645744731150204481894281 0.1641950484809450451418422949931839368573 0.02249320969945585551673592390668656909209
25+
0.1641950484809450451418422949931839368573 0.5074148545571648645744731150204481894281 0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.02249320969945585551673592390668656909209
26+
0.5074148545571648645744731150204481894281 0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.1641950484809450451418422949931839368573 0.02249320969945585551673592390668656909209
27+
0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.03281674503564902054271361302639072385123 0.0295619111678731991216573596289628248941
28+
0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.03281674503564902054271361302639072385123 0.3223944183214503264857621289912030920496 0.0295619111678731991216573596289628248941
29+
0.3223944183214503264857621289912030920496 0.03281674503564902054271361302639072385123 0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.0295619111678731991216573596289628248941
30+
0.03281674503564902054271361302639072385123 0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.3223944183214503264857621289912030920496 0.0295619111678731991216573596289628248941
31+
0.1121567179465029193374064047448195561768 0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.3878432820534970806625935952551804438232 0.03780367857844319758328515457312635469221
32+
0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.03780367857844319758328515457312635469221
33+
0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.03780367857844319758328515457312635469221
34+
0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.03780367857844319758328515457312635469221
35+
0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.03780367857844319758328515457312635469221
36+
0.3878432820534970806625935952551804438232 0.3878432820534970806625935952551804438232 0.1121567179465029193374064047448195561768 0.1121567179465029193374064047448195561768 0.03780367857844319758328515457312635469221
37+
0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.5996739878087371411151907579178479627145 0.0211788816466035693479671015678351621977
38+
0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.03558026731857590565520384458697371501089 0.0211788816466035693479671015678351621977
39+
0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.0211788816466035693479671015678351621977
40+
0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
41+
0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.0211788816466035693479671015678351621977
42+
0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
43+
0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.0211788816466035693479671015678351621977
44+
0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
45+
0.03558026731857590565520384458697371501089 0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
46+
0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.0211788816466035693479671015678351621977
47+
0.5996739878087371411151907579178479627145 0.1823728724363434766148026987475891611373 0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
48+
0.5996739878087371411151907579178479627145 0.03558026731857590565520384458697371501089 0.1823728724363434766148026987475891611373 0.1823728724363434766148026987475891611373 0.0211788816466035693479671015678351621977
49+
0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.7185939448641667643479499221441431727954 0.01000968853242020936097506049354158949131
50+
0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.2148657788576503992497755103898559713765 0.01000968853242020936097506049354158949131
51+
0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.01000968853242020936097506049354158949131
52+
0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
53+
0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.01000968853242020936097506049354158949131
54+
0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
55+
0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.01000968853242020936097506049354158949131
56+
0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
57+
0.2148657788576503992497755103898559713765 0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
58+
0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.01000968853242020936097506049354158949131
59+
0.7185939448641667643479499221441431727954 0.03327013813909141820113728373300042791405 0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
60+
0.7185939448641667643479499221441431727954 0.2148657788576503992497755103898559713765 0.03327013813909141820113728373300042791405 0.03327013813909141820113728373300042791405 0.01000968853242020936097506049354158949131
61+
0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.002625613777429573014287055931740357496302 0.008445418166033249936721889181292679515265
62+
0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.08013837729839311317773376844298808621375 0.008445418166033249936721889181292679515265
63+
0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.008445418166033249936721889181292679515265
64+
0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265
65+
0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.008445418166033249936721889181292679515265
66+
0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265
67+
0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.008445418166033249936721889181292679515265
68+
0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265
69+
0.08013837729839311317773376844298808621375 0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265
70+
0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.008445418166033249936721889181292679515265
71+
0.002625613777429573014287055931740357496302 0.458618004462088656903989587812635778145 0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265
72+
0.002625613777429573014287055931740357496302 0.08013837729839311317773376844298808621375 0.458618004462088656903989587812635778145 0.458618004462088656903989587812635778145 0.008445418166033249936721889181292679515265

0 commit comments

Comments
 (0)