Reference documentation for deal.II version GIT relicensing-35-gbe64a602e6 2024-03-01 21:20:01+00:00
\(\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// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2020 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_vector_tools_boundary_h
17#define dealii_vector_tools_boundary_h
18
19#include <deal.II/base/config.h>
20
22
24
25#include <map>
26
28
29template <typename number>
31template <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{
177 template <int dim, int spacedim, typename number>
178 void
180 const Mapping<dim, spacedim> &mapping,
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 = {});
186
191 template <int dim, int spacedim, typename number>
192 void
195 const DoFHandler<dim, spacedim> &dof,
196 const std::map<types::boundary_id, const Function<spacedim, number> *>
197 &function_map,
198 std::map<types::global_dof_index, number> &boundary_values,
199 const ComponentMask &component_mask = {});
200
205 template <int dim, int spacedim, typename number>
206 void
208 const DoFHandler<dim, spacedim> &dof,
209 const std::map<types::boundary_id, const Function<spacedim, number> *>
210 &function_map,
211 std::map<types::global_dof_index, number> &boundary_values,
212 const ComponentMask &component_mask = {});
213
220 template <int dim, int spacedim, typename number>
221 void
223 const Mapping<dim, spacedim> &mapping,
224 const DoFHandler<dim, spacedim> &dof,
225 const types::boundary_id boundary_indicator,
226 const Function<spacedim, number> &boundary_function,
227 std::map<types::global_dof_index, number> &boundary_values,
228 const ComponentMask &component_mask = {});
229
234 template <int dim, int spacedim, typename number>
235 void
238 const DoFHandler<dim, spacedim> &dof,
239 const types::boundary_id boundary_indicator,
240 const Function<spacedim, number> &boundary_function,
241 std::map<types::global_dof_index, number> &boundary_values,
242 const ComponentMask &component_mask = {});
243
251 template <int dim, int spacedim, typename number>
252 void
254 const DoFHandler<dim, spacedim> &dof,
255 const types::boundary_id boundary_indicator,
256 const Function<spacedim, number> &boundary_function,
257 std::map<types::global_dof_index, number> &boundary_values,
258 const ComponentMask &component_mask = {});
259
260
287 template <int dim, int spacedim, typename number>
288 void
290 const Mapping<dim, spacedim> &mapping,
291 const DoFHandler<dim, spacedim> &dof,
292 const std::map<types::boundary_id, const Function<spacedim, number> *>
293 &function_map,
294 AffineConstraints<number> &constraints,
295 const ComponentMask &component_mask = {});
296
303 template <int dim, int spacedim, typename number>
304 void
307 const DoFHandler<dim, spacedim> &dof,
308 const std::map<types::boundary_id, const Function<spacedim, number> *>
309 &function_map,
310 AffineConstraints<number> &constraints,
311 const ComponentMask &component_mask = {});
312
319 template <int dim, int spacedim, typename number>
320 void
322 const DoFHandler<dim, spacedim> &dof,
323 const std::map<types::boundary_id, const Function<spacedim, number> *>
324 &function_map,
325 AffineConstraints<number> &constraints,
326 const ComponentMask &component_mask = {});
327
336 template <int dim, int spacedim, typename number>
337 void
339 const Mapping<dim, spacedim> &mapping,
340 const DoFHandler<dim, spacedim> &dof,
341 const types::boundary_id boundary_indicator,
342 const Function<spacedim, number> &boundary_function,
343 AffineConstraints<number> &constraints,
344 const ComponentMask &component_mask = {});
345
352 template <int dim, int spacedim, typename number>
353 void
356 const DoFHandler<dim, spacedim> &dof,
357 const types::boundary_id boundary_indicator,
358 const Function<spacedim, number> &boundary_function,
359 AffineConstraints<number> &constraints,
360 const ComponentMask &component_mask = {});
361
371 template <int dim, int spacedim, typename number>
372 void
374 const DoFHandler<dim, spacedim> &dof,
375 const types::boundary_id boundary_indicator,
376 const Function<spacedim, number> &boundary_function,
377 AffineConstraints<number> &constraints,
378 const ComponentMask &component_mask = {});
379
380
458 template <int dim, int spacedim, typename number>
459 void
461 const Mapping<dim, spacedim> &mapping,
462 const DoFHandler<dim, spacedim> &dof,
463 const std::map<types::boundary_id, const Function<spacedim, number> *>
464 &boundary_functions,
465 const Quadrature<dim - 1> &q,
466 std::map<types::global_dof_index, number> &boundary_values,
467 std::vector<unsigned int> component_mapping = {});
468
473 template <int dim, int spacedim, typename number>
474 void
476 const DoFHandler<dim, spacedim> &dof,
477 const std::map<types::boundary_id, const Function<spacedim, number> *>
478 &boundary_function,
479 const Quadrature<dim - 1> &q,
480 std::map<types::global_dof_index, number> &boundary_values,
481 std::vector<unsigned int> component_mapping = {});
482
486 template <int dim, int spacedim, typename number>
487 void
490 const DoFHandler<dim, spacedim> &dof,
491 const std::map<types::boundary_id, const Function<spacedim, number> *>
492 &boundary_functions,
494 std::map<types::global_dof_index, number> &boundary_values,
495 std::vector<unsigned int> component_mapping = {});
496
501 template <int dim, int spacedim, typename number>
502 void
504 const DoFHandler<dim, spacedim> &dof,
505 const std::map<types::boundary_id, const Function<spacedim, number> *>
506 &boundary_function,
508 std::map<types::global_dof_index, number> &boundary_values,
509 std::vector<unsigned int> component_mapping = {});
510
549 template <int dim, int spacedim, typename number>
550 void
552 const Mapping<dim, spacedim> &mapping,
553 const DoFHandler<dim, spacedim> &dof,
554 const std::map<types::boundary_id, const Function<spacedim, number> *>
555 &boundary_functions,
556 const Quadrature<dim - 1> &q,
557 AffineConstraints<number> &constraints,
558 std::vector<unsigned int> component_mapping = {});
559
566 template <int dim, int spacedim, typename number>
567 void
569 const DoFHandler<dim, spacedim> &dof,
570 const std::map<types::boundary_id, const Function<spacedim, number> *>
571 &boundary_function,
572 const Quadrature<dim - 1> &q,
573 AffineConstraints<number> &constraints,
574 std::vector<unsigned int> component_mapping = {});
575
671 template <int dim, typename number>
672 void
674 const DoFHandler<dim, dim> &dof_handler,
675 const unsigned int first_vector_component,
676 const Function<dim, number> &boundary_function,
677 const types::boundary_id boundary_component,
678 AffineConstraints<number> &constraints,
679 const Mapping<dim> &mapping);
680
681
688 template <int dim, typename number>
689 void
691 const DoFHandler<dim, dim> &dof_handler,
692 const unsigned int first_vector_component,
693 const Function<dim, number> &boundary_function,
694 const types::boundary_id boundary_component,
695 AffineConstraints<number> &constraints,
696 const hp::MappingCollection<dim, dim> &mapping_collection =
698
699
746 template <int dim, typename number, typename number2 = number>
747 void
749 const DoFHandler<dim, dim> &dof_handler,
750 const unsigned int first_vector_component,
751 const Function<dim, number2> &boundary_function,
752 const types::boundary_id boundary_component,
753 AffineConstraints<number> &constraints,
754 const Mapping<dim> &mapping);
755
764 template <int dim, typename number, typename number2 = number>
765 void
767 const DoFHandler<dim, dim> &dof_handler,
768 const unsigned int first_vector_component,
769 const Function<dim, number2> &boundary_function,
770 const types::boundary_id boundary_component,
771 AffineConstraints<number> &constraints,
772 const hp::MappingCollection<dim, dim> &mapping_collection =
774
776} // namespace VectorTools
777
779
780#endif // dealii_vector_tools_boundary_h
Abstract base class for mapping classes.
Definition mapping.h:316
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:177
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
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 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={})
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={})
Definition hp.h:117