Reference documentation for deal.II version 9.4.1
\(\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\}}\)
Loading...
Searching...
No Matches
vector_tools_interpolate.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 1998 - 2021 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
27template <typename number>
29template <int dim, int spacedim>
30class DoFHandler;
31template <typename number>
32class FullMatrix;
33template <int dim, typename Number>
34class Function;
35template <class MeshType>
36class InterGridMap;
37template <int dim, int spacedim>
38class Mapping;
39
40namespace hp
41{
42 template <int dim, int spacedim>
43 class MappingCollection;
44}
45
46namespace 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
282 template <int dim, int spacedim, typename VectorType>
283 void
285 VectorType & vector,
286 const ComponentMask & mask = ComponentMask());
287
296 template <int dim, int spacedim, typename VectorType>
297 void
300 VectorType & vector,
301 const ComponentMask & mask = ComponentMask());
302
304} // namespace VectorTools
305
307
308#endif // dealii_vector_tools_interpolate_h
Abstract base class for mapping classes.
Definition: mapping.h:311
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
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())
void interpolate(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Function< spacedim, typename VectorType::value_type > &function, VectorType &vec, const ComponentMask &component_mask=ComponentMask())
void interpolate_to_different_mesh(const DoFHandler< dim, spacedim > &dof1, const VectorType &u1, const DoFHandler< dim, spacedim > &dof2, VectorType &u2)
void get_position_vector(const DoFHandler< dim, spacedim > &dh, VectorType &vector, const ComponentMask &mask=ComponentMask())
Definition: hp.h:118