Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.9.0/cpp/cell_8h_source.html

Basix 0.8.0

Home     Installation     Demos     C++ docs     Python docs

Loading...
Searching...
No Matches
cell.h
1// Copyright (c) 2020 Chris Richardson
2// FEniCS Project
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
7#include <array>
8#include <concepts>
9#include <utility>
10#include <vector>
11
13
16namespace basix::cell
17{
18
20enum class type : int
21{
22 point = 0,
23 interval = 1,
24 triangle = 2,
25 tetrahedron = 3,
26 quadrilateral = 4,
27 hexahedron = 5,
28 prism = 6,
29 pyramid = 7
30};
31
37template <std::floating_point T>
38std::pair<std::vector<T>, std::array<std::size_t, 2>>
39geometry(cell::type celltype);
40
44std::vector<std::vector<std::vector<int>>> topology(cell::type celltype);
45
56std::vector<std::vector<std::vector<std::vector<int>>>>
58
64template <std::floating_point T>
65std::pair<std::vector<T>, std::array<std::size_t, 2>>
66sub_entity_geometry(cell::type celltype, int dim, int index);
67
72int num_sub_entities(cell::type celltype, int dim);
73
78
84cell::type sub_entity_type(cell::type celltype, int dim, int index);
85
89template <std::floating_point T>
90T volume(cell::type cell_type);
91
95template <std::floating_point T>
96std::pair<std::vector<T>, std::array<std::size_t, 2>>
98
103template <std::floating_point T>
104std::pair<std::vector<T>, std::array<std::size_t, 2>>
105facet_normals(cell::type cell_type);
106
111std::vector<bool> facet_orientations(cell::type cell_type);
112
116template <std::floating_point T>
117std::vector<T> facet_reference_volumes(cell::type cell_type);
118
122std::vector<std::vector<cell::type>> subentity_types(cell::type cell_type);
123
127template <std::floating_point T>
128std::pair<std::vector<T>, std::array<std::size_t, 3>>
129facet_jacobians(cell::type cell_type);
130
131} // namespace basix::cell
Information about reference cells.
Definition: cell.h:17
std::vector< bool > facet_orientations(cell::type cell_type)
Definition: cell.cpp:505
int num_sub_entities(cell::type celltype, int dim)
Definition: cell.cpp:345
type
Cell type.
Definition: cell.h:21
std::pair< std::vector< T >, std::array< std::size_t, 3 > > facet_jacobians(cell::type cell_type)
Definition: cell.cpp:610
cell::type sub_entity_type(cell::type celltype, int dim, int index)
Definition: cell.cpp:379
std::vector< T > facet_reference_volumes(cell::type cell_type)
Definition: cell.cpp:536
std::vector< std::vector< std::vector< int > > > topology(cell::type celltype)
Definition: cell.cpp:52
std::vector< std::vector< cell::type > > subentity_types(cell::type cell_type)
Definition: cell.cpp:546
int topological_dimension(cell::type celltype)
Definition: cell.cpp:294
std::vector< std::vector< std::vector< std::vector< int > > > > sub_entity_connectivity(cell::type celltype)
Definition: cell.cpp:143
std::pair< std::vector< T >, std::array< std::size_t, 2 > > sub_entity_geometry(cell::type celltype, int dim, int index)
Definition: cell.cpp:321
std::pair< std::vector< T >, std::array< std::size_t, 2 > > facet_normals(cell::type cell_type)
Definition: cell.cpp:450
T volume(cell::type cell_type)
Definition: cell.cpp:404
std::pair< std::vector< T >, std::array< std::size_t, 2 > > facet_outward_normals(cell::type cell_type)
Definition: cell.cpp:431
std::pair< std::vector< T >, std::array< std::size_t, 2 > > geometry(cell::type celltype)
Definition: cell.cpp:20