Reference documentation for deal.II version 9.2.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\}}\)
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 
22 #include <deal.II/fe/mapping_q1.h>
23 
25 
26 template <int dim, int spacedim>
27 class DoFHandler;
28 
29 namespace 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
VectorTools::subtract_mean_value
void subtract_mean_value(VectorType &v, const std::vector< bool > &p_select={})
mapping_q1.h
VectorType
DoFHandler
Definition: dof_handler.h:205
VectorTools
Definition: vector_tools.h:303
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
config.h
VectorTools::compute_mean_value
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)
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Quadrature
Definition: quadrature.h:85