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

Document custom quadrature rules #513

Open
fredrikekre opened this issue Oct 9, 2022 · 3 comments
Open

Document custom quadrature rules #513

fredrikekre opened this issue Oct 9, 2022 · 3 comments
Labels
docs good first issue Something to work on as a new contributor! help wanted

Comments

@fredrikekre
Copy link
Member

From #482 (comment) (cc @edljk)

it could perhaps be an easier way to extend quadrature rules in Ferrite.

It is actually pretty easy to do this already -- you can construct your own quadrature rule by:

julia> weights = [2.0, 2.0];

julia> points = [Vec{2}((-0.5, 0.0)), Vec{2}((0.5, 0.0))];

julia> qr = QuadratureRule{2,RefTetrahedron,Float64}(weights, points)
QuadratureRule{2, RefTetrahedron, Float64}([2.0, 2.0], Vec{2, Float64}[[-0.5, 0.0], [0.5, 0.0]])

It would be nice to i) document this and ii) add a constructor QuadratureRule{dim,shape}(weights, points) that doesn't require specifying the element type (Float64 in the example above).

@fredrikekre fredrikekre added help wanted docs good first issue Something to work on as a new contributor! labels Oct 9, 2022
@00krishna
Copy link

I can start to work on this.

@termi-official
Copy link
Member

termi-official commented Oct 9, 2022

I think https://github.com/JuliaApproximation/FastGaussQuadrature.jl is a solid addition for tensor product elements

@fredrikekre
Copy link
Member Author

Ferrite used to use that package directly in the past (#136) but it was removed since compile times where extremely bad back then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs good first issue Something to work on as a new contributor! help wanted
Projects
None yet
Development

No branches or pull requests

3 participants