23 #ifndef __INTERVAL_CELL_H 24 #define __INTERVAL_CELL_H 28 #include <boost/multi_array.hpp> 37 template<
typename T>
class MeshFunction;
53 std::size_t
dim()
const;
68 const unsigned int* v)
const;
89 double normal(
const Cell& cell, std::size_t facet, std::size_t i)
const;
101 void order(
Cell& cell,
const std::vector<std::int64_t>&
102 local_to_global_vertex_indices)
const;
Point cell_normal(const Cell &cell) const
Compute normal to given cell (viewed as embedded in 2D)
Definition: IntervalCell.cpp:193
virtual bool collides(const Cell &cell, const Point &point) const
Check whether given point collides with cell.
Definition: IntervalCell.cpp:242
double circumradius(const MeshEntity &interval) const
Compute circumradius of interval.
Definition: IntervalCell.cpp:116
double volume(const MeshEntity &interval) const
Compute (generalized) volume (length) of interval.
Definition: IntervalCell.cpp:95
std::size_t num_vertices() const
Return number of vertices for cell.
Definition: CellType.h:92
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: IntervalCell.cpp:83
std::size_t orientation(const Cell &cell) const
Return orientation of the cell (assuming flat space)
Definition: IntervalCell.cpp:77
This class implements functionality for interval cell meshes.
Definition: IntervalCell.h:41
void order(Cell &cell, const std::vector< std::int64_t > &local_to_global_vertex_indices) const
Order entities locally.
Definition: IntervalCell.cpp:225
Type
Enum for different cell types.
Definition: CellType.h:51
std::size_t num_entities(std::size_t dim) const
Return number of entities of given topological dimension.
Definition: IntervalCell.cpp:43
A Cell is a MeshEntity of topological codimension 0.
Definition: Cell.h:42
bool is_simplex() const
Check if cell is a simplex.
Definition: IntervalCell.h:49
std::vector< std::int8_t > vtk_mapping() const
Mapping of DOLFIN/UFC vertex ordering to VTK/XDMF ordering.
Definition: IntervalCell.h:116
double facet_area(const Cell &cell, std::size_t facet) const
Compute the area/length of given facet with respect to the cell.
Definition: IntervalCell.cpp:220
Definition: CellType.h:46
std::size_t dim() const
Return topological dimension of cell.
Definition: IntervalCell.cpp:38
std::string description(bool plural) const
Return description of cell type.
Definition: IntervalCell.cpp:252
IntervalCell()
Specify cell type and facet type.
Definition: IntervalCell.h:46
double normal(const Cell &cell, std::size_t facet, std::size_t i) const
Definition: IntervalCell.cpp:166
Definition: MeshEntity.h:42
double squared_distance(const Cell &cell, const Point &point) const
Compute squared distance to given point (3D enabled)
Definition: IntervalCell.cpp:130