Basix
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
basix
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
16
namespace
basix::cell
17
{
18
20
enum 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
37
template
<std::
float
ing_po
int
T>
38
std::pair<std::vector<T>, std::array<std::size_t, 2>>
39
geometry
(
cell::type
celltype);
40
44
std::vector<std::vector<std::vector<int>>>
topology
(
cell::type
celltype);
45
56
std::vector<std::vector<std::vector<std::vector<int>>>>
57
sub_entity_connectivity
(
cell::type
celltype);
58
64
template
<std::
float
ing_po
int
T>
65
std::pair<std::vector<T>, std::array<std::size_t, 2>>
66
sub_entity_geometry
(
cell::type
celltype,
int
dim,
int
index);
67
72
int
num_sub_entities
(
cell::type
celltype,
int
dim);
73
77
int
topological_dimension
(
cell::type
celltype);
78
84
cell::type
sub_entity_type
(
cell::type
celltype,
int
dim,
int
index);
85
89
template
<std::
float
ing_po
int
T>
90
T
volume
(
cell::type
cell_type);
91
95
template
<std::
float
ing_po
int
T>
96
std::pair<std::vector<T>, std::array<std::size_t, 2>>
97
facet_outward_normals
(
cell::type
cell_type);
98
104
template
<std::
float
ing_po
int
T>
105
std::pair<std::vector<T>, std::array<std::size_t, 2>>
106
scaled_facet_normals
(
cell::type
cell_type);
107
112
template
<std::
float
ing_po
int
T>
113
std::pair<std::vector<T>, std::array<std::size_t, 2>>
114
facet_normals
(
cell::type
cell_type);
115
120
std::vector<bool>
facet_orientations
(
cell::type
cell_type);
121
125
template
<std::
float
ing_po
int
T>
126
std::vector<T>
facet_reference_volumes
(
cell::type
cell_type);
127
131
std::vector<std::vector<cell::type>>
subentity_types
(
cell::type
cell_type);
132
138
template
<std::
float
ing_po
int
T>
139
std::pair<std::vector<T>, std::array<std::size_t, 3>>
140
entity_jacobians
(
cell::type
cell_type, std::size_t e_dim);
141
146
template
<std::
float
ing_po
int
T>
147
std::pair<std::vector<T>, std::array<std::size_t, 3>>
148
facet_jacobians
(
cell::type
cell_type);
149
154
template
<std::
float
ing_po
int
T>
155
std::pair<std::vector<T>, std::array<std::size_t, 3>>
156
edge_jacobians
(
cell::type
cell_type);
157
158
}
// namespace basix::cell
basix::cell
Information about reference cells.
Definition
cell.h:17
basix::cell::facet_orientations
std::vector< bool > facet_orientations(cell::type cell_type)
Definition
cell.cpp:556
basix::cell::num_sub_entities
int num_sub_entities(cell::type celltype, int dim)
Definition
cell.cpp:345
basix::cell::type
type
Cell type.
Definition
cell.h:21
basix::cell::facet_jacobians
std::pair< std::vector< T >, std::array< std::size_t, 3 > > facet_jacobians(cell::type cell_type)
Definition
cell.cpp:693
basix::cell::sub_entity_type
cell::type sub_entity_type(cell::type celltype, int dim, int index)
Definition
cell.cpp:379
basix::cell::facet_reference_volumes
std::vector< T > facet_reference_volumes(cell::type cell_type)
Definition
cell.cpp:587
basix::cell::topology
std::vector< std::vector< std::vector< int > > > topology(cell::type celltype)
Definition
cell.cpp:52
basix::cell::subentity_types
std::vector< std::vector< cell::type > > subentity_types(cell::type cell_type)
Definition
cell.cpp:598
basix::cell::edge_jacobians
std::pair< std::vector< T >, std::array< std::size_t, 3 > > edge_jacobians(cell::type cell_type)
Definition
cell.cpp:707
basix::cell::entity_jacobians
std::pair< std::vector< T >, std::array< std::size_t, 3 > > entity_jacobians(cell::type cell_type, std::size_t e_dim)
Definition
cell.cpp:662
basix::cell::topological_dimension
int topological_dimension(cell::type celltype)
Definition
cell.cpp:294
basix::cell::sub_entity_connectivity
std::vector< std::vector< std::vector< std::vector< int > > > > sub_entity_connectivity(cell::type celltype)
Definition
cell.cpp:143
basix::cell::sub_entity_geometry
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
basix::cell::facet_normals
std::pair< std::vector< T >, std::array< std::size_t, 2 > > facet_normals(cell::type cell_type)
Definition
cell.cpp:450
basix::cell::scaled_facet_normals
std::pair< std::vector< T >, std::array< std::size_t, 2 > > scaled_facet_normals(cell::type cell_type)
Definition
cell.cpp:507
basix::cell::volume
T volume(cell::type cell_type)
Definition
cell.cpp:404
basix::cell::facet_outward_normals
std::pair< std::vector< T >, std::array< std::size_t, 2 > > facet_outward_normals(cell::type cell_type)
Definition
cell.cpp:431
basix::cell::geometry
std::pair< std::vector< T >, std::array< std::size_t, 2 > > geometry(cell::type celltype)
Definition
cell.cpp:20
Generated by
1.17.0