Reference documentation for deal.II version 9.5.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// Copyright (C) 1998 - 2023 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#ifndef dealii_vector_tools_integrate_difference_h
17#define dealii_vector_tools_integrate_difference_h
18
19
20#include <deal.II/base/config.h>
21
23
25
26template <int dim, int spacedim>
28class DoFHandler;
29
30template <int dim, typename Number>
31class Function;
32template <int dim, int spacedim>
33class Mapping;
34template <int dim>
35class Quadrature;
36
37template <int dim, int spacedim>
39class Triangulation;
40
41namespace hp
42{
43 template <int dim, int spacedim>
44 class MappingCollection;
45 template <int dim>
46 class QCollection;
47} // namespace hp
48
49
50namespace VectorTools
51{
147 template <int dim, class InVector, class OutVector, int spacedim>
151 const Mapping<dim, spacedim> & mapping,
152 const DoFHandler<dim, spacedim> & dof,
153 const InVector & fe_function,
154 const Function<spacedim, typename InVector::value_type> &exact_solution,
155 OutVector & difference,
156 const Quadrature<dim> & q,
157 const NormType & norm,
158 const Function<spacedim, double> * weight = nullptr,
159 const double exponent = 2.);
160
168 template <int dim, class InVector, class OutVector, int spacedim>
169 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector> &&
170 concepts::is_writable_dealii_vector_type<OutVector>)
172 const DoFHandler<dim, spacedim> & dof,
173 const InVector & fe_function,
174 const Function<spacedim, typename InVector::value_type> &exact_solution,
175 OutVector & difference,
176 const Quadrature<dim> & q,
177 const NormType & norm,
178 const Function<spacedim, double> * weight = nullptr,
179 const double exponent = 2.);
180
187 template <int dim, class InVector, class OutVector, int spacedim>
188 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector> &&
189 concepts::is_writable_dealii_vector_type<OutVector>)
191 const hp::MappingCollection<dim, spacedim> & mapping,
192 const DoFHandler<dim, spacedim> & dof,
193 const InVector & fe_function,
194 const Function<spacedim, typename InVector::value_type> &exact_solution,
195 OutVector & difference,
196 const hp::QCollection<dim> & q,
197 const NormType & norm,
198 const Function<spacedim, double> * weight = nullptr,
199 const double exponent = 2.);
200
208 template <int dim, class InVector, class OutVector, int spacedim>
209 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector> &&
210 concepts::is_writable_dealii_vector_type<OutVector>)
212 const DoFHandler<dim, spacedim> & dof,
213 const InVector & fe_function,
214 const Function<spacedim, typename InVector::value_type> &exact_solution,
215 OutVector & difference,
216 const hp::QCollection<dim> & q,
217 const NormType & norm,
218 const Function<spacedim, double> * weight = nullptr,
219 const double exponent = 2.);
220
248 template <int dim, int spacedim, class InVector>
249 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<InVector>)
250 double compute_global_error(const Triangulation<dim, spacedim> &tria,
251 const InVector &cellwise_error,
252 const NormType &norm,
253 const double exponent = 2.);
254
256} // namespace VectorTools
257
259
260#endif // dealii_vector_tools_integrate_difference_h
Abstract base class for mapping classes.
Definition mapping.h:317
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:160
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
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 InVector &fe_function, const Function< spacedim, typename InVector::value_type > &exact_solution, OutVector &difference, const Quadrature< dim > &q, const NormType &norm, const Function< spacedim, double > *weight=nullptr, const double exponent=2.)
Definition hp.h:118
const ::Triangulation< dim, spacedim > & tria