Reference documentation for deal.II version GIT relicensing-239-g45f302f98c 2024-03-29 07:10:02+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_constraints.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_constraints_h
17#define dealii_vector_tools_constraints_h
18
19#include <deal.II/base/config.h>
20
22
24
25#include <map>
26#include <set>
27
29
30template <typename number>
32template <int dim, int spacedim>
33struct StaticMappingQ1;
34template <int dim, typename Number>
35class Function;
36template <int dim, int spacedim>
37class Mapping;
38
39
40namespace VectorTools
41{
284 template <int dim, int spacedim>
285 void
287 const DoFHandler<dim, spacedim> &dof_handler,
288 const unsigned int first_vector_component,
289 const std::set<types::boundary_id> &boundary_ids,
290 const std::map<types::boundary_id, const Function<spacedim, double> *>
291 &function_map,
292 AffineConstraints<double> &constraints,
293 const Mapping<dim, spacedim> &mapping =
294 (ReferenceCells::get_hypercube<dim>()
295#ifndef _MSC_VER
296 .template get_default_linear_mapping<dim, spacedim>()
297#else
298 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
299#endif
300 ));
301
311 template <int dim, int spacedim>
312 void
314 const DoFHandler<dim, spacedim> &dof_handler,
315 const unsigned int first_vector_component,
316 const std::set<types::boundary_id> &boundary_ids,
317 const std::map<types::boundary_id, const Function<spacedim, double> *>
318 &function_map,
319 AffineConstraints<double> &constraints,
320 const Mapping<dim, spacedim> &mapping =
321 (ReferenceCells::get_hypercube<dim>()
322#ifndef _MSC_VER
323 .template get_default_linear_mapping<dim, spacedim>()
324#else
325 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
326#endif
327 ),
328 const IndexSet &refinement_edge_indices = IndexSet(),
329 const unsigned int level = numbers::invalid_unsigned_int);
330
346 template <int dim, int spacedim>
347 void
349 const DoFHandler<dim, spacedim> &dof_handler,
350 const unsigned int first_vector_component,
351 const std::set<types::boundary_id> &boundary_ids,
352 AffineConstraints<double> &constraints,
353 const Mapping<dim, spacedim> &mapping =
354 (ReferenceCells::get_hypercube<dim>()
355#ifndef _MSC_VER
356 .template get_default_linear_mapping<dim, spacedim>()
357#else
358 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
359#endif
360 ));
361
371 template <int dim, int spacedim>
372 void
374 const DoFHandler<dim, spacedim> &dof_handler,
375 const unsigned int first_vector_component,
376 const std::set<types::boundary_id> &boundary_ids,
377 AffineConstraints<double> &constraints,
378 const Mapping<dim, spacedim> &mapping =
379 (ReferenceCells::get_hypercube<dim>()
380#ifndef _MSC_VER
381 .template get_default_linear_mapping<dim, spacedim>()
382#else
383 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
384#endif
385 ),
386 const IndexSet &refinement_edge_indices = IndexSet(),
387 const unsigned int level = numbers::invalid_unsigned_int);
388
412 template <int dim, int spacedim>
413 void
415 const DoFHandler<dim, spacedim> &dof_handler,
416 const unsigned int first_vector_component,
417 const std::set<types::boundary_id> &boundary_ids,
418 const std::map<types::boundary_id, const Function<spacedim, double> *>
419 &function_map,
420 AffineConstraints<double> &constraints,
421 const Mapping<dim, spacedim> &mapping =
422 (ReferenceCells::get_hypercube<dim>()
423#ifndef _MSC_VER
424 .template get_default_linear_mapping<dim, spacedim>()
425#else
426 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
427#endif
428 ));
429
438 template <int dim, int spacedim>
439 void
441 const DoFHandler<dim, spacedim> &dof_handler,
442 const unsigned int first_vector_component,
443 const std::set<types::boundary_id> &boundary_ids,
444 AffineConstraints<double> &constraints,
445 const Mapping<dim, spacedim> &mapping =
446 (ReferenceCells::get_hypercube<dim>()
447#ifndef _MSC_VER
448 .template get_default_linear_mapping<dim, spacedim>()
449#else
450 .ReferenceCell::get_default_linear_mapping<dim, spacedim>()
451#endif
452 ));
453
455} // namespace VectorTools
456
458
459#endif // dealii_vector_tools_constraints_h
Abstract base class for mapping classes.
Definition mapping.h:316
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
unsigned int level
Definition grid_out.cc:4616
void compute_no_normal_flux_constraints_on_level(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 >()), const IndexSet &refinement_edge_indices=IndexSet(), const unsigned int level=numbers::invalid_unsigned_int)
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_nonzero_normal_flux_constraints_on_level(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 >()), const IndexSet &refinement_edge_indices=IndexSet(), const unsigned int level=numbers::invalid_unsigned_int)
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 >()))
static const unsigned int invalid_unsigned_int
Definition types.h:220