CellType.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
CellType
¶ 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.
-
enum Type
Enum for different cell types
-
CellType
(Type cell_type, Type facet_type)¶ Constructor
-
static Type
string2type
(std::string type)¶ Convert from string to cell type
-
static std::string
type2string
(Type type)¶ Convert from cell type to string
-
Type
cell_type
() const¶ Return type of cell
-
Type
facet_type
() const¶ Return type of cell for facets
-
Type
entity_type
(std::size_t i) const¶ Return type of cell for entity of dimension i
-
std::size_t
dim
() const = 0¶ Return topological dimension of cell
-
std::size_t
num_entities
(std::size_t dim) const = 0¶ Return number of entities of given topological dimension
-
std::size_t
num_vertices
() const¶ Return number of vertices for cell
-
std::size_t
num_vertices
(std::size_t dim) const = 0¶ Return number of vertices for entity of given topological dimension
-
std::size_t
orientation
(const Cell &cell) const = 0¶ Return orientation of the cell (assuming flat space)
-
std::size_t
orientation
(const Cell &cell, const Point &up) const¶ Return orientation of the cell relative to given up direction
-
void
create_entities
(boost::multi_array<unsigned int, 2> &e, std::size_t dim, const unsigned int *v) const = 0¶ Create entities e of given topological dimension from vertices v
-
double
volume
(const MeshEntity &entity) const = 0¶ Compute (generalized) volume of mesh entity
-
double
h
(const MeshEntity &entity) const¶ Compute greatest distance between any two vertices
-
double
diameter
(const MeshEntity &entity) const¶ Compute diameter of mesh entity (deprecated)
-
double
circumradius
(const MeshEntity &entity) const = 0¶ Compute circumradius of mesh entity
-
double
squared_distance
(const Cell &cell, const Point &point) const = 0¶ Compute squared distance to given point
-
double
normal
(const Cell &cell, std::size_t facet, std::size_t i) const = 0¶ Compute component i of normal of given facet with respect to the cell
-
Point
normal
(const Cell &cell, std::size_t facet) const = 0¶ Compute of given facet with respect to the cell
-
Point
cell_normal
(const Cell &cell) const = 0¶ Compute normal to given cell (viewed as embedded in 3D)
-
double
facet_area
(const Cell &cell, std::size_t facet) const = 0¶ Compute the area/length of given facet with respect to the cell
-
void
order
(Cell &cell, const std::vector<std::size_t> &local_to_global_vertex_indices) const = 0¶ Order entities locally
-
bool
ordered
(const Cell &cell, const std::vector<std::size_t> &local_to_global_vertex_indices) const¶ Check if entities are ordered
-
bool
collides
(const Cell &cell, const Point &point) const = 0¶ Check whether given point collides with cell
-
bool
collides
(const Cell &cell, const MeshEntity &entity) const = 0¶ Check whether given entity collides with cell
-
std::vector<double>
triangulate_intersection
(const Cell &c0, const Cell &c1) const = 0¶ Compute triangulation of intersection of two cells
-
std::string
description
(bool plural) const = 0¶ Return description of cell type
-
std::vector<std::int8_t>
vtk_mapping
() const = 0¶ Mapping of DOLFIN/UFC vertex ordering to VTK/XDMF ordering
-