MeshColoring

class dolfin.cpp.mesh.MeshColoring

Bases: object

This class computes colorings for a local mesh. It supports vertex, edge, and facet-based colorings.

static cell_colors(*args)

Overloaded versions

  • cell_colors(mesh, coloring_type)

    Return a MeshFunction with the cell colors (used for visualisation)

  • cell_colors(mesh, coloring_type)

    Return a MeshFunction with the cell colors (used for visualisation)

static color(mesh, coloring_type)

Color the cells of a mesh for given coloring type specified by topological dimension, which can be one of 0, 1 or D - 1. Coloring is saved in the mesh topology

static color_cells(mesh, coloring_type)

Color the cells of a mesh for given coloring type, which can be one of “vertex”, “edge” or “facet”. Coloring is saved in the mesh topology

static compute_colors(mesh, colors, coloring_type)

Compute cell colors for given coloring type specified by topological dimension, which can be one of 0, 1 or D - 1.

thisown

The membership flag

static type_to_dim(coloring_type, mesh)

Convert coloring type to topological dimension