Loading [MathJax]/extensions/TeX/newcommand.js
 deal.II version GIT relicensing-2846-g6fb608615f 2025-03-15 04:10:00+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\}}
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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
21#include <deal.II/base/types.h>
22
23#include <set>
24
26
27template <typename number>
29
30template <int dim, int spacedim>
32class DoFHandler;
33
34template <int dim, typename Number>
35class Function;
36template <int dim, int spacedim>
37class Mapping;
38template <int dim>
39class Quadrature;
40namespace hp
41{
42 template <int dim, int spacedim>
43 class MappingCollection;
44 template <int dim>
45 class QCollection;
46} // namespace hp
47
48
49namespace VectorTools
50{
64 template <int dim, int spacedim, typename VectorType>
67 const Mapping<dim, spacedim> &mapping,
68 const DoFHandler<dim, spacedim> &dof,
69 const Quadrature<dim> &q,
70 const Function<spacedim, typename VectorType::value_type> &rhs,
71 VectorType &rhs_vector,
72 const AffineConstraints<typename VectorType::value_type> &constraints =
73 AffineConstraints<typename VectorType::value_type>());
74
81 template <int dim, int spacedim, typename VectorType>
82 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
84 const DoFHandler<dim, spacedim> &dof,
85 const Quadrature<dim> &q,
86 const Function<spacedim, typename VectorType::value_type> &rhs,
87 VectorType &rhs_vector,
88 const AffineConstraints<typename VectorType::value_type> &constraints =
89 AffineConstraints<typename VectorType::value_type>());
90
96 template <int dim, int spacedim, typename VectorType>
97 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
99 const hp::MappingCollection<dim, spacedim> &mapping,
100 const DoFHandler<dim, spacedim> &dof,
101 const hp::QCollection<dim> &q,
102 const Function<spacedim, typename VectorType::value_type> &rhs,
103 VectorType &rhs_vector,
104 const AffineConstraints<typename VectorType::value_type> &constraints =
105 AffineConstraints<typename VectorType::value_type>());
106
112 template <int dim, int spacedim, typename VectorType>
113 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
115 const DoFHandler<dim, spacedim> &dof,
116 const hp::QCollection<dim> &q,
117 const Function<spacedim, typename VectorType::value_type> &rhs,
118 VectorType &rhs_vector,
119 const AffineConstraints<typename VectorType::value_type> &constraints =
120 AffineConstraints<typename VectorType::value_type>());
121
133 template <int dim, int spacedim, typename VectorType>
134 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
136 const Mapping<dim, spacedim> &mapping,
137 const DoFHandler<dim, spacedim> &dof,
138 const Quadrature<dim - 1> &q,
139 const Function<spacedim, typename VectorType::value_type> &rhs,
140 VectorType &rhs_vector,
141 const std::set<types::boundary_id> &boundary_ids =
142 std::set<types::boundary_id>());
143
153 template <int dim, int spacedim, typename VectorType>
154 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
156 const DoFHandler<dim, spacedim> &dof,
157 const Quadrature<dim - 1> &q,
158 const Function<spacedim, typename VectorType::value_type> &rhs,
159 VectorType &rhs_vector,
160 const std::set<types::boundary_id> &boundary_ids =
161 std::set<types::boundary_id>());
162
171 template <int dim, int spacedim, typename VectorType>
172 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
174 const hp::MappingCollection<dim, spacedim> &mapping,
175 const DoFHandler<dim, spacedim> &dof,
176 const hp::QCollection<dim - 1> &q,
177 const Function<spacedim, typename VectorType::value_type> &rhs,
178 VectorType &rhs_vector,
179 const std::set<types::boundary_id> &boundary_ids =
180 std::set<types::boundary_id>());
181
192 template <int dim, int spacedim, typename VectorType>
193 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<VectorType>)
195 const DoFHandler<dim, spacedim> &dof,
196 const hp::QCollection<dim - 1> &q,
197 const Function<spacedim, typename VectorType::value_type> &rhs,
198 VectorType &rhs_vector,
199 const std::set<types::boundary_id> &boundary_ids =
200 std::set<types::boundary_id>());
202} // namespace VectorTools
203
205
206#endif // dealii_vector_tools_rhs_h
Abstract base class for mapping classes.
Definition mapping.h:320
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:40
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:245
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:41
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