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_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 
25 
26 #include <map>
27 
29 
30 template <typename number>
31 class AffineConstraints;
32 template <int dim, int spacedim>
33 class DoFHandler;
34 template <int dim, typename Number>
35 class Function;
36 namespace hp
37 {
38  template <int dim>
39  class QCollection;
40 } // namespace hp
41 
42 namespace VectorTools
43 {
48 
99  template <int dim, int spacedim, typename number>
100  void
102  const Mapping<dim, spacedim> & mapping,
103  const DoFHandler<dim, spacedim> &dof,
104  const std::map<types::boundary_id, const Function<spacedim, number> *>
105  & function_map,
106  std::map<types::global_dof_index, number> &boundary_values,
107  const ComponentMask &component_mask = ComponentMask());
108 
113  template <int dim, int spacedim, typename number>
114  void
117  const DoFHandler<dim, spacedim> & dof,
118  const std::map<types::boundary_id, const Function<spacedim, number> *>
119  & function_map,
120  std::map<types::global_dof_index, number> &boundary_values,
121  const ComponentMask &component_mask = ComponentMask());
122 
132  template <int dim, int spacedim, typename number>
133  void
135  const Mapping<dim, spacedim> & mapping,
136  const DoFHandler<dim, spacedim> & dof,
137  const types::boundary_id boundary_component,
138  const Function<spacedim, number> & boundary_function,
139  std::map<types::global_dof_index, number> &boundary_values,
140  const ComponentMask &component_mask = ComponentMask());
141 
151  template <int dim, int spacedim, typename number>
152  void
154  const DoFHandler<dim, spacedim> & dof,
155  const types::boundary_id boundary_component,
156  const Function<spacedim, number> & boundary_function,
157  std::map<types::global_dof_index, number> &boundary_values,
158  const ComponentMask &component_mask = ComponentMask());
159 
160 
167  template <int dim, int spacedim, typename number>
168  void
170  const DoFHandler<dim, spacedim> &dof,
171  const std::map<types::boundary_id, const Function<spacedim, number> *>
172  & function_map,
173  std::map<types::global_dof_index, number> &boundary_values,
174  const ComponentMask &component_mask = ComponentMask());
175 
176 
238  template <int dim, int spacedim, typename number>
239  void
241  const Mapping<dim, spacedim> & mapping,
242  const DoFHandler<dim, spacedim> &dof,
243  const std::map<types::boundary_id, const Function<spacedim, number> *>
244  & function_map,
245  AffineConstraints<number> &constraints,
246  const ComponentMask & component_mask = ComponentMask());
247 
259  template <int dim, int spacedim, typename number>
260  void
262  const Mapping<dim, spacedim> & mapping,
263  const DoFHandler<dim, spacedim> & dof,
264  const types::boundary_id boundary_component,
265  const Function<spacedim, number> &boundary_function,
266  AffineConstraints<number> & constraints,
267  const ComponentMask & component_mask = ComponentMask());
268 
280  template <int dim, int spacedim, typename number>
281  void
283  const DoFHandler<dim, spacedim> & dof,
284  const types::boundary_id boundary_component,
285  const Function<spacedim, number> &boundary_function,
286  AffineConstraints<number> & constraints,
287  const ComponentMask & component_mask = ComponentMask());
288 
289 
298  template <int dim, int spacedim, typename number>
299  void
301  const DoFHandler<dim, spacedim> &dof,
302  const std::map<types::boundary_id, const Function<spacedim, number> *>
303  & function_map,
304  AffineConstraints<number> &constraints,
305  const ComponentMask & component_mask = ComponentMask());
306 
307 
372  template <int dim, int spacedim, typename number>
373  void
375  const Mapping<dim, spacedim> & mapping,
376  const DoFHandler<dim, spacedim> &dof,
377  const std::map<types::boundary_id, const Function<spacedim, number> *>
378  & boundary_functions,
379  const Quadrature<dim - 1> & q,
380  std::map<types::global_dof_index, number> &boundary_values,
381  std::vector<unsigned int> component_mapping = {});
382 
387  template <int dim, int spacedim, typename number>
388  void
390  const DoFHandler<dim, spacedim> &dof,
391  const std::map<types::boundary_id, const Function<spacedim, number> *>
392  & boundary_function,
393  const Quadrature<dim - 1> & q,
394  std::map<types::global_dof_index, number> &boundary_values,
395  std::vector<unsigned int> component_mapping = {});
396 
400  template <int dim, int spacedim, typename number>
401  void
404  const DoFHandler<dim, spacedim> & dof,
405  const std::map<types::boundary_id, const Function<spacedim, number> *>
406  & boundary_functions,
407  const hp::QCollection<dim - 1> & q,
408  std::map<types::global_dof_index, number> &boundary_values,
409  std::vector<unsigned int> component_mapping = {});
410 
415  template <int dim, int spacedim, typename number>
416  void
418  const DoFHandler<dim, spacedim> &dof,
419  const std::map<types::boundary_id, const Function<spacedim, number> *>
420  & boundary_function,
421  const hp::QCollection<dim - 1> & q,
422  std::map<types::global_dof_index, number> &boundary_values,
423  std::vector<unsigned int> component_mapping = {});
424 
463  template <int dim, int spacedim, typename number>
464  void
466  const Mapping<dim, spacedim> & mapping,
467  const DoFHandler<dim, spacedim> &dof,
468  const std::map<types::boundary_id, const Function<spacedim, number> *>
469  & boundary_functions,
470  const Quadrature<dim - 1> &q,
471  AffineConstraints<number> &constraints,
472  std::vector<unsigned int> component_mapping = {});
473 
480  template <int dim, int spacedim, typename number>
481  void
483  const DoFHandler<dim, spacedim> &dof,
484  const std::map<types::boundary_id, const Function<spacedim, number> *>
485  & boundary_function,
486  const Quadrature<dim - 1> &q,
487  AffineConstraints<number> &constraints,
488  std::vector<unsigned int> component_mapping = {});
489 
490 
548  template <int dim>
549  DEAL_II_DEPRECATED void
551  const DoFHandler<dim, dim> & dof_handler,
552  const unsigned int first_vector_component,
553  const Function<dim, double> &boundary_function,
554  const types::boundary_id boundary_component,
555  AffineConstraints<double> & constraints,
556  const Mapping<dim> & mapping);
557 
569  template <int dim>
570  DEAL_II_DEPRECATED void
572  const DoFHandler<dim, dim> & dof_handler,
573  const unsigned int first_vector_component,
574  const Function<dim, double> & boundary_function,
575  const types::boundary_id boundary_component,
576  AffineConstraints<double> & constraints,
577  const hp::MappingCollection<dim, dim> &mapping_collection =
579 
675  template <int dim, typename number>
676  void
678  const DoFHandler<dim, dim> & dof_handler,
679  const unsigned int first_vector_component,
680  const Function<dim, number> &boundary_function,
681  const types::boundary_id boundary_component,
682  AffineConstraints<number> & constraints,
683  const Mapping<dim> & mapping);
684 
685 
692  template <int dim, typename number>
693  void
695  const DoFHandler<dim, dim> & dof_handler,
696  const unsigned int first_vector_component,
697  const Function<dim, number> & boundary_function,
698  const types::boundary_id boundary_component,
699  AffineConstraints<number> & constraints,
700  const hp::MappingCollection<dim, dim> &mapping_collection =
702 
703 
750  template <int dim>
751  void
753  const DoFHandler<dim, dim> & dof_handler,
754  const unsigned int first_vector_component,
755  const Function<dim, double> &boundary_function,
756  const types::boundary_id boundary_component,
757  AffineConstraints<double> & constraints,
758  const Mapping<dim> & mapping);
759 
768  template <int dim>
769  void
771  const DoFHandler<dim, dim> & dof_handler,
772  const unsigned int first_vector_component,
773  const Function<dim, double> & boundary_function,
774  const types::boundary_id boundary_component,
775  AffineConstraints<double> & constraints,
776  const hp::MappingCollection<dim, dim> &mapping_collection =
778 
779  // @}
780 } // namespace VectorTools
781 
783 
784 #endif // dealii_vector_tools_boundary_h
void project_boundary_values(const DoFHandler< dim, spacedim > &dof, const std::map< types::boundary_id, const Function< spacedim, number > *> &boundary_function, const Quadrature< dim - 1 > &q, AffineConstraints< number > &constraints, std::vector< unsigned int > component_mapping={})
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 hp::MappingCollection< dim, dim > &mapping_collection=hp::StaticMappingQ1< dim >::mapping_collection)
Abstract base class for mapping classes.
Definition: mapping.h:301
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 hp::MappingCollection< dim, dim > &mapping_collection=hp::StaticMappingQ1< dim >::mapping_collection)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
void interpolate_boundary_values(const DoFHandler< dim, spacedim > &dof, const std::map< types::boundary_id, const Function< spacedim, number > *> &function_map, AffineConstraints< number > &constraints, const ComponentMask &component_mask=ComponentMask())
Definition: hp.h:117
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362
#define DEAL_II_DEPRECATED
Definition: config.h:152
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 hp::MappingCollection< dim, dim > &mapping_collection=hp::StaticMappingQ1< dim >::mapping_collection)