Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/exceptions.h>
22 #include <deal.II/base/tensor.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/table.h>
27 
28 #include <vector>
29 
30 DEAL_II_NAMESPACE_OPEN
31 
82 template <int dim>
84 {
85 public:
90  PolynomialsRT_Bubbles (const unsigned int k);
91 
104  void compute (const Point<dim> &unit_point,
105  std::vector<Tensor<1,dim> > &values,
106  std::vector<Tensor<2,dim> > &grads,
107  std::vector<Tensor<3,dim> > &grad_grads,
108  std::vector<Tensor<4,dim> > &third_derivatives,
109  std::vector<Tensor<5,dim> > &fourth_derivatives) const;
110 
114  unsigned int n () const;
115 
120  unsigned int degree () const;
121 
125  std::string name () const;
126 
132  static unsigned int compute_n_pols(const unsigned int degree);
133 
134 private:
138  const unsigned int my_degree;
139 
144 
149  std::vector<Polynomials::Polynomial<double>> monomials;
150 
154  unsigned int n_pols;
155 };
156 
157 
158 
159 template <int dim>
160 inline unsigned int
162 {
163  return n_pols;
164 }
165 
166 
167 
168 template <int dim>
169 inline unsigned int
171 {
172  return my_degree;
173 }
174 
175 
176 
177 template <int dim>
178 inline std::string
180 {
181  return "RT_bubbles";
182 }
183 
184 
185 DEAL_II_NAMESPACE_CLOSE
186 
187 #endif
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
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
std::vector< Polynomials::Polynomial< double > > monomials