Ferrite-FEM / Ferrite-FEM/Ferrite.jl

Document custom quadrature rules

Offen
#513 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
docs good first issue help wanted
Vorherrschende Sprache
Julia
Sterne
453
Forks
115
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
11

Beschreibung

From https://github.com/Ferrite-FEM/Ferrite.jl/pull/482#issuecomment-1272555611 (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
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).

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.