Reference documentation for deal.II version 8.5.1
data_out_rotation.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2016 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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/numerics/data_out_dof_data.h>
22 
23 #include <string>
24 #include <vector>
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 
29 namespace internal
30 {
31  namespace DataOutRotation
32  {
38  template <int dim, int spacedim>
39  struct ParallelData : public internal::DataOut::ParallelDataBase<dim,spacedim>
40  {
41  ParallelData (const unsigned int n_datasets,
42  const unsigned int n_subdivisions,
43  const unsigned int n_patches_per_circle,
44  const std::vector<unsigned int> &n_postprocessor_outputs,
45  const Mapping<dim,spacedim> &mapping,
46  const std::vector<std_cxx11::shared_ptr<::hp::FECollection<dim,spacedim> > > &finite_elements,
47  const UpdateFlags update_flags);
48 
49  const unsigned int n_patches_per_circle;
50 
51  std::vector<Point<spacedim> > patch_evaluation_points;
52  };
53  }
54 }
55 
56 
57 
118 template <int dim, typename DoFHandlerType=DoFHandler<dim> >
119 class DataOutRotation : public DataOut_DoFData<DoFHandlerType,DoFHandlerType::dimension+1>
120 {
121 public:
126  static const unsigned int dimension = DoFHandlerType::dimension;
127 
132  static const unsigned int space_dimension = DoFHandlerType::space_dimension;
133 
139 
157  virtual void build_patches (const unsigned int n_patches_per_circle,
158  const unsigned int n_subdivisions = 0);
159 
166  virtual cell_iterator first_cell ();
167 
179  virtual cell_iterator next_cell (const cell_iterator &cell);
180 
185  double,
186  << "You are attempting to use this class on a triangulation "
187  "in which some vertices have a negative radial coordinate "
188  "value of "
189  << arg1
190  << ". If you rotate such a triangulation around an "
191  "axis, you will get (dim+1)-dimensional meshes "
192  "that are not likely what you hoped to see.");
193 
194 private:
200  void
201  build_one_patch (const cell_iterator *cell,
203  std::vector<DataOutBase::Patch<dimension+1,space_dimension+1> > &my_patches);
204 };
205 
206 
207 DEAL_II_NAMESPACE_CLOSE
208 
209 #endif
virtual cell_iterator next_cell(const cell_iterator &cell)
Triangulation< DoFHandlerType::dimension, DoFHandlerType::space_dimension >::cell_iterator cell_iterator
void build_one_patch(const cell_iterator *cell, internal::DataOutRotation::ParallelData< dimension, space_dimension > &data, std::vector< DataOutBase::Patch< dimension+1, space_dimension+1 > > &my_patches)
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:564
UpdateFlags
Abstract base class for mapping classes.
Definition: dof_tools.h:46
static const unsigned int space_dimension
virtual cell_iterator first_cell()
virtual void build_patches(const unsigned int n_patches_per_circle, const unsigned int n_subdivisions=0)
static const unsigned int dimension
DataOut_DoFData< DoFHandlerType, dimension+1 >::cell_iterator cell_iterator
static ::ExceptionBase & ExcRadialVariableHasNegativeValues(double arg1)