deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+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
data_out_faces.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2000 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_data_out_faces_h
16#define dealii_data_out_faces_h
17
18
19#include <deal.II/base/config.h>
20
22
23#include <string>
24#include <vector>
25
27
28
29namespace internal
30{
31 namespace DataOutFacesImplementation
32 {
38 template <int dim, int spacedim>
41 {
42 ParallelData(const unsigned int n_datasets,
43 const unsigned int n_subdivisions,
44 const std::vector<unsigned int> &n_postprocessor_outputs,
45 const Mapping<dim, spacedim> &mapping,
46 const std::vector<
47 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
50
51 std::vector<Point<spacedim>> patch_evaluation_points;
52 };
53 } // namespace DataOutFacesImplementation
54} // namespace internal
55
56
107template <int dim, int spacedim = dim>
108class DataOutFaces : public DataOut_DoFData<dim, dim - 1, spacedim, spacedim>
109{
110 static_assert(dim == spacedim, "Not implemented for dim != spacedim.");
111
112public:
116 static constexpr int patch_dim = dim - 1;
117 static constexpr int patch_spacedim = spacedim;
118
126
138 DataOutFaces(const bool surface_only = true);
139
154 virtual void
155 build_patches(const unsigned int n_subdivisions = 0);
156
177 virtual void
179 const unsigned int n_subdivisions = 0);
180
189 using FaceDescriptor = typename std::pair<cell_iterator, unsigned int>;
190
191
202 virtual FaceDescriptor
203 first_face();
204
226 virtual FaceDescriptor
227 next_face(const FaceDescriptor &face);
228
229private:
233 const bool surface_only;
234
238 void
240 const FaceDescriptor *cell_and_face,
243};
244
245
247
248#endif
static constexpr int patch_dim
void build_one_patch(const FaceDescriptor *cell_and_face, internal::DataOutFacesImplementation::ParallelData< dim, spacedim > &data, DataOutBase::Patch< patch_dim, patch_spacedim > &patch)
typename DataOut_DoFData< dim, patch_dim, spacedim, patch_spacedim >::cell_iterator cell_iterator
virtual FaceDescriptor next_face(const FaceDescriptor &face)
const bool surface_only
typename std::pair< cell_iterator, unsigned int > FaceDescriptor
virtual void build_patches(const unsigned int n_subdivisions=0)
static constexpr int patch_spacedim
virtual FaceDescriptor first_face()
Abstract base class for mapping classes.
Definition mapping.h:318
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
UpdateFlags
std::vector< index_type > data
Definition mpi.cc:735
std::vector< Point< spacedim > > patch_evaluation_points
const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > finite_elements