Reference documentation for deal.II version 9.1.0-pre
immersed_surface_quadrature.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2017 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_non_matching_immersed_surface_quadrature
17 #define dealii_non_matching_immersed_surface_quadrature
18 
19 #include <deal.II/base/config.h>
20 
21 #include <deal.II/base/point.h>
22 #include <deal.II/base/quadrature.h>
23 #include <deal.II/base/subscriptor.h>
24 #include <deal.II/base/tensor.h>
25 
26 #include <vector>
27 
28 DEAL_II_NAMESPACE_OPEN
29 namespace NonMatching
30 {
74  template <int dim>
76  {
77  public:
82  ImmersedSurfaceQuadrature() = default;
83 
89  ImmersedSurfaceQuadrature(const std::vector<Point<dim>> & points,
90  const std::vector<double> & weights,
91  const std::vector<Tensor<1, dim>> &normals);
92 
108  void
109  push_back(const Point<dim> & point,
110  const double weight,
111  const Tensor<1, dim> &normal);
112 
116  const Tensor<1, dim> &
117  normal_vector(const unsigned int i) const;
118 
122  const std::vector<Tensor<1, dim>> &
123  get_normal_vectors() const;
124 
125  protected:
129  std::vector<Tensor<1, dim>> normals;
130  };
131 
132 } // namespace NonMatching
133 DEAL_II_NAMESPACE_CLOSE
134 
135 #endif
std::vector< double > weights
Definition: quadrature.h:273
const std::vector< Tensor< 1, dim > > & get_normal_vectors() const
const Point< dim > & point(const unsigned int i) const
double weight(const unsigned int i) const
const Tensor< 1, dim > & normal_vector(const unsigned int i) const
void push_back(const Point< dim > &point, const double weight, const Tensor< 1, dim > &normal)