Reference documentation for deal.II version GIT e22cb6a53e 2023-09-21 14:00:02+00:00
\(\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\}}\)
immersed_surface_quadrature.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2023 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>
24 #include <deal.II/base/tensor.h>
25 
26 #include <vector>
27 
29 namespace NonMatching
30 {
106  template <int dim, int spacedim = dim>
108  {
109  public:
115 
121  ImmersedSurfaceQuadrature(const std::vector<Point<dim>> &points,
122  const std::vector<double> &weights,
123  const std::vector<Tensor<1, spacedim>> &normals);
124 
128  void
129  clear();
130 
146  void
147  push_back(const Point<dim> &point,
148  const double weight,
149  const Tensor<1, spacedim> &normal);
150 
154  const Tensor<1, spacedim> &
155  normal_vector(const unsigned int i) const;
156 
160  const std::vector<Tensor<1, spacedim>> &
161  get_normal_vectors() const;
162 
163  protected:
167  std::vector<Tensor<1, spacedim>> normals;
168  };
169 
170 } // namespace NonMatching
172 
173 #endif
std::vector< Tensor< 1, spacedim > > normals
void push_back(const Point< dim > &point, const double weight, const Tensor< 1, spacedim > &normal)
const Tensor< 1, spacedim > & normal_vector(const unsigned int i) const
const std::vector< Tensor< 1, spacedim > > & get_normal_vectors() const
Definition: point.h:112
double weight(const unsigned int i) const
const Point< dim > & point(const unsigned int i) const
std::vector< double > weights
Definition: quadrature.h:345
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478