Loading [MathJax]/extensions/TeX/newcommand.js
 Reference documentation for deal.II version 9.4.1
\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
vector_tools_integrate_difference.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 1998 - 2021 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>
27class DoFHandler;
28template <int dim, typename Number>
29class Function;
30template <int dim, int spacedim>
31class Mapping;
32template <int dim>
33class Quadrature;
34template <int dim, int spacedim>
35class Triangulation;
36namespace hp
37{
38 template <int dim, int spacedim>
39 class MappingCollection;
40 template <int dim>
41 class QCollection;
42} // namespace hp
43
44
45namespace VectorTools
46{
51
139 template <int dim, class InVector, class OutVector, int spacedim>
140 void
142 const Mapping<dim, spacedim> & mapping,
143 const DoFHandler<dim, spacedim> & dof,
144 const InVector & fe_function,
146 OutVector & difference,
147 const Quadrature<dim> & q,
148 const NormType & norm,
149 const Function<spacedim, double> * weight = nullptr,
150 const double exponent = 2.);
151
156 template <int dim, class InVector, class OutVector, int spacedim>
157 void
159 const DoFHandler<dim, spacedim> & dof,
160 const InVector & fe_function,
162 OutVector & difference,
163 const Quadrature<dim> & q,
164 const NormType & norm,
165 const Function<spacedim, double> * weight = nullptr,
166 const double exponent = 2.);
167
171 template <int dim, class InVector, class OutVector, int spacedim>
172 void
175 const DoFHandler<dim, spacedim> & dof,
176 const InVector & fe_function,
178 OutVector & difference,
179 const hp::QCollection<dim> & q,
180 const NormType & norm,
181 const Function<spacedim, double> * weight = nullptr,
182 const double exponent = 2.);
183
188 template <int dim, class InVector, class OutVector, int spacedim>
189 void
191 const DoFHandler<dim, spacedim> & dof,
192 const InVector & fe_function,
194 OutVector & difference,
195 const hp::QCollection<dim> & q,
196 const NormType & norm,
197 const Function<spacedim, double> * weight = nullptr,
198 const double exponent = 2.);
199
225 template <int dim, int spacedim, class InVector>
226 double
228 const InVector & cellwise_error,
229 const NormType & norm,
230 const double exponent = 2.);
231
233} // namespace VectorTools
234
236
237#endif // dealii_vector_tools_integrate_difference_h
Abstract base class for mapping classes.
Definition: mapping.h:311
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
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