Skip to content
{{ message }}

# JuliaFEM / FEMQuad.jl

FEMQuad.jl package contains various of integration schemes for cartesian and tetrahedral domains. The most common integration rules are tabulated and focus is on speed. Each rule has own "label" so we can easily implement several rules with same degree. API is very simple making is easy to utilize package in different FEM projects.

Switch branches/tags
Could not load branches
Nothing to show

## Files

Failed to load latest commit information.
Type
Name
Commit time

# FEMQuad.jl

FEMQuad.jl contains various of integration schemes for cartesian and tetrahedron domains. The most common integration rules are tabulated and focus is on speed.

Usage is straightforward. For example, to integrate function `f(x) = 1 + x + x + x*x` in a standard rectangular domain `[-1,1]^2`, 4 point Gauss-Legendre integration rule is needed:

```using FEMQuad
f(x) = 1 + x + x + x*x
I = 0.0
for (w, gp) in get_quadrature_points(Val{:GLQUAD4})
I += w*f(gp)
end```

Result can be verified to be 4. `w` is integration weight, `gp` is integration point location and `GLQUAD4` is the integration rule used. In the same principle we have integration rules for tetrahedrons, hexahedrons and so on. For example, `GLTET15` is a 15-point tetrahedron rule.

## References

• Wikipedia contributors. "Gaussian quadrature." Wikipedia, The Free Encyclopedia. Wikipedia, The Free Encyclopedia, 24 Jul. 2017. Web. 29 Jul. 2017.

## About

FEMQuad.jl package contains various of integration schemes for cartesian and tetrahedral domains. The most common integration rules are tabulated and focus is on speed. Each rule has own "label" so we can easily implement several rules with same degree. API is very simple making is easy to utilize package in different FEM projects.

v0.3.2 Latest
Oct 14, 2019

## Packages 0

No packages published