spaces.space Module

Provides the data structures that represents a finite element space.

class pysofe.spaces.space.FESpace(mesh, element)[source]

Base class for all finite element spaces.

Connects the mesh and reference element via a degrees of freedom manager.

Parameters:
get_quadrature_data(d)[source]

Returns the quadrature points and weighths associated with the d-dimensional entities as well as the jacobian determinants of for integral transformation to the reference domain.

Parameters:d (int) – The topological dimension of the entities for which to return the quadrature data
eval_global_derivatives(points, deriv=1)[source]

Evaluates the global basis functions’ derivatives at given local points.

Parameters:
  • points (array_like) – The local points on the reference element
  • deriv (int) – The derivation order
Returns:

(nE x nB x nP x nD [x nD]) array containing for all elements (nE) the evaluation of all basis functions first derivatives (nB) in each point (nP)

Return type:

numpy.ndarray