Reference documentation for deal.II version 9.4.1
\(\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 - 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
646 template <int dim, typename number>
647 void
649 const DoFHandler<dim, dim> & dof_handler,
650 const unsigned int first_vector_component,
651 const Function<dim, number> &boundary_function,
652 const types::boundary_id boundary_component,
653 AffineConstraints<number> & constraints,
654 const Mapping<dim> & mapping);
655
656
663 template <int dim, typename number>
664 void
666 const DoFHandler<dim, dim> & dof_handler,
667 const unsigned int first_vector_component,
668 const Function<dim, number> & boundary_function,
669 const types::boundary_id boundary_component,
670 AffineConstraints<number> & constraints,
671 const hp::MappingCollection<dim, dim> &mapping_collection =
673
674
721 template <int dim, typename number, typename number2 = number>
722 void
724 const DoFHandler<dim, dim> & dof_handler,
725 const unsigned int first_vector_component,
726 const Function<dim, number2> &boundary_function,
727 const types::boundary_id boundary_component,
728 AffineConstraints<number> & constraints,
729 const Mapping<dim> & mapping);
730
739 template <int dim, typename number, typename number2 = number>
740 void
742 const DoFHandler<dim, dim> & dof_handler,
743 const unsigned int first_vector_component,
744 const Function<dim, number2> & boundary_function,
745 const types::boundary_id boundary_component,
746 AffineConstraints<number> & constraints,
747 const hp::MappingCollection<dim, dim> &mapping_collection =
749
750 // @}
751} // namespace VectorTools
752
754
755#endif // dealii_vector_tools_boundary_h
Abstract base class for mapping classes.
Definition: mapping.h:311
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
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
unsigned int boundary_id
Definition: types.h:129