Reference documentation for deal.II version 9.5.0
\(\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// Copyright (C) 2000 - 2022 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_data_out_faces_h
17#define dealii_data_out_faces_h
18
19
20#include <deal.II/base/config.h>
21
23
24#include <string>
25#include <vector>
26
28
29
30namespace internal
31{
32 namespace DataOutFacesImplementation
33 {
39 template <int dim, int spacedim>
42 {
43 ParallelData(const unsigned int n_datasets,
44 const unsigned int n_subdivisions,
45 const std::vector<unsigned int> &n_postprocessor_outputs,
46 const Mapping<dim, spacedim> & mapping,
47 const std::vector<
48 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
51
52 std::vector<Point<spacedim>> patch_evaluation_points;
53 };
54 } // namespace DataOutFacesImplementation
55} // namespace internal
56
57
108template <int dim, int spacedim = dim>
109class DataOutFaces : public DataOut_DoFData<dim, dim - 1, spacedim, spacedim>
110{
111 static_assert(dim == spacedim, "Not implemented for dim != spacedim.");
112
113public:
117 static constexpr int patch_dim = dim - 1;
118 static constexpr int patch_spacedim = spacedim;
119
127
139 DataOutFaces(const bool surface_only = true);
140
155 virtual void
156 build_patches(const unsigned int n_subdivisions = 0);
157
178 virtual void
180 const unsigned int n_subdivisions = 0);
181
190 using FaceDescriptor = typename std::pair<cell_iterator, unsigned int>;
191
192
203 virtual FaceDescriptor
204 first_face();
205
227 virtual FaceDescriptor
228 next_face(const FaceDescriptor &face);
229
230private:
234 const bool surface_only;
235
239 void
241 const FaceDescriptor *cell_and_face,
244};
245
246
248
249#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:317
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
UpdateFlags
std::vector< Point< spacedim > > patch_evaluation_points
const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > finite_elements