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\}}\)
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 VectorTools
41 {
46 
66  template <int dim,
67  int spacedim,
68  typename VectorType,
69  template <int, int> class DoFHandlerType>
70  void
72  const Mapping<dim, spacedim> & mapping,
73  const DoFHandlerType<dim, spacedim> & dof,
75  VectorType & vec,
76  const ComponentMask &component_mask = ComponentMask());
77 
82  template <int dim,
83  int spacedim,
84  typename VectorType,
85  template <int, int> class DoFHandlerType>
86  void
88  const DoFHandlerType<dim, spacedim> & dof,
90  VectorType & vec,
91  const ComponentMask &component_mask = ComponentMask());
92 
111  template <int dim, class InVector, class OutVector, int spacedim>
112  void
114  const DoFHandler<dim, spacedim> &dof_2,
115  const FullMatrix<double> & transfer,
116  const InVector & data_1,
117  OutVector & data_2);
118 
167  template <int dim,
168  int spacedim,
169  typename VectorType,
170  template <int, int> class DoFHandlerType>
171  void
173  const Mapping<dim, spacedim> & mapping,
174  const DoFHandlerType<dim, spacedim> &dof_handler,
175  const std::map<types::material_id,
177  & function_map,
178  VectorType & dst,
179  const ComponentMask &component_mask = ComponentMask());
180 
205  template <int dim,
206  int spacedim,
207  typename VectorType,
208  template <int, int> class DoFHandlerType>
209  void
210  interpolate_to_different_mesh(const DoFHandlerType<dim, spacedim> &dof1,
211  const VectorType & u1,
212  const DoFHandlerType<dim, spacedim> &dof2,
213  VectorType & u2);
214 
228  template <int dim,
229  int spacedim,
230  typename VectorType,
231  template <int, int> class DoFHandlerType>
232  void
234  const DoFHandlerType<dim, spacedim> & dof1,
235  const VectorType & u1,
236  const DoFHandlerType<dim, spacedim> & dof2,
238  VectorType & u2);
239 
247  template <int dim,
248  int spacedim,
249  typename VectorType,
250  template <int, int> class DoFHandlerType>
251  void
253  const InterGridMap<DoFHandlerType<dim, spacedim>> & intergridmap,
254  const VectorType & u1,
256  VectorType & u2);
257 
259 
290  template <int dim,
291  int spacedim,
292  template <int, int> class DoFHandlerType,
293  typename VectorType>
294  void
295  get_position_vector(const DoFHandlerType<dim, spacedim> &dh,
296  VectorType & vector,
297  const ComponentMask &mask = ComponentMask());
298 
300 } // namespace VectorTools
301 
303 
304 #endif // dealii_vector_tools_interpolate_h
VectorType
ComponentMask
Definition: component_mask.h:83
DoFHandler
Definition: dof_handler.h:205
VectorTools
Definition: vector_tools.h:303
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
InterGridMap
Definition: intergrid_map.h:115
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
VectorTools::interpolate_based_on_material_id
void interpolate_based_on_material_id(const Mapping< dim, spacedim > &mapping, const DoFHandlerType< 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())
component_mask.h
unsigned int
AffineConstraints
Definition: affine_constraints.h:180
VectorTools::interpolate_to_different_mesh
void interpolate_to_different_mesh(const DoFHandlerType< dim, spacedim > &dof1, const VectorType &u1, const DoFHandlerType< dim, spacedim > &dof2, VectorType &u2)
VectorTools::get_position_vector
void get_position_vector(const DoFHandlerType< dim, spacedim > &dh, VectorType &vector, const ComponentMask &mask=ComponentMask())
config.h
FullMatrix
Definition: full_matrix.h:71
VectorTools::interpolate
void interpolate(const Mapping< dim, spacedim > &mapping, const DoFHandlerType< dim, spacedim > &dof, const Function< spacedim, typename VectorType::value_type > &function, VectorType &vec, const ComponentMask &component_mask=ComponentMask())
Function
Definition: function.h:151
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359