Reference documentation for deal.II version Git 7026f387cc 2019-10-15 14:19:01 -0400
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
data_out_faces.h
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_faces_h
17 #define dealii_data_out_faces_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/numerics/data_out.h>
23 
24 #include <string>
25 #include <vector>
26 
27 DEAL_II_NAMESPACE_OPEN
28 
29 
30 namespace internal
31 {
32  namespace DataOutFacesImplementation
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 std::vector<unsigned int> &n_postprocessor_outputs,
46  const Mapping<dim, spacedim> & mapping,
47  const std::vector<
48  std::shared_ptr<::hp::FECollection<dim, spacedim>>>
49  & finite_elements,
50  const UpdateFlags update_flags);
51 
52  std::vector<Point<spacedim>> patch_evaluation_points;
53  };
54  } // namespace DataOutFacesImplementation
55 } // namespace internal
56 
57 
116 template <int dim, typename DoFHandlerType = DoFHandler<dim>>
117 class DataOutFaces : public DataOut_DoFData<DoFHandlerType,
118  DoFHandlerType::dimension - 1,
119  DoFHandlerType::dimension>
120 {
121 public:
126  static const unsigned int dimension = DoFHandlerType::dimension;
127 
132  static const unsigned int space_dimension = DoFHandlerType::space_dimension;
133 
138  using cell_iterator = typename DataOut_DoFData<DoFHandlerType,
139  dimension - 1,
140  dimension>::cell_iterator;
141 
146  DataOutFaces(const bool surface_only = true);
147 
162  virtual void
163  build_patches(const unsigned int n_subdivisions = 0);
164 
185  virtual void
186  build_patches(const Mapping<dimension> &mapping,
187  const unsigned int n_subdivisions = 0);
188 
197  using FaceDescriptor = typename std::pair<cell_iterator, unsigned int>;
198 
199 
210  virtual FaceDescriptor
211  first_face();
212 
234  virtual FaceDescriptor
235  next_face(const FaceDescriptor &face);
236 
237 private:
241  const bool surface_only;
242 
246  void
247  build_one_patch(
248  const FaceDescriptor *cell_and_face,
250  & data,
252 };
253 
254 
255 DEAL_II_NAMESPACE_CLOSE
256 
257 #endif
const bool surface_only
UpdateFlags
Abstract base class for mapping classes.
Definition: mapping.h:302
typename std::pair< cell_iterator, unsigned int > FaceDescriptor
typename DataOut_DoFData< DoFHandlerType, dimension - 1, dimension >::cell_iterator cell_iterator