Reference documentation for deal.II version 8.4.2
data_out_faces.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_faces_h
17 #define dealii__data_out_faces_h
18 
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/numerics/data_out.h>
22 
23 #include <string>
24 #include <vector>
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 
29 namespace internal
30 {
31  namespace DataOutFaces
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 std::vector<unsigned int> &n_postprocessor_outputs,
44  const Mapping<dim,spacedim> &mapping,
45  const std::vector<std_cxx11::shared_ptr<::hp::FECollection<dim,spacedim> > > &finite_elements,
46  const UpdateFlags update_flags);
47 
48  std::vector<Point<dim> > patch_normals;
49  std::vector<Point<spacedim> > patch_evaluation_points;
50  };
51  }
52 }
53 
54 
113 template <int dim, typename DoFHandlerType=DoFHandler<dim> >
114 class DataOutFaces : public DataOut_DoFData<DoFHandlerType,DoFHandlerType::dimension-1,
115  DoFHandlerType::dimension>
116 {
117 public:
122  static const unsigned int dimension = DoFHandlerType::dimension;
123 
128  static const unsigned int space_dimension = DoFHandlerType::space_dimension;
129 
134  typedef typename DataOut_DoFData<DoFHandlerType,dimension-1,
136 
141  DataOutFaces (const bool surface_only = true);
142 
157  virtual void
158  build_patches (const unsigned int n_subdivisions = 0);
159 
180  virtual void build_patches (const Mapping<dimension> &mapping,
181  const unsigned int n_subdivisions = 0);
182 
191  typedef typename std::pair<cell_iterator,unsigned int> FaceDescriptor;
192 
193 
201  virtual FaceDescriptor first_face ();
202 
219  virtual FaceDescriptor next_face (const FaceDescriptor &face);
220 
221 private:
225  const bool surface_only;
226 
230  void build_one_patch (const FaceDescriptor *cell_and_face,
233 };
234 
235 
236 DEAL_II_NAMESPACE_CLOSE
237 
238 #endif
const bool surface_only
UpdateFlags
Abstract base class for mapping classes.
Definition: dof_tools.h:52
DataOut_DoFData< DoFHandlerType, dimension-1, dimension >::cell_iterator cell_iterator
std::pair< cell_iterator, unsigned int > FaceDescriptor