Reference documentation for deal.II version 9.4.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\}}\)
vector_tools_constraints.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2022 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_constraints_h
18 #define dealii_vector_tools_constraints_h
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <map>
25 #include <set>
26 
28 
29 template <typename number>
30 class AffineConstraints;
31 template <int dim, int spacedim>
32 struct StaticMappingQ1;
33 template <int dim, typename Number>
34 class Function;
35 template <int dim, int spacedim>
36 class Mapping;
37 
38 
39 namespace VectorTools
40 {
45 
273  template <int dim, int spacedim>
274  void
276  const DoFHandler<dim, spacedim> & dof_handler,
277  const unsigned int first_vector_component,
278  const std::set<types::boundary_id> &boundary_ids,
279  const std::map<types::boundary_id, const Function<spacedim, double> *>
280  & function_map,
281  AffineConstraints<double> & constraints,
282  const Mapping<dim, spacedim> &mapping =
283  (ReferenceCells::get_hypercube<dim>()
284 #ifndef _MSC_VER
285  .template get_default_linear_mapping<dim, spacedim>()
286 #else
287  .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
288 #endif
289  ));
290 
303  template <int dim, int spacedim>
304  void
306  const DoFHandler<dim, spacedim> & dof_handler,
307  const unsigned int first_vector_component,
308  const std::set<types::boundary_id> &boundary_ids,
309  AffineConstraints<double> & constraints,
310  const Mapping<dim, spacedim> & mapping =
311  (ReferenceCells::get_hypercube<dim>()
312 #ifndef _MSC_VER
313  .template get_default_linear_mapping<dim, spacedim>()
314 #else
315  .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
316 #endif
317  ));
318 
335  template <int dim, int spacedim>
336  void
338  const DoFHandler<dim, spacedim> & dof_handler,
339  const unsigned int first_vector_component,
340  const std::set<types::boundary_id> &boundary_ids,
341  const std::map<types::boundary_id, const Function<spacedim, double> *>
342  & function_map,
343  AffineConstraints<double> & constraints,
344  const Mapping<dim, spacedim> &mapping =
345  (ReferenceCells::get_hypercube<dim>()
346 #ifndef _MSC_VER
347  .template get_default_linear_mapping<dim, spacedim>()
348 #else
349  .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
350 #endif
351  ));
352 
361  template <int dim, int spacedim>
362  void
364  const DoFHandler<dim, spacedim> & dof_handler,
365  const unsigned int first_vector_component,
366  const std::set<types::boundary_id> &boundary_ids,
367  AffineConstraints<double> & constraints,
368  const Mapping<dim, spacedim> & mapping =
369  (ReferenceCells::get_hypercube<dim>()
370 #ifndef _MSC_VER
371  .template get_default_linear_mapping<dim, spacedim>()
372 #else
373  .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
374 #endif
375  ));
376 
378 } // namespace VectorTools
379 
381 
382 #endif // dealii_vector_tools_constraints_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 compute_no_normal_flux_constraints(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int first_vector_component, const std::set< types::boundary_id > &boundary_ids, AffineConstraints< double > &constraints, const Mapping< dim, spacedim > &mapping=(ReferenceCells::get_hypercube< dim >() .template get_default_linear_mapping< dim, spacedim >()))
void compute_normal_flux_constraints(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int first_vector_component, const std::set< types::boundary_id > &boundary_ids, AffineConstraints< double > &constraints, const Mapping< dim, spacedim > &mapping=(ReferenceCells::get_hypercube< dim >() .template get_default_linear_mapping< dim, spacedim >()))
void compute_nonzero_normal_flux_constraints(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int first_vector_component, const std::set< types::boundary_id > &boundary_ids, const std::map< types::boundary_id, const Function< spacedim, double > * > &function_map, AffineConstraints< double > &constraints, const Mapping< dim, spacedim > &mapping=(ReferenceCells::get_hypercube< dim >() .template get_default_linear_mapping< dim, spacedim >()))
void compute_nonzero_tangential_flux_constraints(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int first_vector_component, const std::set< types::boundary_id > &boundary_ids, const std::map< types::boundary_id, const Function< spacedim, double > * > &function_map, AffineConstraints< double > &constraints, const Mapping< dim, spacedim > &mapping=(ReferenceCells::get_hypercube< dim >() .template get_default_linear_mapping< dim, spacedim >()))
unsigned int boundary_id
Definition: types.h:129