Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all Dunavant quadrature rules for the triangle #43

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

surzks
Copy link

@surzks surzks commented Aug 26, 2024

Currently, the first 7 rules of the triangle quadrature are Dunavant's rules. The higher order rules stem from somewhere else (TODO: Add reference when figured out)

In addition to the existing mixed rule, we added Dunavant until order 20.

The default is still the mixed rule. By wrapping the order in the type TriangleQuadDunavant, the user can select the Dunavant rule.

TODO: There are more and better rules out there for integrating on a triangle (some Dunavant rules have negative weights) See, for example, the QuadPy-Package.

Probably, we want a similar package for Julia in the future.

Currently, the first 7 rules of the triangle quadrature are Dunavant's
rules. The higher order rules stem from somewhere else (TODO: Add
reference when figured out)

In addition to the existing mixed rule, we added Dunavant until order
20.

The default is still the mixed rule. By wrapping the order in the type
TriangleQuadDunavant, the user can select the Dunavant rule.

TODO: There are more and better rules out there for integrating on
a triangle (some Dunavant rules have negative weights)
See, for example, the QuadPy-Package.

Probably, we want a similar package for Julia in the future.
@krcools
Copy link
Owner

krcools commented Aug 28, 2024

Thank you. Just changed the name of one struct and used TestItems.jl for the newly added test. Shall I merge?

@krcools
Copy link
Owner

krcools commented Aug 28, 2024

Using SVector instead of Array to store the weights and nodes seems to cause type instability...

@krcools krcools merged commit c12b35e into krcools:master Sep 9, 2024
3 of 4 checks passed
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.

2 participants