deal.II version 9.8.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_rotation.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) 2000 - 2023 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_data_out_rotation_h
14#define dealii_data_out_rotation_h
15
16
17#include <deal.II/base/config.h>
18
20
21#include <string>
22#include <vector>
23
25
26
27namespace internal
28{
30 {
36 template <int dim, int spacedim>
39 {
40 ParallelData(const unsigned int n_datasets,
41 const unsigned int n_subdivisions,
42 const unsigned int n_patches_per_circle,
43 const std::vector<unsigned int> &n_postprocessor_outputs,
45 const std::vector<
46 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
48 const UpdateFlags update_flags);
49
50 const unsigned int n_patches_per_circle;
51
52 std::vector<Point<spacedim>> patch_evaluation_points;
53 };
54 } // namespace DataOutRotationImplementation
55} // namespace internal
56
57
58
111template <int dim, int spacedim = dim>
113 : public DataOut_DoFData<dim, dim + 1, spacedim, spacedim + 1>
114{
115 static_assert(dim == spacedim, "Not implemented for dim != spacedim.");
116
117public:
121 static constexpr int patch_dim = dim + 1;
122 static constexpr int patch_spacedim = spacedim + 1;
123
130 cell_iterator;
131
149 virtual void
150 build_patches(const unsigned int n_patches_per_circle,
151 const unsigned int n_subdivisions = 0);
152
159 virtual cell_iterator
160 first_cell();
161
173 virtual cell_iterator
174 next_cell(const cell_iterator &cell);
175
180 double,
181 << "You are attempting to use this class on a triangulation "
182 "in which some vertices have a negative radial coordinate "
183 "value of "
184 << arg1
185 << ". If you rotate such a triangulation around an "
186 "axis, you will get (dim+1)-dimensional meshes "
187 "that are not likely what you hoped to see.");
188
189private:
195 void
197 const cell_iterator *cell,
199 std::vector<DataOutBase::Patch<patch_dim, patch_spacedim>> &my_patches);
200};
201
202
204
205#endif
virtual void build_patches(const unsigned int n_patches_per_circle, const unsigned int n_subdivisions=0)
typename DataOut_DoFData< dim, patch_dim, spacedim, patch_spacedim >:: cell_iterator cell_iterator
static constexpr int patch_dim
void build_one_patch(const cell_iterator *cell, internal::DataOutRotationImplementation::ParallelData< dim, spacedim > &data, std::vector< DataOutBase::Patch< patch_dim, patch_spacedim > > &my_patches)
virtual cell_iterator next_cell(const cell_iterator &cell)
static constexpr int patch_spacedim
virtual cell_iterator first_cell()
Abstract base class for mapping classes.
Definition mapping.h:318
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
static ::ExceptionBase & ExcRadialVariableHasNegativeValues(double arg1)
#define DeclException1(Exception1, type1, outsequence)
MappingQ< dim, spacedim > StaticMappingQ1< dim, spacedim >::mapping
Definition mapping_q1.h:101
const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > finite_elements
std::vector< Point< spacedim > > patch_evaluation_points
ParallelData(const unsigned int n_datasets, const unsigned int n_subdivisions, const unsigned int n_patches_per_circle, const std::vector< unsigned int > &n_postprocessor_outputs, const Mapping< dim, spacedim > &mapping, const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > &finite_elements, const UpdateFlags update_flags)