elements.base Module

Provides the base class for all finite element classes.

class pysofe.elements.base.Element(dimension, order, n_basis, n_verts)[source]

Provides an abstract base class for all reference elements.

Derived classes have to implement the methods

  • _eval_d0_basis(points)()
  • _eval_d1_basis(points)()
  • _eval_d2_basis(points)()

that evaluate the basis functions or their derivatives.

Parameters:
  • dimension (int) – The spatial dimension of the element
  • order (int) – The polynomial order of the basis functions
  • n_basis (iterable) – The number of basis functions related to the entities of every topological dimension
  • n_verts (iterable) – The number of vertices for the entities of each topological dimension
dimension

The spatial dimension of the element.

order

The polynomial order of the element’s basis functions.

n_basis

The number of basis functions associated with the entities of each spatial (sub-) dimenson.

n_verts

The number of vertices of the element’s (sub-) entities of each spatial dimension.

dof_tuple

The number of degrees of freedom associated to the entities of every spatial dimension.

eval_basis(points, deriv=0)[source]

Evaluates the element’s basis functions or their derivatives at given local points on the reference domain.

Parameters:
  • points (array_like) – The local points at which to evaluate the basis functions
  • deriv (int) – The derivation order