Loading [MathJax]/extensions/TeX/newcommand.js
 Reference documentation for deal.II version 9.3.3
\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_mean_value.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 1998 - 2020 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_mean_value_h
17#define dealii_vector_tools_mean_value_h
18
19
20#include <deal.II/base/config.h>
21
23
25
26template <int dim, int spacedim>
27class DoFHandler;
28
29namespace VectorTools
30{
35
85 template <typename VectorType>
86 void
87 subtract_mean_value(VectorType &v, const std::vector<bool> &p_select = {});
88
89
113 template <int dim, typename VectorType, int spacedim>
114 typename VectorType::value_type
116 const DoFHandler<dim, spacedim> &dof,
117 const Quadrature<dim> & quadrature,
118 const VectorType & v,
119 const unsigned int component);
120
125 template <int dim, typename VectorType, int spacedim>
126 typename VectorType::value_type
128 const Quadrature<dim> & quadrature,
129 const VectorType & v,
130 const unsigned int component);
132} // namespace VectorTools
133
135
136#endif // dealii_vector_tools_mean_value_h
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
void subtract_mean_value(VectorType &v, const std::vector< bool > &p_select={})
VectorType::value_type compute_mean_value(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim > &quadrature, const VectorType &v, const unsigned int component)