Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
vector_tools_interpolate.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 1998 - 2023 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>
29
30template <int dim, int spacedim>
32class DoFHandler;
33
34template <typename number>
35class FullMatrix;
36template <int dim, typename Number>
37class Function;
38template <class MeshType>
40class InterGridMap;
41template <int dim, int spacedim>
42class Mapping;
43
44namespace hp
45{
46 template <int dim, int spacedim>
47 class MappingCollection;
48}
49
50namespace VectorTools
51{
72 template <int dim, int spacedim, typename VectorType>
75 const Mapping<dim, spacedim> & mapping,
76 const DoFHandler<dim, spacedim> & dof,
77 const Function<spacedim, typename VectorType::value_type> &function,
78 VectorType & vec,
79 const ComponentMask &component_mask = ComponentMask());
80
86 template <int dim, int spacedim, typename VectorType>
87 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
89 const hp::MappingCollection<dim, spacedim> & mapping,
90 const DoFHandler<dim, spacedim> & dof,
91 const Function<spacedim, typename VectorType::value_type> &function,
92 VectorType & vec,
93 const ComponentMask &component_mask = ComponentMask());
94
95
102 template <int dim, int spacedim, typename VectorType>
103 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
105 const DoFHandler<dim, spacedim> & dof,
106 const Function<spacedim, typename VectorType::value_type> &function,
107 VectorType & vec,
108 const ComponentMask &component_mask = ComponentMask());
109
131 template <int dim, class InVector, class OutVector, int spacedim>
132 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector> &&
133 concepts::is_writable_dealii_vector_type<OutVector>)
134 void interpolate(const DoFHandler<dim, spacedim> &dof_1,
135 const DoFHandler<dim, spacedim> &dof_2,
136 const FullMatrix<double> & transfer,
137 const InVector & data_1,
138 OutVector & data_2);
139
188 template <int dim, int spacedim, typename VectorType>
189 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
191 const Mapping<dim, spacedim> & mapping,
192 const DoFHandler<dim, spacedim> &dof_handler,
193 const std::map<types::material_id,
194 const Function<spacedim, typename VectorType::value_type> *>
195 & function_map,
196 VectorType & dst,
197 const ComponentMask &component_mask = ComponentMask());
198
225 template <int dim, int spacedim, typename VectorType>
226 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
227 void interpolate_to_different_mesh(const DoFHandler<dim, spacedim> &dof1,
228 const VectorType & u1,
229 const DoFHandler<dim, spacedim> &dof2,
230 VectorType & u2);
231
247 template <int dim, int spacedim, typename VectorType>
248 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
250 const DoFHandler<dim, spacedim> & dof1,
251 const VectorType & u1,
252 const DoFHandler<dim, spacedim> & dof2,
253 const AffineConstraints<typename VectorType::value_type> &constraints,
254 VectorType & u2);
255
265 template <int dim, int spacedim, typename VectorType>
266 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
268 const InterGridMap<DoFHandler<dim, spacedim>> & intergridmap,
269 const VectorType & u1,
270 const AffineConstraints<typename VectorType::value_type> &constraints,
271 VectorType & u2);
272
306 template <int dim, int spacedim, typename VectorType>
307 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
308 void get_position_vector(const DoFHandler<dim, spacedim> &dh,
309 VectorType & vector,
310 const ComponentMask &mask = ComponentMask());
311
322 template <int dim, int spacedim, typename VectorType>
323 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
324 void get_position_vector(const Mapping<dim, spacedim> & mapping,
325 const DoFHandler<dim, spacedim> &dh,
326 VectorType & vector,
327 const ComponentMask &mask = ComponentMask());
328
330} // namespace VectorTools
331
333
334#endif // dealii_vector_tools_interpolate_h
Abstract base class for mapping classes.
Definition mapping.h:317
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:160
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
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
STL namespace.
Definition types.h:33