spaces.manager
Module¶
Provides the data structure for the degrees of freedom manager.
-
class
pysofe.spaces.manager.
DOFManager
(mesh, element)[source]¶ Connects the finite element mesh and reference element through the assignment of degrees of freedom to individual elements.
Parameters: - mesh (pysofe.meshes.Mesh) – The mesh for which to provide connectivity information
- element (pysofe.elements.base.Element) – The reference element
-
n_dof
¶ The total number of degrees of freedom
-
get_dof_map
(d, mask=None)[source]¶ Returns the degrees of freedom mapping that connects the global mesh entities of topological dimension d to the local reference element.
Parameters: - d (int) – The topological dimension of the entities for which to return the degrees of freedom mapping
- mask (array_like) – An 1d array marking certain entities of which to get the dof map
-
extract_dofs
(d, mask=None)[source]¶ Returns a boolean array specifying the degrees of freedom associated with the mesh entities of topological dimension d.
Parameters: - d (int) – The topological dimension of the mesh entities
- mask (array_like) – An 1d array marking certain entities of which to get the dofs