Reference documentation for deal.II version GIT relicensing-468-ge3ce94fd06 2024-04-23 15:40: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_rhs.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#ifndef dealii_vector_tools_rhs_h
16#define dealii_vector_tools_rhs_h
17
18#include <deal.II/base/config.h>
19
20#include <set>
21
23
24template <typename number>
26
27template <int dim, int spacedim>
29class DoFHandler;
30
31template <int dim, typename Number>
32class Function;
33template <int dim, int spacedim>
34class Mapping;
35template <int dim>
36class Quadrature;
37namespace hp
38{
39 template <int dim, int spacedim>
40 class MappingCollection;
41 template <int dim>
42 class QCollection;
43} // namespace hp
44
45
46namespace VectorTools
47{
61 template <int dim, int spacedim, typename VectorType>
64 const Mapping<dim, spacedim> &mapping,
65 const DoFHandler<dim, spacedim> &dof,
66 const Quadrature<dim> &q,
67 const Function<spacedim, typename VectorType::value_type> &rhs,
68 VectorType &rhs_vector,
69 const AffineConstraints<typename VectorType::value_type> &constraints =
70 AffineConstraints<typename VectorType::value_type>());
71
78 template <int dim, int spacedim, typename VectorType>
79 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
81 const DoFHandler<dim, spacedim> &dof,
82 const Quadrature<dim> &q,
83 const Function<spacedim, typename VectorType::value_type> &rhs,
84 VectorType &rhs_vector,
85 const AffineConstraints<typename VectorType::value_type> &constraints =
86 AffineConstraints<typename VectorType::value_type>());
87
93 template <int dim, int spacedim, typename VectorType>
94 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
96 const hp::MappingCollection<dim, spacedim> &mapping,
97 const DoFHandler<dim, spacedim> &dof,
98 const hp::QCollection<dim> &q,
99 const Function<spacedim, typename VectorType::value_type> &rhs,
100 VectorType &rhs_vector,
101 const AffineConstraints<typename VectorType::value_type> &constraints =
102 AffineConstraints<typename VectorType::value_type>());
103
109 template <int dim, int spacedim, typename VectorType>
110 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
112 const DoFHandler<dim, spacedim> &dof,
113 const hp::QCollection<dim> &q,
114 const Function<spacedim, typename VectorType::value_type> &rhs,
115 VectorType &rhs_vector,
116 const AffineConstraints<typename VectorType::value_type> &constraints =
117 AffineConstraints<typename VectorType::value_type>());
118
130 template <int dim, int spacedim, typename VectorType>
131 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
133 const Mapping<dim, spacedim> &mapping,
134 const DoFHandler<dim, spacedim> &dof,
135 const Quadrature<dim - 1> &q,
136 const Function<spacedim, typename VectorType::value_type> &rhs,
137 VectorType &rhs_vector,
138 const std::set<types::boundary_id> &boundary_ids =
139 std::set<types::boundary_id>());
140
150 template <int dim, int spacedim, typename VectorType>
151 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
153 const DoFHandler<dim, spacedim> &dof,
154 const Quadrature<dim - 1> &q,
155 const Function<spacedim, typename VectorType::value_type> &rhs,
156 VectorType &rhs_vector,
157 const std::set<types::boundary_id> &boundary_ids =
158 std::set<types::boundary_id>());
159
168 template <int dim, int spacedim, typename VectorType>
169 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
171 const hp::MappingCollection<dim, spacedim> &mapping,
172 const DoFHandler<dim, spacedim> &dof,
173 const hp::QCollection<dim - 1> &q,
174 const Function<spacedim, typename VectorType::value_type> &rhs,
175 VectorType &rhs_vector,
176 const std::set<types::boundary_id> &boundary_ids =
177 std::set<types::boundary_id>());
178
189 template <int dim, int spacedim, typename VectorType>
190 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
192 const DoFHandler<dim, spacedim> &dof,
193 const hp::QCollection<dim - 1> &q,
194 const Function<spacedim, typename VectorType::value_type> &rhs,
195 VectorType &rhs_vector,
196 const std::set<types::boundary_id> &boundary_ids =
197 std::set<types::boundary_id>());
199} // namespace VectorTools
200
202
203#endif // dealii_vector_tools_rhs_h
Abstract base class for mapping classes.
Definition mapping.h:318
#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 create_right_hand_side(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim > &q, const Function< spacedim, typename VectorType::value_type > &rhs, VectorType &rhs_vector, const AffineConstraints< typename VectorType::value_type > &constraints=AffineConstraints< typename VectorType::value_type >())
void create_boundary_right_hand_side(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim - 1 > &q, const Function< spacedim, typename VectorType::value_type > &rhs, VectorType &rhs_vector, const std::set< types::boundary_id > &boundary_ids=std::set< types::boundary_id >())
Definition hp.h:117
STL namespace.
Definition types.h:32