Reference documentation for deal.II version 9.4.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 - 2022 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 #ifndef DOXYGEN
27 // forward declarations
28 template <int dim, int spacedim>
29 class DoFHandler;
30 namespace hp
31 {
32  template <int dim, int spacedim>
33  class MappingCollection;
34 }
35 #endif
36 
37 namespace VectorTools
38 {
43 
93  template <typename VectorType>
94  void
95  subtract_mean_value(VectorType &v, const std::vector<bool> &p_select = {});
96 
97 
121  template <int dim, typename VectorType, int spacedim>
122  typename VectorType::value_type
124  const hp::MappingCollection<dim, spacedim> &mapping_collection,
125  const DoFHandler<dim, spacedim> & dof,
126  const hp::QCollection<dim> & q_collection,
127  const VectorType & v,
128  const unsigned int component);
129 
135  template <int dim, typename VectorType, int spacedim>
136  typename VectorType::value_type
138  const DoFHandler<dim, spacedim> &dof,
139  const Quadrature<dim> & quadrature,
140  const VectorType & v,
141  const unsigned int component);
142 
147  template <int dim, typename VectorType, int spacedim>
148  typename VectorType::value_type
150  const Quadrature<dim> & quadrature,
151  const VectorType & v,
152  const unsigned int component);
154 } // namespace VectorTools
155 
157 
158 #endif // dealii_vector_tools_mean_value_h
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
VectorType::value_type compute_mean_value(const hp::MappingCollection< dim, spacedim > &mapping_collection, const DoFHandler< dim, spacedim > &dof, const hp::QCollection< dim > &q_collection, const VectorType &v, const unsigned int component)
void subtract_mean_value(VectorType &v, const std::vector< bool > &p_select={})
Definition: hp.h:118