CellType

class dolfin.cpp.mesh.CellType(*args, **kwargs)

Bases: object

This class provides a common interface for different cell types. Each cell type implements mesh functionality that is specific to a certain type of cell.

cell_normal()

Compute normal to given cell (viewed as embedded in 3D)

cell_type()

Return type of cell

collides()

Overloaded versions

  • collides(cell, point)

    Check whether given point collides with cell

  • collides(cell, entity)

    Check whether given entity collides with cell

static create(*args)

Overloaded versions

  • create(type)

    Create cell type from type (factory function)

  • create(type)

    Create cell type from string (factory function)

create_entities()

Create entities e of given topological dimension from vertices v

description()

Return description of cell type

diameter()

Compute diameter of mesh entity

dim()

Return topological dimension of cell

entity_type()

Return type of cell for entity of dimension i

facet_area()

Compute the area/length of given facet with respect to the cell

facet_type()

Return type of cell for facets

hexahedron = 5
inradius()

Compute inradius of cell

interval = 1
normal()

Overloaded versions

  • normal(cell, facet, i)

    Compute component i of normal of given facet with respect to the cell

  • normal(cell, facet)

    Compute of given facet with respect to the cell

num_entities()

Return number of entities of given topological dimension

num_vertices()

Overloaded versions

  • num_vertices()

    Return number of vertices for cell

  • num_vertices(dim)

    Return number of vertices for entity of given topological dimension

order()

Order entities locally

ordered()

Check if entities are ordered

orientation()

Overloaded versions

  • orientation(cell)

    Return orientation of the cell (assuming flat space)

  • orientation(cell, up)

    Return orientation of the cell relative to given up direction

point = 0
quadrilateral = 3
radius_ratio()

Compute dim*inradius/circumradius for given cell

refine_cell()

Refine cell uniformly

squared_distance()

Compute squared distance to given point

static string2type(type)

Convert from string to cell type

tetrahedron = 4
thisown

The membership flag

triangle = 2
triangulate_intersection()

Compute triangulation of intersection of two cells

static type2string(type)

Convert from cell type to string

volume()

Compute (generalized) volume of mesh entity

vtk_mapping()

Mapping of DOLFIN/UFC vertex ordering to VTK/XDMF ordering