Reference documentation for deal.II version Git bcb2fdb641 2020-09-17 14:58:24 -0400
\(\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\}}\)
vector_tools_interpolate.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 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_vector_tools_interpolate_h
17 #define dealii_vector_tools_interpolate_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <map>
24 
26 
27 template <typename number>
28 class AffineConstraints;
29 template <int dim, int spacedim>
30 class DoFHandler;
31 template <typename number>
32 class FullMatrix;
33 template <int dim, typename Number>
34 class Function;
35 template <class MeshType>
36 class InterGridMap;
37 template <int dim, int spacedim>
38 class Mapping;
39 
40 namespace hp
41 {
42  template <int dim, int spacedim>
43  class MappingCollection;
44 }
45 
46 namespace VectorTools
47 {
52 
66  template <int dim, int spacedim, typename VectorType>
67  void
69  const Mapping<dim, spacedim> & mapping,
70  const DoFHandler<dim, spacedim> & dof,
72  VectorType & vec,
73  const ComponentMask &component_mask = ComponentMask());
74 
78  template <int dim, int spacedim, typename VectorType>
79  void
82  const DoFHandler<dim, spacedim> & dof,
84  VectorType & vec,
85  const ComponentMask &component_mask = ComponentMask());
86 
87 
92  template <int dim, int spacedim, typename VectorType>
93  void
95  const DoFHandler<dim, spacedim> & dof,
97  VectorType & vec,
98  const ComponentMask &component_mask = ComponentMask());
99 
118  template <int dim, class InVector, class OutVector, int spacedim>
119  void
121  const DoFHandler<dim, spacedim> &dof_2,
122  const FullMatrix<double> & transfer,
123  const InVector & data_1,
124  OutVector & data_2);
125 
172  template <int dim, int spacedim, typename VectorType>
173  void
175  const Mapping<dim, spacedim> & mapping,
176  const DoFHandler<dim, spacedim> &dof_handler,
177  const std::map<types::material_id,
179  & function_map,
180  VectorType & dst,
181  const ComponentMask &component_mask = ComponentMask());
182 
207  template <int dim, int spacedim, typename VectorType>
208  void
210  const VectorType & u1,
211  const DoFHandler<dim, spacedim> &dof2,
212  VectorType & u2);
213 
227  template <int dim, int spacedim, typename VectorType>
228  void
230  const DoFHandler<dim, spacedim> & dof1,
231  const VectorType & u1,
232  const DoFHandler<dim, spacedim> & dof2,
234  VectorType & u2);
235 
243  template <int dim, int spacedim, typename VectorType>
244  void
246  const InterGridMap<DoFHandler<dim, spacedim>> & intergridmap,
247  const VectorType & u1,
249  VectorType & u2);
250 
252 
281  template <int dim, int spacedim, typename VectorType>
282  void
284  VectorType & vector,
285  const ComponentMask & mask = ComponentMask());
286 
288 } // namespace VectorTools
289 
291 
292 #endif // dealii_vector_tools_interpolate_h
void interpolate(const DoFHandler< dim, spacedim > &dof_1, const DoFHandler< dim, spacedim > &dof_2, const FullMatrix< double > &transfer, const InVector &data_1, OutVector &data_2)
void get_position_vector(const DoFHandler< dim, spacedim > &dh, VectorType &vector, const ComponentMask &mask=ComponentMask())
void interpolate_to_different_mesh(const InterGridMap< DoFHandler< dim, spacedim >> &intergridmap, const VectorType &u1, const AffineConstraints< typename VectorType::value_type > &constraints, VectorType &u2)
Abstract base class for mapping classes.
Definition: mapping.h:301
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
Definition: hp.h:117
void interpolate_based_on_material_id(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof_handler, const std::map< types::material_id, const Function< spacedim, typename VectorType::value_type > *> &function_map, VectorType &dst, const ComponentMask &component_mask=ComponentMask())
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362