Skip to content

Add even more new tetrahedral quad rules - #20

Merged
davschneller merged 3 commits into
mainfrom
davschneller/even-better-quad
Oct 14, 2026
Merged

davschneller merged 3 commits into
mainfrom
davschneller/even-better-quad

Conversation

@davschneller

Copy link
Copy Markdown
Contributor

More quad rules, especially for degree 3n. Needed e.g. for good integration for the damage variables (once mainlined).

Add the family worku-hicken-zingg with the rules of degrees 1 to 21 of
Z. A. Worku, J. E. Hicken, D. W. Zingg, Very high-order symmetric
positive-interior quadrature rules on triangles and tetrahedra
(arXiv:2409.02027, 2024): fully symmetric, with positive weights and all
points inside. The data come from SummationByParts.jl, which publishes
them under the MIT license (pi_quadrature_data/high_precision/tet/
expanded at 258976a); the files hold the values converted to
barycentric coordinates in decimal arithmetic and rounded to 40 digits.
The moments of all monomials up to the degree of each rule are exact to
a relative error below 2e-15.

quad_rules.SymmetricTet selects them where they have fewer points than
the rules it selected so far and keep all barycentric coordinates above
1e-3: degree 11 with 100 points instead of 110, 12 with 124 instead of
128, 14 with 181 instead of 188, 19 with 408 instead of 487, 20 with 469
instead of 552, and degree 21, which no other family here reaches, with
540. The plasticity points of mode sq thereby take 124 points at order 7
and 181 at order 8 instead of 128 and 188; at the other orders they stay
as they are. The rules of degrees 9 and 16 come closer to the boundary
than 1e-3 (3.8e-4, 5.8e-5); those of the other degrees have as many
points as the rules selected there, or more.

AI-generated. Model: Claude Opus 5.5
Add a fully symmetric rule of degree 9 with 59 points, positive weights
and all barycentric coordinates above 2.6e-3, and select it for degree 9
in quad_rules.SymmetricTet, which took the rule of degree 10 with 79
points there. The rules of Witherden-Vincent and Jaskowiec-Sukumar with
59 points have the same orbits, S1x1 S4x4 S6x1 S12x3, and solve the same
equations, but put an orbit on the vertices and one on the edges
respectively, which keeps them out of the selection.

That structure has two unknowns more than the 18 equations of degree 9.
tools/search_symmetric_tet_rule.py now handles such families as well:
within a family of more than one parameter it climbs by steps along the
tangent space of the family towards the member whose smallest
barycentric coordinate is largest; a family of one parameter it follows
by pseudo-arclength continuation as before. Of 6000 random starts
(three minutes on one core), one reached an admissible solution; the
climb took its smallest barycentric coordinate to 2.6e-3, and the
refinement made the moments of all monomials up to degree 9 exact to a
relative error of 1.6e-46. A search over the 15 structures with 51 to 58
points whose ranks can reach the 18 equations, 6000 random starts each,
found no rule with all points inside.

AI-generated. Model: Claude Opus 5.5
Add the plasticity mode "sq3": the points of the cheapest fully
symmetric rule with positive weights and interior points
(quad_rules.SymmetricTet) that is exact for the product of three basis
functions, degree 3 * (order - 1), and at least to the degree of "ip",
2 * order + 1, which is the higher of the two below order 4; vInv is the
L2 projection with that rule, as for "sq". A source that is evaluated at
the points and quadratic in the state there, such as the part of the
source of a damaged material that is quadratic in the strain, has degree
3 * (order - 1) against a basis function, so this projection is exact
for it. For the orders 2 to 8 the rules have 14, 35, 59, 124, 213, 352
and 540 points, against (order + 1)^3 = 27, 64, 125, 216, 343, 512 and
729 for "ip", which is exact for such a source only up to order 4.

The generator writes plasticity-sq3-matrices-{order}.json alongside the
other modes. A test checks the number of points, that they lie inside,
that the projection reproduces the basis, and that every monomial up to
the degree of the rule integrates exactly (relative error below 2e-15;
at degree 3 * (order - 1), "ip" errs by up to 6e-4 from order 5 on and
"sq" by up to 0.1).

AI-generated. Model: Claude Opus 5.5
@davschneller
davschneller force-pushed the davschneller/even-better-quad branch from 42ac86e to 7c3b6f0 Compare October 14, 2026 19:10
@davschneller
davschneller merged commit 3c8e3e8 into main Oct 14, 2026
1 check failed
@davschneller
davschneller deleted the davschneller/even-better-quad branch October 14, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant