Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/point.h>
21 #include <deal.II/base/tensor.h>
22 #include <deal.II/base/subscriptor.h>
23 #include <deal.II/base/quadrature.h>
24 
25 #include <vector>
26 
27 DEAL_II_NAMESPACE_OPEN
28 namespace NonMatching
29 {
30 
73  template <int dim>
75  {
76  public:
77 
82  ImmersedSurfaceQuadrature()=default;
83 
90  const std::vector<Point<dim>> &points,
91  const std::vector<double> &weights,
92  const std::vector<Tensor<1,dim>> &normals);
93 
109  void push_back(const Point<dim> &point,
110  const double weight,
111  const Tensor<1, dim> &normal);
112 
116  const Tensor<1,dim> &normal_vector(const unsigned int i) const;
117 
121  const std::vector<Tensor<1,dim>> &get_normal_vectors() const;
122 
123  protected:
124 
128  std::vector<Tensor<1,dim>> normals;
129  };
130 
131 }
132 DEAL_II_NAMESPACE_CLOSE
133 
134 #endif
std::vector< double > weights
Definition: quadrature.h:258
const Point< dim > & point(const unsigned int i) const
const Tensor< 1, dim > & normal_vector(const unsigned int i) const
const std::vector< Tensor< 1, dim > > & get_normal_vectors() const
void push_back(const Point< dim > &point, const double weight, const Tensor< 1, dim > &normal)
double weight(const unsigned int i) const