MeshColoring¶
-
class
dolfin.cpp.mesh.MeshColoring¶ Bases:
objectThis class computes colorings for a local mesh. It supports vertex, edge, and facet-based colorings.
-
static
cell_colors(*args) → 'dolfin::CellFunction< std::size_t >'¶ 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: 'Mesh', coloring_type: 'std::vector< std::size_t > const &') → 'std::vector< std::size_t > const &'¶ 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: 'Mesh', coloring_type: 'std::string') → 'std::vector< std::size_t > const &'¶ 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: 'Mesh', colors: 'std::vector< std::size_t > &', coloring_type: 'std::vector< std::size_t > const &') → 'std::size_t'¶ 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: 'std::string', mesh: 'Mesh') → 'std::size_t'¶ Convert coloring type to topological dimension
-
static