Interpolations

Ferrite.Interpolation — Type
Interpolation{refshape, order}()

Abstract type for interpolations defined on refshape (see AbstractRefShape). order corresponds to the order of the interpolation. The interpolation is used to define shape functions to interpolate a function between nodes.

The following interpolations are implemented:

See the docstring of each interpolation for the supported reference shapes and orders. Scalar interpolations can be vectorized, i.e. used for each component of a vector field, see VectorizedInterpolation.

More interpolations

FerriteInterpolations.jl implements many more interpolations that are compatible with Ferrite.

Examples

julia> ip = Lagrange{RefTriangle, 2}()Lagrange{RefTriangle, 2}()julia> getnbasefunctions(ip)6
source

Scalar interpolations

Vector interpolations

Ferrite.VectorizedInterpolation — Type
VectorizedInterpolation{vdim}(ip::ScalarInterpolation)
VectorizedInterpolation(ip::ScalarInterpolation)
ip^vdim

Vector valued interpolation with vdim components where each component is interpolated using the scalar interpolation ip. If vdim is not given it defaults to the reference dimension of ip. A VectorizedInterpolation is typically constructed using the ^ syntax, e.g. Lagrange{RefTriangle, 2}()^2.

Examples

julia> ip = Lagrange{RefTriangle, 2}()^2Lagrange{RefTriangle, 2}()^2julia> getnbasefunctions(ip)12
source
Ferrite.RaviartThomas — Type
RaviartThomas{refshape, order} <: VectorInterpolation

Raviart-Thomas element (of the first kind) for $H(\mathrm{div})$-conforming discretizations, i.e. the normal component is continuous across cell boundaries.

The following combinations of reference shape and order are implemented: RefTriangle (order 1 and 2), RefQuadrilateral (order 1), RefTetrahedron (order 1), and RefHexahedron (order 1).

See also the Raviart–Thomas element on DefElement.

source
Ferrite.Nedelec — Type
Nedelec{refshape, order} <: VectorInterpolation

Nédélec element (of the first kind) for $H(\mathrm{curl})$-conforming discretizations, i.e. the tangential component is continuous across cell boundaries.

The following combinations of reference shape and order are implemented: RefTriangle (order 1 and 2), RefQuadrilateral (order 1), RefTetrahedron (order 1), and RefHexahedron (order 1).

See also the Nédélec (first kind) element on DefElement.

source