PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
MeshMatricesDAO_mesh_connectivity_data.hpp
Go to the documentation of this file.
1// _LICENSE_HEADER_
2//
3// Copyright (C) 2019 - 2025.
4// Terms register on the GPL-3.0 license.
5//
6// This file can be redistributed and/or modified under the license terms.
7//
8// See top level LICENSE file for more details.
9//
10// This file can be used citing references in CITATION.cff file.
11
12#ifndef __PDETOOLS_MESH_MeshMatricesDAO_mesh_connectivity_data_HPP
13#define __PDETOOLS_MESH_MeshMatricesDAO_mesh_connectivity_data_HPP
14
15#include "MeshMatricesDAO.hpp"
16
17namespace Polydim
18{
19namespace PDETools
20{
21namespace Mesh
22{
24{
25 private:
26 const Gedim::MeshMatricesDAO &mesh_data;
27
28 public:
30
31 inline unsigned int Dimension() const
32 {
33 return mesh_data.Dimension();
34 }
35 inline unsigned int Cell0Ds_number() const
36 {
37 return mesh_data.Cell0DTotalNumber();
38 }
39 inline unsigned int Cell1Ds_number() const
40 {
41 return mesh_data.Cell1DTotalNumber();
42 }
43 inline unsigned int Cell2Ds_number() const
44 {
45 return mesh_data.Cell2DTotalNumber();
46 }
47 inline unsigned int Cell3Ds_number() const
48 {
49 return mesh_data.Cell3DTotalNumber();
50 }
51
52 inline unsigned int Cell0D_marker(const unsigned int cell0D_index) const
53 {
54 return mesh_data.Cell0DMarker(cell0D_index);
55 }
56 inline unsigned int Cell1D_marker(const unsigned int cell1D_index) const
57 {
58 return mesh_data.Cell1DMarker(cell1D_index);
59 }
60 inline unsigned int Cell2D_marker(const unsigned int cell2D_index) const
61 {
62 return mesh_data.Cell2DMarker(cell2D_index);
63 }
64 inline unsigned int Cell3D_marker(const unsigned int cell3D_index) const
65 {
66 return mesh_data.Cell3DMarker(cell3D_index);
67 }
68
69 inline std::array<unsigned int, 2> Cell1D_vertices(const unsigned int cell1D_index) const
70 {
71 return {mesh_data.Cell1DOrigin(cell1D_index), mesh_data.Cell1DEnd(cell1D_index)};
72 }
73
74 inline std::vector<unsigned int> Cell2D_vertices(const unsigned int cell2D_index) const
75 {
76 return mesh_data.Cell2DVertices(cell2D_index);
77 }
78
79 inline std::vector<unsigned int> Cell2D_edges(const unsigned int cell2D_index) const
80 {
81 return mesh_data.Cell2DEdges(cell2D_index);
82 }
83
84 inline std::vector<unsigned int> Cell3D_vertices(const unsigned int cell3D_index) const
85 {
86 return mesh_data.Cell3DVertices(cell3D_index);
87 }
88
89 inline std::vector<unsigned int> Cell3D_edges(const unsigned int cell3D_index) const
90 {
91 return mesh_data.Cell3DEdges(cell3D_index);
92 }
93
94 inline std::vector<unsigned int> Cell3D_faces(const unsigned int cell3D_index) const
95 {
96 return mesh_data.Cell3DFaces(cell3D_index);
97 }
98};
99} // namespace Mesh
100} // namespace PDETools
101} // namespace Polydim
102
103#endif
Definition IMeshDAO.hpp:1068
std::vector< unsigned int > Cell3DFaces(const unsigned int &cell3DIndex) const
Definition MeshMatricesDAO.cpp:1474
unsigned int Cell0DTotalNumber() const
Definition IMeshDAO.hpp:1163
std::vector< unsigned int > Cell3DEdges(const unsigned int &cell3DIndex) const
Definition MeshMatricesDAO.cpp:1463
unsigned int Cell1DTotalNumber() const
Definition IMeshDAO.hpp:1469
unsigned int Cell1DEnd(const unsigned int &cell1DIndex) const
Definition IMeshDAO.hpp:1484
unsigned int Dimension() const
Definition IMeshDAO.hpp:1141
unsigned int Cell1DMarker(const unsigned int &cell1DIndex) const
Definition IMeshDAO.hpp:1550
std::vector< unsigned int > Cell2DEdges(const unsigned int &cell2DIndex) const
Definition IMeshDAO.hpp:1785
unsigned int Cell2DTotalNumber() const
Definition IMeshDAO.hpp:1746
unsigned int Cell0DMarker(const unsigned int &cell0DIndex) const
Definition IMeshDAO.hpp:1189
unsigned int Cell1DOrigin(const unsigned int &cell1DIndex) const
Definition IMeshDAO.hpp:1479
std::vector< unsigned int > Cell3DVertices(const unsigned int &cell3DIndex) const
Definition MeshMatricesDAO.cpp:1371
std::vector< unsigned int > Cell2DVertices(const unsigned int &cell2DIndex) const
Definition IMeshDAO.hpp:1761
unsigned int Cell3DMarker(const unsigned int &cell3DIndex) const
Definition IMeshDAO.hpp:2097
unsigned int Cell3DTotalNumber() const
Definition IMeshDAO.hpp:2043
unsigned int Cell2DMarker(const unsigned int &cell2DIndex) const
Definition IMeshDAO.hpp:1802
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:24
std::vector< unsigned int > Cell3D_faces(const unsigned int cell3D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:94
std::vector< unsigned int > Cell2D_edges(const unsigned int cell2D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:79
unsigned int Cell3Ds_number() const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:47
unsigned int Cell0Ds_number() const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:35
unsigned int Cell2D_marker(const unsigned int cell2D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:60
unsigned int Cell3D_marker(const unsigned int cell3D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:64
unsigned int Cell2Ds_number() const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:43
unsigned int Dimension() const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:31
unsigned int Cell1Ds_number() const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:39
unsigned int Cell0D_marker(const unsigned int cell0D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:52
std::vector< unsigned int > Cell3D_vertices(const unsigned int cell3D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:84
unsigned int Cell1D_marker(const unsigned int cell1D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:56
std::vector< unsigned int > Cell2D_vertices(const unsigned int cell2D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:74
std::vector< unsigned int > Cell3D_edges(const unsigned int cell3D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:89
std::array< unsigned int, 2 > Cell1D_vertices(const unsigned int cell1D_index) const
Definition MeshMatricesDAO_mesh_connectivity_data.hpp:69
Definition FEM_MCC_2D_LocalSpace.cpp:17