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\}}\)
mapping_q_cache.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2019 - 2020 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_mapping_q_cache_h
17 #define dealii_mapping_q_cache_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <deal.II/grid/tria.h>
25 
26 
28 
29 
30 
33 
34 
45 template <int dim, int spacedim = dim>
46 class MappingQCache : public MappingQGeneric<dim, spacedim>
47 {
48 public:
54  explicit MappingQCache(const unsigned int polynomial_degree);
55 
59  explicit MappingQCache(const MappingQCache<dim, spacedim> &mapping);
60 
65 
69  virtual std::unique_ptr<Mapping<dim, spacedim>>
70  clone() const override;
71 
76  virtual bool
77  preserves_vertex_locations() const override;
78 
85  void
87  const MappingQGeneric<dim, spacedim> &mapping);
88 
110  void
112  const std::function<std::vector<Point<spacedim>>(
114  &compute_points_on_cell);
115 
119  std::size_t
120  memory_consumption() const;
121 
122 protected:
126  virtual std::vector<Point<spacedim>>
128  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
129  const override;
130 
131 private:
137  std::shared_ptr<std::vector<std::vector<std::vector<Point<spacedim>>>>>
139 
144  boost::signals2::connection clear_signal;
145 };
146 
150 
151 #endif
MappingQGeneric< dim, dim >::MappingQCache
friend class MappingQCache
Definition: mapping_q_generic.h:735
MappingQCache::initialize
void initialize(const Triangulation< dim, spacedim > &triangulation, const MappingQGeneric< dim, spacedim > &mapping)
Definition: mapping_q_cache.cc:75
Triangulation
Definition: tria.h:1109
tria.h
MappingQGeneric
Definition: mapping_q_generic.h:135
MappingQCache::clear_signal
boost::signals2::connection clear_signal
Definition: mapping_q_cache.h:144
MappingQCache
Definition: mapping_q_cache.h:46
MappingQCache::memory_consumption
std::size_t memory_consumption() const
Definition: mapping_q_cache.cc:129
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
mapping_q_generic.h
MappingQCache::compute_mapping_support_points
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
Definition: mapping_q_cache.cc:142
MappingQCache::support_point_cache
std::shared_ptr< std::vector< std::vector< std::vector< Point< spacedim > > > > > support_point_cache
Definition: mapping_q_cache.h:138
MappingQCache::clone
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
Definition: mapping_q_cache.cc:57
MappingQCache::preserves_vertex_locations
virtual bool preserves_vertex_locations() const override
Definition: mapping_q_cache.cc:66
MappingQCache::~MappingQCache
~MappingQCache()
Definition: mapping_q_cache.cc:43
Point< spacedim >
config.h
triangulation
const typename ::parallel::distributed::Triangulation< dim, spacedim > * triangulation
Definition: p4est_wrappers.cc:69
MappingQGeneric< dim, dim >::polynomial_degree
const unsigned int polynomial_degree
Definition: mapping_q_generic.h:599
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
TriaIterator
Definition: tria_iterator.h:578