Skip to content

Add all Dunavant quadrature rules for the triangle#43

Merged
krcools merged 3 commits intokrcools:masterfrom
surzks:feature/triangle_quadrature_dunavant
Sep 9, 2024
Merged

Add all Dunavant quadrature rules for the triangle#43
krcools merged 3 commits intokrcools:masterfrom
surzks:feature/triangle_quadrature_dunavant

Conversation

@surzks
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
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