Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
polynomials_rt_bubbles.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 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_polynomials_rt_bubbles_h
17 #define dealii_polynomials_rt_bubbles_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/exceptions.h>
23 #include <deal.II/base/point.h>
24 #include <deal.II/base/polynomial.h>
25 #include <deal.II/base/polynomials_raviart_thomas.h>
26 #include <deal.II/base/tensor.h>
27 
28 #include <vector>
29 
30 DEAL_II_NAMESPACE_OPEN
31 
86 template <int dim>
88 {
89 public:
94  PolynomialsRT_Bubbles(const unsigned int k);
95 
108  void
109  compute(const Point<dim> & unit_point,
110  std::vector<Tensor<1, dim>> &values,
111  std::vector<Tensor<2, dim>> &grads,
112  std::vector<Tensor<3, dim>> &grad_grads,
113  std::vector<Tensor<4, dim>> &third_derivatives,
114  std::vector<Tensor<5, dim>> &fourth_derivatives) const;
115 
119  unsigned int
120  n() const;
121 
126  unsigned int
127  degree() const;
128 
132  std::string
133  name() const;
134 
140  static unsigned int
141  compute_n_pols(const unsigned int degree);
142 
143 private:
147  const unsigned int my_degree;
148 
153 
158  std::vector<Polynomials::Polynomial<double>> monomials;
159 
163  unsigned int n_pols;
164 };
165 
166 
167 
168 template <int dim>
169 inline unsigned int
171 {
172  return n_pols;
173 }
174 
175 
176 
177 template <int dim>
178 inline unsigned int
180 {
181  return my_degree;
182 }
183 
184 
185 
186 template <int dim>
187 inline std::string
189 {
190  return "RT_bubbles";
191 }
192 
193 
194 DEAL_II_NAMESPACE_CLOSE
195 
196 #endif
void compute(const Point< dim > &unit_point, std::vector< Tensor< 1, dim >> &values, std::vector< Tensor< 2, dim >> &grads, std::vector< Tensor< 3, dim >> &grad_grads, std::vector< Tensor< 4, dim >> &third_derivatives, std::vector< Tensor< 5, dim >> &fourth_derivatives) const
const unsigned int my_degree
static unsigned int compute_n_pols(const unsigned int degree)
PolynomialsRT_Bubbles(const unsigned int k)
unsigned int degree() const
const PolynomialsRaviartThomas< dim > raviart_thomas_space
std::vector< Polynomials::Polynomial< double > > monomials