Reference documentation for deal.II version 9.2.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\}}\)
data_out_rotation.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2018 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_rotation_h
17 #define dealii_data_out_rotation_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <string>
25 #include <vector>
26 
28 
29 
30 namespace internal
31 {
32  namespace DataOutRotationImplementation
33  {
39  template <int dim, int spacedim>
40  struct ParallelData
42  {
43  ParallelData(const unsigned int n_datasets,
44  const unsigned int n_subdivisions,
45  const unsigned int n_patches_per_circle,
46  const std::vector<unsigned int> &n_postprocessor_outputs,
47  const Mapping<dim, spacedim> & mapping,
48  const std::vector<
49  std::shared_ptr<::hp::FECollection<dim, spacedim>>>
52 
53  const unsigned int n_patches_per_circle;
54 
55  std::vector<Point<spacedim>> patch_evaluation_points;
56  };
57  } // namespace DataOutRotationImplementation
58 } // namespace internal
59 
60 
61 
122 template <int dim, typename DoFHandlerType = DoFHandler<dim>>
124  : public DataOut_DoFData<DoFHandlerType, DoFHandlerType::dimension + 1>
125 {
126 public:
131  static const unsigned int dimension = DoFHandlerType::dimension;
132 
137  static const unsigned int space_dimension = DoFHandlerType::space_dimension;
138 
143  using cell_iterator =
145 
163  virtual void
164  build_patches(const unsigned int n_patches_per_circle,
165  const unsigned int n_subdivisions = 0);
166 
173  virtual cell_iterator
174  first_cell();
175 
187  virtual cell_iterator
188  next_cell(const cell_iterator &cell);
189 
194  double,
195  << "You are attempting to use this class on a triangulation "
196  "in which some vertices have a negative radial coordinate "
197  "value of "
198  << arg1
199  << ". If you rotate such a triangulation around an "
200  "axis, you will get (dim+1)-dimensional meshes "
201  "that are not likely what you hoped to see.");
202 
203 private:
209  void
211  const cell_iterator *cell,
214  &data,
216  &my_patches);
217 };
218 
219 
221 
222 #endif
DataOutRotation::first_cell
virtual cell_iterator first_cell()
Definition: data_out_rotation.cc:557
data_out_dof_data.h
internal::DataOutImplementation::ParallelDataBase
Definition: data_out_dof_data.h:405
DataOutRotation::cell_iterator
typename DataOut_DoFData< DoFHandlerType, dimension+1 >::cell_iterator cell_iterator
Definition: data_out_rotation.h:144
internal::DataOutRotationImplementation::ParallelData::ParallelData
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)
Definition: data_out_rotation.cc:57
DataOutRotation::build_one_patch
void build_one_patch(const cell_iterator *cell, internal::DataOutRotationImplementation::ParallelData< dimension, space_dimension > &data, std::vector< DataOutBase::Patch< dimension+1, space_dimension+1 >> &my_patches)
Definition: data_out_rotation.cc:103
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
internal::DataOutRotationImplementation::ParallelData::n_patches_per_circle
const unsigned int n_patches_per_circle
Definition: data_out_rotation.h:53
DataOutRotation::ExcRadialVariableHasNegativeValues
static ::ExceptionBase & ExcRadialVariableHasNegativeValues(double arg1)
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
DataOutRotation::build_patches
virtual void build_patches(const unsigned int n_patches_per_circle, const unsigned int n_subdivisions=0)
Definition: data_out_rotation.cc:456
DeclException1
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:518
DataOutRotation::space_dimension
static const unsigned int space_dimension
Definition: data_out_rotation.h:137
DataOut_DoFData
Definition: data_out_dof_data.h:602
internal::DataOutRotationImplementation::ParallelData::patch_evaluation_points
std::vector< Point< spacedim > > patch_evaluation_points
Definition: data_out_rotation.h:55
DataOutRotation
Definition: data_out_rotation.h:123
UpdateFlags
UpdateFlags
Definition: fe_update_flags.h:66
internal::DataOutImplementation::ParallelDataBase::n_datasets
const unsigned int n_datasets
Definition: data_out_dof_data.h:434
DataOutRotation::next_cell
virtual cell_iterator next_cell(const cell_iterator &cell)
Definition: data_out_rotation.cc:565
DataOutRotation::dimension
static const unsigned int dimension
Definition: data_out_rotation.h:131
DataOut_DoFData::cell_iterator
typename Triangulation< DoFHandlerType::dimension, DoFHandlerType::space_dimension >::cell_iterator cell_iterator
Definition: data_out_dof_data.h:611
internal::DataOutImplementation::ParallelDataBase::finite_elements
const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > finite_elements
Definition: data_out_dof_data.h:444
config.h
internal::DataOutImplementation::ParallelDataBase::n_subdivisions
const unsigned int n_subdivisions
Definition: data_out_dof_data.h:435
internal::DataOutImplementation::ParallelDataBase::update_flags
const UpdateFlags update_flags
Definition: data_out_dof_data.h:445
internal
Definition: aligned_vector.h:369
DataOutBase::Patch
Definition: data_out_base.h:248
internal::DataOutRotationImplementation::ParallelData
Definition: data_out_rotation.h:40
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
hp::FECollection
Definition: fe_collection.h:54