deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
cell_data.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2020 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_grid_cell_data_h
14#define dealii_grid_cell_data_h
15
16#include <deal.II/base/config.h>
17
19#include <deal.II/base/types.h>
20
22
24
60template <int structdim>
62{
83 ReferenceCells::max_n_vertices<structdim>()>
85
93 union
94 {
104
115 };
116
126
144 CellData(const unsigned int n_vertices =
145 ReferenceCells::get_hypercube<structdim>().n_vertices());
146
150 bool
151 operator==(const CellData<structdim> &other) const;
152
158 template <class Archive>
159 void
160 serialize(Archive &ar, const unsigned int version);
161
162 static_assert(structdim > 0,
163 "The class CellData can only be used for structdim>0.");
164};
165
166
167
223{
231 std::vector<CellData<1>> boundary_lines;
232
247 std::vector<CellData<2>> boundary_quads;
248
257 bool
258 check_consistency(const unsigned int dim) const;
259};
260
261
262template <int structdim>
263template <class Archive>
264void
265CellData<structdim>::serialize(Archive &ar, const unsigned int /*version*/)
266{
267 ar &vertices;
268 ar &material_id;
269 ar &boundary_id;
270 ar &manifold_id;
271}
272
274
275#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
bool operator==(const CellData< structdim > &other) const
types::manifold_id manifold_id
Definition cell_data.h:125
std_cxx26::inplace_vector< unsigned int, ReferenceCells::max_n_vertices< structdim >()> vertices
Definition cell_data.h:84
types::material_id material_id
Definition cell_data.h:103
types::boundary_id boundary_id
Definition cell_data.h:114
void serialize(Archive &ar, const unsigned int version)
Definition cell_data.h:265
std::vector< CellData< 2 > > boundary_quads
Definition cell_data.h:247
bool check_consistency(const unsigned int dim) const
std::vector< CellData< 1 > > boundary_lines
Definition cell_data.h:231