Reference documentation for deal.II version 9.3.3
\(\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 - 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
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
30template <typename number>
32template <int dim, int spacedim>
33class DoFHandler;
34template <int dim, typename Number>
35class Function;
36namespace hp
37{
38 template <int dim>
39 class QCollection;
40} // namespace hp
41
42namespace VectorTools
43{
48
138 template <int dim, int spacedim, typename number>
139 void
141 const Mapping<dim, spacedim> & mapping,
142 const DoFHandler<dim, spacedim> &dof,
143 const std::map<types::boundary_id, const Function<spacedim, number> *>
144 & function_map,
145 std::map<types::global_dof_index, number> &boundary_values,
146 const ComponentMask &component_mask = ComponentMask());
147
152 template <int dim, int spacedim, typename number>
153 void
156 const DoFHandler<dim, spacedim> & dof,
157 const std::map<types::boundary_id, const Function<spacedim, number> *>
158 & function_map,
159 std::map<types::global_dof_index, number> &boundary_values,
160 const ComponentMask &component_mask = ComponentMask());
161
171 template <int dim, int spacedim, typename number>
172 void
174 const Mapping<dim, spacedim> & mapping,
175 const DoFHandler<dim, spacedim> & dof,
176 const types::boundary_id boundary_component,
177 const Function<spacedim, number> & boundary_function,
178 std::map<types::global_dof_index, number> &boundary_values,
179 const ComponentMask &component_mask = ComponentMask());
180
185 template <int dim, int spacedim, typename number>
186 void
189 const DoFHandler<dim, spacedim> & dof,
190 const types::boundary_id boundary_component,
191 const Function<spacedim, number> & boundary_function,
192 std::map<types::global_dof_index, number> & boundary_values,
193 const ComponentMask &component_mask = ComponentMask());
194
204 template <int dim, int spacedim, typename number>
205 void
207 const DoFHandler<dim, spacedim> & dof,
208 const types::boundary_id boundary_component,
209 const Function<spacedim, number> & boundary_function,
210 std::map<types::global_dof_index, number> &boundary_values,
211 const ComponentMask &component_mask = ComponentMask());
212
213
220 template <int dim, int spacedim, typename number>
221 void
223 const DoFHandler<dim, spacedim> &dof,
224 const std::map<types::boundary_id, const Function<spacedim, number> *>
225 & function_map,
226 std::map<types::global_dof_index, number> &boundary_values,
227 const ComponentMask &component_mask = ComponentMask());
228
229
258 template <int dim, int spacedim, typename number>
259 void
261 const Mapping<dim, spacedim> & mapping,
262 const DoFHandler<dim, spacedim> &dof,
263 const std::map<types::boundary_id, const Function<spacedim, number> *>
264 & function_map,
265 AffineConstraints<number> &constraints,
266 const ComponentMask & component_mask = ComponentMask());
267
272 template <int dim, int spacedim, typename number>
273 void
276 const DoFHandler<dim, spacedim> & dof,
277 const std::map<types::boundary_id, const Function<spacedim, number> *>
278 & function_map,
279 AffineConstraints<number> &constraints,
280 const ComponentMask & component_mask = ComponentMask());
281
293 template <int dim, int spacedim, typename number>
294 void
296 const Mapping<dim, spacedim> & mapping,
297 const DoFHandler<dim, spacedim> & dof,
298 const types::boundary_id boundary_component,
299 const Function<spacedim, number> &boundary_function,
300 AffineConstraints<number> & constraints,
301 const ComponentMask & component_mask = ComponentMask());
302
307 template <int dim, int spacedim, typename number>
308 void
311 const DoFHandler<dim, spacedim> & dof,
312 const types::boundary_id boundary_component,
313 const Function<spacedim, number> & boundary_function,
314 AffineConstraints<number> & constraints,
315 const ComponentMask &component_mask = ComponentMask());
316
328 template <int dim, int spacedim, typename number>
329 void
331 const DoFHandler<dim, spacedim> & dof,
332 const types::boundary_id boundary_component,
333 const Function<spacedim, number> &boundary_function,
334 AffineConstraints<number> & constraints,
335 const ComponentMask & component_mask = ComponentMask());
336
337
346 template <int dim, int spacedim, typename number>
347 void
349 const DoFHandler<dim, spacedim> &dof,
350 const std::map<types::boundary_id, const Function<spacedim, number> *>
351 & function_map,
352 AffineConstraints<number> &constraints,
353 const ComponentMask & component_mask = ComponentMask());
354
355
433 template <int dim, int spacedim, typename number>
434 void
436 const Mapping<dim, spacedim> & mapping,
437 const DoFHandler<dim, spacedim> &dof,
438 const std::map<types::boundary_id, const Function<spacedim, number> *>
439 & boundary_functions,
440 const Quadrature<dim - 1> & q,
441 std::map<types::global_dof_index, number> &boundary_values,
442 std::vector<unsigned int> component_mapping = {});
443
448 template <int dim, int spacedim, typename number>
449 void
451 const DoFHandler<dim, spacedim> &dof,
452 const std::map<types::boundary_id, const Function<spacedim, number> *>
453 & boundary_function,
454 const Quadrature<dim - 1> & q,
455 std::map<types::global_dof_index, number> &boundary_values,
456 std::vector<unsigned int> component_mapping = {});
457
461 template <int dim, int spacedim, typename number>
462 void
465 const DoFHandler<dim, spacedim> & dof,
466 const std::map<types::boundary_id, const Function<spacedim, number> *>
467 & boundary_functions,
468 const hp::QCollection<dim - 1> & q,
469 std::map<types::global_dof_index, number> &boundary_values,
470 std::vector<unsigned int> component_mapping = {});
471
476 template <int dim, int spacedim, typename number>
477 void
479 const DoFHandler<dim, spacedim> &dof,
480 const std::map<types::boundary_id, const Function<spacedim, number> *>
481 & boundary_function,
482 const hp::QCollection<dim - 1> & q,
483 std::map<types::global_dof_index, number> &boundary_values,
484 std::vector<unsigned int> component_mapping = {});
485
524 template <int dim, int spacedim, typename number>
525 void
527 const Mapping<dim, spacedim> & mapping,
528 const DoFHandler<dim, spacedim> &dof,
529 const std::map<types::boundary_id, const Function<spacedim, number> *>
530 & boundary_functions,
531 const Quadrature<dim - 1> &q,
532 AffineConstraints<number> &constraints,
533 std::vector<unsigned int> component_mapping = {});
534
541 template <int dim, int spacedim, typename number>
542 void
544 const DoFHandler<dim, spacedim> &dof,
545 const std::map<types::boundary_id, const Function<spacedim, number> *>
546 & boundary_function,
547 const Quadrature<dim - 1> &q,
548 AffineConstraints<number> &constraints,
549 std::vector<unsigned int> component_mapping = {});
550
551
609 template <int dim>
612 const DoFHandler<dim, dim> & dof_handler,
613 const unsigned int first_vector_component,
614 const Function<dim, double> &boundary_function,
615 const types::boundary_id boundary_component,
616 AffineConstraints<double> & constraints,
617 const Mapping<dim> & mapping);
618
630 template <int dim>
633 const DoFHandler<dim, dim> & dof_handler,
634 const unsigned int first_vector_component,
635 const Function<dim, double> & boundary_function,
636 const types::boundary_id boundary_component,
637 AffineConstraints<double> & constraints,
638 const hp::MappingCollection<dim, dim> &mapping_collection =
640
736 template <int dim, typename number>
737 void
739 const DoFHandler<dim, dim> & dof_handler,
740 const unsigned int first_vector_component,
741 const Function<dim, number> &boundary_function,
742 const types::boundary_id boundary_component,
743 AffineConstraints<number> & constraints,
744 const Mapping<dim> & mapping);
745
746
753 template <int dim, typename number>
754 void
756 const DoFHandler<dim, dim> & dof_handler,
757 const unsigned int first_vector_component,
758 const Function<dim, number> & boundary_function,
759 const types::boundary_id boundary_component,
760 AffineConstraints<number> & constraints,
761 const hp::MappingCollection<dim, dim> &mapping_collection =
763
764
811 template <int dim>
812 void
814 const DoFHandler<dim, dim> & dof_handler,
815 const unsigned int first_vector_component,
816 const Function<dim, double> &boundary_function,
817 const types::boundary_id boundary_component,
818 AffineConstraints<double> & constraints,
819 const Mapping<dim> & mapping);
820
829 template <int dim>
830 void
832 const DoFHandler<dim, dim> & dof_handler,
833 const unsigned int first_vector_component,
834 const Function<dim, double> & boundary_function,
835 const types::boundary_id boundary_component,
836 AffineConstraints<double> & constraints,
837 const hp::MappingCollection<dim, dim> &mapping_collection =
839
840 // @}
841} // namespace VectorTools
842
844
845#endif // dealii_vector_tools_boundary_h
#define DEAL_II_DEPRECATED
Definition: config.h:162
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
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)
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)
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)
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={})
void interpolate_boundary_values(const Mapping< dim, spacedim > &mapping, const DoFHandler< 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())
Definition: hp.h:118
unsigned int boundary_id
Definition: types.h:129