25 #ifndef __TETRAHEDRON_CELL_H 26 #define __TETRAHEDRON_CELL_H 29 #include <boost/multi_array.hpp> 52 std::size_t
dim()
const;
65 std::size_t dim,
const unsigned int* v)
const;
78 double normal(
const Cell& cell, std::size_t facet, std::size_t i)
const;
90 void order(
Cell& cell,
const std::vector<std::int64_t>&
91 local_to_global_vertex_indices)
const;
104 {
return {0, 1, 2, 3}; }
109 std::size_t find_edge(std::size_t i,
const Cell& cell)
const;
113 bool point_outside_of_plane(
const Point& point,
117 const Point& D)
const;
TetrahedronCell()
Specify cell type and facet type.
Definition: TetrahedronCell.h:45
bool collides(const Cell &cell, const Point &point) const
Check whether given point collides with cell.
Definition: TetrahedronCell.cpp:530
std::size_t num_vertices() const
Return number of vertices for cell.
Definition: CellType.h:92
std::vector< std::int8_t > vtk_mapping() const
Mapping of DOLFIN/UFC vertex ordering to VTK/XDMF ordering.
Definition: TetrahedronCell.h:103
std::size_t dim() const
Return topological dimension of cell.
Definition: TetrahedronCell.cpp:44
Type
Enum for different cell types.
Definition: CellType.h:51
double facet_area(const Cell &cell, std::size_t facet) const
Compute the area/length of given facet with respect to the cell.
Definition: TetrahedronCell.cpp:333
A Cell is a MeshEntity of topological codimension 0.
Definition: Cell.h:42
double normal(const Cell &cell, std::size_t facet, std::size_t i) const
Definition: TetrahedronCell.cpp:275
std::size_t num_entities(std::size_t dim) const
Return number of entities of given topological dimension.
Definition: TetrahedronCell.cpp:49
double volume(const MeshEntity &tetrahedron) const
Compute volume of tetrahedron.
Definition: TetrahedronCell.cpp:143
Definition: CellType.h:46
std::string description(bool plural) const
Return description of cell type.
Definition: TetrahedronCell.cpp:540
Point cell_normal(const Cell &cell) const
Compute normal to given cell (viewed as embedded in 4D ...)
Definition: TetrahedronCell.cpp:324
void create_entities(boost::multi_array< unsigned int, 2 > &e, std::size_t dim, const unsigned int *v) const
Create entities e of given topological dimension from vertices v.
Definition: TetrahedronCell.cpp:108
std::size_t orientation(const Cell &cell) const
Return orientation of the cell.
Definition: TetrahedronCell.cpp:91
double circumradius(const MeshEntity &tetrahedron) const
Compute circumradius of tetrahedron.
Definition: TetrahedronCell.cpp:184
Definition: MeshEntity.h:42
bool is_simplex() const
Check if cell is a simplex.
Definition: TetrahedronCell.h:48
double squared_distance(const Cell &cell, const Point &point) const
Compute squared distance to given point.
Definition: TetrahedronCell.cpp:232
This class implements functionality for tetrahedral cell meshes.
Definition: TetrahedronCell.h:40
void order(Cell &cell, const std::vector< std::int64_t > &local_to_global_vertex_indices) const
Order entities locally.
Definition: TetrahedronCell.cpp:362