DofMap

class dolfin.cpp.fem.DofMap(*args)

Bases: dolfin.cpp.fem.GenericDofMap

This class handles the mapping of degrees of freedom. It builds a dof map based on a ufc::dofmap on a specific mesh. It will reorder the dofs when running in parallel. Sub-dofmaps, both views and copies, are supported.

Overloaded versions

  • DofMap(ufc_dofmap, mesh)

    Create dof map on mesh (mesh is not stored)

    Arguments
    ufc_dofmap (ufc::dofmap)

    The ufc::dofmap.

    mesh (Mesh)

    The mesh.

  • DofMap(ufc_dofmap, mesh, constrained_domain)

    Create a periodic dof map on mesh (mesh is not stored)

    Arguments
    ufc_dofmap (ufc::dofmap)

    The ufc::dofmap.

    mesh (Mesh)

    The mesh.

    conatrained_boundary (SubDomain)

    The subdomain marking the constrained (tied) boudaries.

  • DofMap(ufc_dofmap, restriction)

    Create restricted dof map on mesh

    Arguments
    ufc_dofmap (ufc::dofmap)

    The ufc::dofmap.

    restriction (Restriction)

    The restriction.

data()

Return the underlying dof map data. Intended for internal library use only.

Returns
std::vector<std::vector<dolfin::la_index> >
The local-to-global map for each cell.
is_restricted()

True if dof map is restricted

Returns
bool
True if dof map is restricted
thisown

The membership flag