Reference documentation for deal.II version 8.5.1
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<spacedim> > patch_evaluation_points;
49  };
50  }
51 }
52 
53 
112 template <int dim, typename DoFHandlerType=DoFHandler<dim> >
113 class DataOutFaces : public DataOut_DoFData<DoFHandlerType,DoFHandlerType::dimension-1,
114  DoFHandlerType::dimension>
115 {
116 public:
121  static const unsigned int dimension = DoFHandlerType::dimension;
122 
127  static const unsigned int space_dimension = DoFHandlerType::space_dimension;
128 
133  typedef typename DataOut_DoFData<DoFHandlerType,dimension-1,
135 
140  DataOutFaces (const bool surface_only = true);
141 
156  virtual void
157  build_patches (const unsigned int n_subdivisions = 0);
158 
179  virtual void build_patches (const Mapping<dimension> &mapping,
180  const unsigned int n_subdivisions = 0);
181 
190  typedef typename std::pair<cell_iterator,unsigned int> FaceDescriptor;
191 
192 
200  virtual FaceDescriptor first_face ();
201 
218  virtual FaceDescriptor next_face (const FaceDescriptor &face);
219 
220 private:
224  const bool surface_only;
225 
229  void build_one_patch (const FaceDescriptor *cell_and_face,
232 };
233 
234 
235 DEAL_II_NAMESPACE_CLOSE
236 
237 #endif
static const unsigned int space_dimension
void build_one_patch(const FaceDescriptor *cell_and_face, internal::DataOutFaces::ParallelData< dimension, dimension > &data, DataOutBase::Patch< dimension-1, space_dimension > &patch)
const bool surface_only
static const unsigned int dimension
virtual FaceDescriptor first_face()
UpdateFlags
Abstract base class for mapping classes.
Definition: dof_tools.h:46
DataOut_DoFData< DoFHandlerType, dimension-1, dimension >::cell_iterator cell_iterator
virtual FaceDescriptor next_face(const FaceDescriptor &face)
DataOutFaces(const bool surface_only=true)
std::pair< cell_iterator, unsigned int > FaceDescriptor
virtual void build_patches(const unsigned int n_subdivisions=0)