Reference documentation for deal.II version 9.6.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\}}\)
Loading...
Searching...
No Matches
vector_tools_integrate_difference.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_integrate_difference_h
16#define dealii_vector_tools_integrate_difference_h
17
18
19#include <deal.II/base/config.h>
20
22
24
25template <int dim, int spacedim>
27class DoFHandler;
28
29template <int dim, typename Number>
30class Function;
31template <int dim, int spacedim>
32class Mapping;
33template <int dim>
34class Quadrature;
35
36template <int dim, int spacedim>
38class Triangulation;
39
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{
146 template <int dim, typename Number, class OutVector, int spacedim>
148 void integrate_difference(const Mapping<dim, spacedim> &mapping,
149 const DoFHandler<dim, spacedim> &dof,
150 const ReadVector<Number> &fe_function,
151 const Function<spacedim, Number> &exact_solution,
152 OutVector &difference,
153 const Quadrature<dim> &q,
154 const NormType &norm,
155 const Function<spacedim, double> *weight = nullptr,
156 const double exponent = 2.);
157
165 template <int dim, typename Number, class OutVector, int spacedim>
166 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
167 void integrate_difference(const DoFHandler<dim, spacedim> &dof,
168 const ReadVector<Number> &fe_function,
169 const Function<spacedim, Number> &exact_solution,
170 OutVector &difference,
171 const Quadrature<dim> &q,
172 const NormType &norm,
173 const Function<spacedim, double> *weight = nullptr,
174 const double exponent = 2.);
175
182 template <int dim, typename Number, class OutVector, int spacedim>
183 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
184 void integrate_difference(const hp::MappingCollection<dim, spacedim> &mapping,
185 const DoFHandler<dim, spacedim> &dof,
186 const ReadVector<Number> &fe_function,
187 const Function<spacedim, Number> &exact_solution,
188 OutVector &difference,
189 const hp::QCollection<dim> &q,
190 const NormType &norm,
191 const Function<spacedim, double> *weight = nullptr,
192 const double exponent = 2.);
193
201 template <int dim, typename Number, class OutVector, int spacedim>
202 DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
203 void integrate_difference(const DoFHandler<dim, spacedim> &dof,
204 const ReadVector<Number> &fe_function,
205 const Function<spacedim, Number> &exact_solution,
206 OutVector &difference,
207 const hp::QCollection<dim> &q,
208 const NormType &norm,
209 const Function<spacedim, double> *weight = nullptr,
210 const double exponent = 2.);
211
239 template <int dim, int spacedim, class InVector>
240 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector>)
241 double compute_global_error(const Triangulation<dim, spacedim> &tria,
242 const InVector &cellwise_error,
243 const NormType &norm,
244 const double exponent = 2.);
245
247} // namespace VectorTools
248
250
251#endif // dealii_vector_tools_integrate_difference_h
Abstract base class for mapping classes.
Definition mapping.h:318
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:177
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504
double compute_global_error(const Triangulation< dim, spacedim > &tria, const InVector &cellwise_error, const NormType &norm, const double exponent=2.)
void integrate_difference(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const ReadVector< Number > &fe_function, const Function< spacedim, Number > &exact_solution, OutVector &difference, const Quadrature< dim > &q, const NormType &norm, const Function< spacedim, double > *weight=nullptr, const double exponent=2.)
Definition hp.h:117