sfepy.discrete.fem.mappings module

Finite element reference mappings.

class sfepy.discrete.fem.mappings.FEMapping(coors, conn, poly_space=None, gel=None, order=1)[source]

Base class for finite element mappings.

get_base(coors, diff=False)[source]

Get base functions or their gradient evaluated in given coordinates.

get_geometry()[source]

Return reference element geometry as a GeometryElement instance.

get_physical_qps(qp_coors)[source]

Get physical quadrature points corresponding to given reference element quadrature points.

Returns:

qps : array

The physical quadrature points ordered element by element, i.e. with shape (n_el, n_qp, dim).

class sfepy.discrete.fem.mappings.SurfaceMapping(coors, conn, poly_space=None, gel=None, order=1)[source]

Mapping from reference domain to physical domain of the space dimension higher by one.

get_base(coors, diff=False)[source]

Get base functions or their gradient evaluated in given coordinates.

get_mapping(qp_coors, weights, poly_space=None, mode=’surface’)[source]

Get the mapping for given quadrature points, weights, and polynomial space.

Returns:

cmap : CMapping instance

The surface mapping.

set_basis_indices(indices)[source]

Set indices to cell-based basis that give the facet-based basis.

class sfepy.discrete.fem.mappings.VolumeMapping(coors, conn, poly_space=None, gel=None, order=1)[source]

Mapping from reference domain to physical domain of the same space dimension.

get_mapping(qp_coors, weights, poly_space=None, ori=None, transform=None)[source]

Get the mapping for given quadrature points, weights, and polynomial space.

Returns:

cmap : CMapping instance

The volume mapping.