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_boundary.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 
17 #ifndef dealii_vector_tools_boundary_h
18 #define dealii_vector_tools_boundary_h
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <map>
25 
27 
28 template <typename number>
29 class AffineConstraints;
30 template <int dim, int spacedim>
31 class DoFHandler;
32 template <int dim, typename Number>
33 class Function;
34 namespace hp
35 {
36  template <int dim, int spacedim>
37  class DoFHandler;
38  template <int dim>
39  class QCollection;
40 } // namespace hp
41 
42 namespace VectorTools
43 {
48 
99  template <int dim,
100  int spacedim,
101  template <int, int> class DoFHandlerType,
102  typename number>
103  void
105  const Mapping<dim, spacedim> & mapping,
106  const DoFHandlerType<dim, spacedim> &dof,
107  const std::map<types::boundary_id, const Function<spacedim, number> *>
108  & function_map,
109  std::map<types::global_dof_index, number> &boundary_values,
110  const ComponentMask &component_mask = ComponentMask());
111 
116  template <int dim, int spacedim, typename number>
117  void
120  const hp::DoFHandler<dim, spacedim> & dof,
121  const std::map<types::boundary_id, const Function<spacedim, number> *>
122  & function_map,
123  std::map<types::global_dof_index, number> &boundary_values,
124  const ComponentMask &component_mask = ComponentMask());
125 
135  template <int dim,
136  int spacedim,
137  template <int, int> class DoFHandlerType,
138  typename number>
139  void
141  const Mapping<dim, spacedim> & mapping,
142  const DoFHandlerType<dim, spacedim> & dof,
143  const types::boundary_id boundary_component,
144  const Function<spacedim, number> & boundary_function,
145  std::map<types::global_dof_index, number> &boundary_values,
146  const ComponentMask &component_mask = ComponentMask());
147 
157  template <int dim,
158  int spacedim,
159  template <int, int> class DoFHandlerType,
160  typename number>
161  void
163  const DoFHandlerType<dim, spacedim> & dof,
164  const types::boundary_id boundary_component,
165  const Function<spacedim, number> & boundary_function,
166  std::map<types::global_dof_index, number> &boundary_values,
167  const ComponentMask &component_mask = ComponentMask());
168 
169 
176  template <int dim,
177  int spacedim,
178  template <int, int> class DoFHandlerType,
179  typename number>
180  void
182  const DoFHandlerType<dim, spacedim> &dof,
183  const std::map<types::boundary_id, const Function<spacedim, number> *>
184  & function_map,
185  std::map<types::global_dof_index, number> &boundary_values,
186  const ComponentMask &component_mask = ComponentMask());
187 
188 
250  template <int dim,
251  int spacedim,
252  template <int, int> class DoFHandlerType,
253  typename number>
254  void
256  const Mapping<dim, spacedim> & mapping,
257  const DoFHandlerType<dim, spacedim> &dof,
258  const std::map<types::boundary_id, const Function<spacedim, number> *>
259  & function_map,
260  AffineConstraints<number> &constraints,
261  const ComponentMask & component_mask = ComponentMask());
262 
274  template <int dim,
275  int spacedim,
276  template <int, int> class DoFHandlerType,
277  typename number>
278  void
280  const Mapping<dim, spacedim> & mapping,
281  const DoFHandlerType<dim, spacedim> &dof,
282  const types::boundary_id boundary_component,
283  const Function<spacedim, number> & boundary_function,
284  AffineConstraints<number> & constraints,
285  const ComponentMask & component_mask = ComponentMask());
286 
298  template <int dim,
299  int spacedim,
300  template <int, int> class DoFHandlerType,
301  typename number>
302  void
304  const DoFHandlerType<dim, spacedim> &dof,
305  const types::boundary_id boundary_component,
306  const Function<spacedim, number> & boundary_function,
307  AffineConstraints<number> & constraints,
308  const ComponentMask & component_mask = ComponentMask());
309 
310 
319  template <int dim,
320  int spacedim,
321  template <int, int> class DoFHandlerType,
322  typename number>
323  void
325  const DoFHandlerType<dim, spacedim> &dof,
326  const std::map<types::boundary_id, const Function<spacedim, number> *>
327  & function_map,
328  AffineConstraints<number> &constraints,
329  const ComponentMask & component_mask = ComponentMask());
330 
331 
396  template <int dim, int spacedim, typename number>
397  void
399  const Mapping<dim, spacedim> & mapping,
400  const DoFHandler<dim, spacedim> &dof,
401  const std::map<types::boundary_id, const Function<spacedim, number> *>
402  & boundary_functions,
403  const Quadrature<dim - 1> & q,
404  std::map<types::global_dof_index, number> &boundary_values,
405  std::vector<unsigned int> component_mapping = {});
406 
411  template <int dim, int spacedim, typename number>
412  void
414  const DoFHandler<dim, spacedim> &dof,
415  const std::map<types::boundary_id, const Function<spacedim, number> *>
416  & boundary_function,
417  const Quadrature<dim - 1> & q,
418  std::map<types::global_dof_index, number> &boundary_values,
419  std::vector<unsigned int> component_mapping = {});
420 
424  template <int dim, int spacedim, typename number>
425  void
428  const hp::DoFHandler<dim, spacedim> & dof,
429  const std::map<types::boundary_id, const Function<spacedim, number> *>
430  & boundary_functions,
431  const hp::QCollection<dim - 1> & q,
432  std::map<types::global_dof_index, number> &boundary_values,
433  std::vector<unsigned int> component_mapping = {});
434 
439  template <int dim, int spacedim, typename number>
440  void
443  const std::map<types::boundary_id, const Function<spacedim, number> *>
444  & boundary_function,
445  const hp::QCollection<dim - 1> & q,
446  std::map<types::global_dof_index, number> &boundary_values,
447  std::vector<unsigned int> component_mapping = {});
448 
487  template <int dim, int spacedim, typename number>
488  void
490  const Mapping<dim, spacedim> & mapping,
491  const DoFHandler<dim, spacedim> &dof,
492  const std::map<types::boundary_id, const Function<spacedim, number> *>
493  & boundary_functions,
494  const Quadrature<dim - 1> &q,
495  AffineConstraints<number> &constraints,
496  std::vector<unsigned int> component_mapping = {});
497 
504  template <int dim, int spacedim, typename number>
505  void
507  const DoFHandler<dim, spacedim> &dof,
508  const std::map<types::boundary_id, const Function<spacedim, number> *>
509  & boundary_function,
510  const Quadrature<dim - 1> &q,
511  AffineConstraints<number> &constraints,
512  std::vector<unsigned int> component_mapping = {});
513 
514 
572  template <int dim>
573  DEAL_II_DEPRECATED void
575  const DoFHandler<dim, dim> & dof_handler,
576  const unsigned int first_vector_component,
577  const Function<dim, double> &boundary_function,
578  const types::boundary_id boundary_component,
579  AffineConstraints<double> & constraints,
580  const Mapping<dim> & mapping = StaticMappingQ1<dim>::mapping);
581 
593  template <int dim>
594  DEAL_II_DEPRECATED void
596  const hp::DoFHandler<dim, dim> & dof_handler,
597  const unsigned int first_vector_component,
598  const Function<dim, double> & boundary_function,
599  const types::boundary_id boundary_component,
600  AffineConstraints<double> & constraints,
601  const hp::MappingCollection<dim, dim> &mapping_collection =
603 
699  template <int dim, typename number>
700  void
702  const DoFHandler<dim, dim> & dof_handler,
703  const unsigned int first_vector_component,
704  const Function<dim, number> &boundary_function,
705  const types::boundary_id boundary_component,
706  AffineConstraints<number> & constraints,
707  const Mapping<dim> & mapping = StaticMappingQ1<dim>::mapping);
708 
709 
716  template <int dim, typename number>
717  void
719  const hp::DoFHandler<dim, dim> & dof_handler,
720  const unsigned int first_vector_component,
721  const Function<dim, number> & boundary_function,
722  const types::boundary_id boundary_component,
723  AffineConstraints<number> & constraints,
724  const hp::MappingCollection<dim, dim> &mapping_collection =
726 
727 
774  template <int dim>
775  void
777  const DoFHandler<dim, dim> & dof_handler,
778  const unsigned int first_vector_component,
779  const Function<dim, double> &boundary_function,
780  const types::boundary_id boundary_component,
781  AffineConstraints<double> & constraints,
782  const Mapping<dim> & mapping = StaticMappingQ1<dim>::mapping);
783 
792  template <int dim>
793  void
795  const hp::DoFHandler<dim, dim> & dof_handler,
796  const unsigned int first_vector_component,
797  const Function<dim, double> & boundary_function,
798  const types::boundary_id boundary_component,
799  AffineConstraints<double> & constraints,
800  const hp::MappingCollection<dim, dim> &mapping_collection =
802 
803  // @}
804 } // namespace VectorTools
805 
807 
808 #endif // dealii_vector_tools_boundary_h
VectorTools::project_boundary_values
void project_boundary_values(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const std::map< types::boundary_id, const Function< spacedim, number > * > &boundary_functions, const Quadrature< dim - 1 > &q, std::map< types::global_dof_index, number > &boundary_values, std::vector< unsigned int > component_mapping={})
StaticMappingQ1
Definition: mapping_q1.h:88
hp::QCollection
Definition: q_collection.h:48
ComponentMask
Definition: component_mask.h:83
VectorTools::project_boundary_values_div_conforming
void project_boundary_values_div_conforming(const DoFHandler< dim, dim > &dof_handler, const unsigned int first_vector_component, const Function< dim, double > &boundary_function, const types::boundary_id boundary_component, AffineConstraints< double > &constraints, const Mapping< dim > &mapping=StaticMappingQ1< dim >::mapping)
VectorTools::project_boundary_values_curl_conforming_l2
void project_boundary_values_curl_conforming_l2(const DoFHandler< dim, dim > &dof_handler, const unsigned int first_vector_component, const Function< dim, number > &boundary_function, const types::boundary_id boundary_component, AffineConstraints< number > &constraints, const Mapping< dim > &mapping=StaticMappingQ1< dim >::mapping)
hp::DoFHandler
Definition: dof_handler.h:203
DoFHandler
Definition: dof_handler.h:205
VectorTools
Definition: vector_tools.h:303
hp::StaticMappingQ1
Definition: mapping_collection.h:142
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
VectorTools::interpolate_boundary_values
void interpolate_boundary_values(const Mapping< dim, spacedim > &mapping, const DoFHandlerType< dim, spacedim > &dof, const std::map< types::boundary_id, const Function< spacedim, number > * > &function_map, std::map< types::global_dof_index, number > &boundary_values, const ComponentMask &component_mask=ComponentMask())
VectorTools::project_boundary_values_curl_conforming
void project_boundary_values_curl_conforming(const DoFHandler< dim, dim > &dof_handler, const unsigned int first_vector_component, const Function< dim, double > &boundary_function, const types::boundary_id boundary_component, AffineConstraints< double > &constraints, const Mapping< dim > &mapping=StaticMappingQ1< dim >::mapping)
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
DEAL_II_DEPRECATED
#define DEAL_II_DEPRECATED
Definition: config.h:98
hp::MappingCollection
Definition: mapping_collection.h:56
unsigned int
AffineConstraints
Definition: affine_constraints.h:180
mapping_collection.h
hp
Definition: hp.h:117
config.h
Function
Definition: function.h:151
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Quadrature< dim - 1 >