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_boundary.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
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>
34class DoFHandler;
35template <int dim, typename Number>
36class Function;
37namespace hp
38{
39 template <int dim>
40 class QCollection;
41} // namespace hp
42
43namespace VectorTools
44{
150 template <int dim, int spacedim, typename number>
151 void
153 const Mapping<dim, spacedim> & mapping,
154 const DoFHandler<dim, spacedim> &dof,
155 const std::map<types::boundary_id, const Function<spacedim, number> *>
156 & function_map,
157 std::map<types::global_dof_index, number> &boundary_values,
158 const ComponentMask &component_mask = ComponentMask());
159
164 template <int dim, int spacedim, typename number>
165 void
168 const DoFHandler<dim, spacedim> & dof,
169 const std::map<types::boundary_id, const Function<spacedim, number> *>
170 & function_map,
171 std::map<types::global_dof_index, number> &boundary_values,
172 const ComponentMask &component_mask = ComponentMask());
173
178 template <int dim, int spacedim, typename number>
179 void
181 const DoFHandler<dim, spacedim> &dof,
182 const std::map<types::boundary_id, const Function<spacedim, number> *>
183 & function_map,
184 std::map<types::global_dof_index, number> &boundary_values,
185 const ComponentMask &component_mask = ComponentMask());
186
193 template <int dim, int spacedim, typename number>
194 void
196 const Mapping<dim, spacedim> & mapping,
197 const DoFHandler<dim, spacedim> & dof,
198 const types::boundary_id boundary_indicator,
199 const Function<spacedim, number> & boundary_function,
200 std::map<types::global_dof_index, number> &boundary_values,
201 const ComponentMask &component_mask = ComponentMask());
202
207 template <int dim, int spacedim, typename number>
208 void
211 const DoFHandler<dim, spacedim> & dof,
212 const types::boundary_id boundary_indicator,
213 const Function<spacedim, number> & boundary_function,
214 std::map<types::global_dof_index, number> & boundary_values,
215 const ComponentMask &component_mask = ComponentMask());
216
224 template <int dim, int spacedim, typename number>
225 void
227 const DoFHandler<dim, spacedim> & dof,
228 const types::boundary_id boundary_indicator,
229 const Function<spacedim, number> & boundary_function,
230 std::map<types::global_dof_index, number> &boundary_values,
231 const ComponentMask &component_mask = ComponentMask());
232
233
260 template <int dim, int spacedim, typename number>
261 void
263 const Mapping<dim, spacedim> & mapping,
264 const DoFHandler<dim, spacedim> &dof,
265 const std::map<types::boundary_id, const Function<spacedim, number> *>
266 & function_map,
267 AffineConstraints<number> &constraints,
268 const ComponentMask & component_mask = ComponentMask());
269
276 template <int dim, int spacedim, typename number>
277 void
280 const DoFHandler<dim, spacedim> & dof,
281 const std::map<types::boundary_id, const Function<spacedim, number> *>
282 & function_map,
283 AffineConstraints<number> &constraints,
284 const ComponentMask & component_mask = ComponentMask());
285
292 template <int dim, int spacedim, typename number>
293 void
295 const DoFHandler<dim, spacedim> &dof,
296 const std::map<types::boundary_id, const Function<spacedim, number> *>
297 & function_map,
298 AffineConstraints<number> &constraints,
299 const ComponentMask & component_mask = ComponentMask());
300
309 template <int dim, int spacedim, typename number>
310 void
312 const Mapping<dim, spacedim> & mapping,
313 const DoFHandler<dim, spacedim> & dof,
314 const types::boundary_id boundary_indicator,
315 const Function<spacedim, number> &boundary_function,
316 AffineConstraints<number> & constraints,
317 const ComponentMask & component_mask = ComponentMask());
318
325 template <int dim, int spacedim, typename number>
326 void
329 const DoFHandler<dim, spacedim> & dof,
330 const types::boundary_id boundary_indicator,
331 const Function<spacedim, number> & boundary_function,
332 AffineConstraints<number> & constraints,
333 const ComponentMask &component_mask = ComponentMask());
334
344 template <int dim, int spacedim, typename number>
345 void
347 const DoFHandler<dim, spacedim> & dof,
348 const types::boundary_id boundary_indicator,
349 const Function<spacedim, number> &boundary_function,
350 AffineConstraints<number> & constraints,
351 const ComponentMask & component_mask = ComponentMask());
352
353
431 template <int dim, int spacedim, typename number>
432 void
434 const Mapping<dim, spacedim> & mapping,
435 const DoFHandler<dim, spacedim> &dof,
436 const std::map<types::boundary_id, const Function<spacedim, number> *>
437 & boundary_functions,
438 const Quadrature<dim - 1> & q,
439 std::map<types::global_dof_index, number> &boundary_values,
440 std::vector<unsigned int> component_mapping = {});
441
446 template <int dim, int spacedim, typename number>
447 void
449 const DoFHandler<dim, spacedim> &dof,
450 const std::map<types::boundary_id, const Function<spacedim, number> *>
451 & boundary_function,
452 const Quadrature<dim - 1> & q,
453 std::map<types::global_dof_index, number> &boundary_values,
454 std::vector<unsigned int> component_mapping = {});
455
459 template <int dim, int spacedim, typename number>
460 void
463 const DoFHandler<dim, spacedim> & dof,
464 const std::map<types::boundary_id, const Function<spacedim, number> *>
465 & boundary_functions,
466 const hp::QCollection<dim - 1> & q,
467 std::map<types::global_dof_index, number> &boundary_values,
468 std::vector<unsigned int> component_mapping = {});
469
474 template <int dim, int spacedim, typename number>
475 void
477 const DoFHandler<dim, spacedim> &dof,
478 const std::map<types::boundary_id, const Function<spacedim, number> *>
479 & boundary_function,
480 const hp::QCollection<dim - 1> & q,
481 std::map<types::global_dof_index, number> &boundary_values,
482 std::vector<unsigned int> component_mapping = {});
483
522 template <int dim, int spacedim, typename number>
523 void
525 const Mapping<dim, spacedim> & mapping,
526 const DoFHandler<dim, spacedim> &dof,
527 const std::map<types::boundary_id, const Function<spacedim, number> *>
528 & boundary_functions,
529 const Quadrature<dim - 1> &q,
530 AffineConstraints<number> &constraints,
531 std::vector<unsigned int> component_mapping = {});
532
539 template <int dim, int spacedim, typename number>
540 void
542 const DoFHandler<dim, spacedim> &dof,
543 const std::map<types::boundary_id, const Function<spacedim, number> *>
544 & boundary_function,
545 const Quadrature<dim - 1> &q,
546 AffineConstraints<number> &constraints,
547 std::vector<unsigned int> component_mapping = {});
548
644 template <int dim, typename number>
645 void
647 const DoFHandler<dim, dim> & dof_handler,
648 const unsigned int first_vector_component,
649 const Function<dim, number> &boundary_function,
650 const types::boundary_id boundary_component,
651 AffineConstraints<number> & constraints,
652 const Mapping<dim> & mapping);
653
654
661 template <int dim, typename number>
662 void
664 const DoFHandler<dim, dim> & dof_handler,
665 const unsigned int first_vector_component,
666 const Function<dim, number> & boundary_function,
667 const types::boundary_id boundary_component,
668 AffineConstraints<number> & constraints,
669 const hp::MappingCollection<dim, dim> &mapping_collection =
671
672
719 template <int dim, typename number, typename number2 = number>
720 void
722 const DoFHandler<dim, dim> & dof_handler,
723 const unsigned int first_vector_component,
724 const Function<dim, number2> &boundary_function,
725 const types::boundary_id boundary_component,
726 AffineConstraints<number> & constraints,
727 const Mapping<dim> & mapping);
728
737 template <int dim, typename number, typename number2 = number>
738 void
740 const DoFHandler<dim, dim> & dof_handler,
741 const unsigned int first_vector_component,
742 const Function<dim, number2> & boundary_function,
743 const types::boundary_id boundary_component,
744 AffineConstraints<number> & constraints,
745 const hp::MappingCollection<dim, dim> &mapping_collection =
747
749} // namespace VectorTools
750
752
753#endif // dealii_vector_tools_boundary_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 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_div_conforming(const DoFHandler< dim, dim > &dof_handler, const unsigned int first_vector_component, const Function< dim, number2 > &boundary_function, const types::boundary_id boundary_component, AffineConstraints< number > &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