Reference documentation for deal.II version 9.2.0
\(\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\}}\)
polynomials_rt_bubbles.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 - 2019 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 
23 #include <deal.II/base/point.h>
26 #include <deal.II/base/tensor.h>
28 
29 #include <vector>
30 
32 
87 template <int dim>
89 {
90 public:
95  PolynomialsRT_Bubbles(const unsigned int k);
96 
109  void
110  evaluate(const Point<dim> & unit_point,
111  std::vector<Tensor<1, dim>> &values,
112  std::vector<Tensor<2, dim>> &grads,
113  std::vector<Tensor<3, dim>> &grad_grads,
114  std::vector<Tensor<4, dim>> &third_derivatives,
115  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
116 
120  std::string
121  name() const override;
122 
128  static unsigned int
129  n_polynomials(const unsigned int degree);
130 
134  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
135  clone() const override;
136 
137 private:
142 
147  std::vector<Polynomials::Polynomial<double>> monomials;
148 };
149 
150 
151 template <int dim>
152 inline std::string
154 {
155  return "RT_bubbles";
156 }
157 
158 
160 
161 #endif
PolynomialsRT_Bubbles
Definition: polynomials_rt_bubbles.h:88
polynomial.h
PolynomialsRT_Bubbles::name
std::string name() const override
Definition: polynomials_rt_bubbles.h:153
TensorPolynomialsBase::degree
unsigned int degree() const
Definition: tensor_polynomials_base.h:166
PolynomialsRT_Bubbles::raviart_thomas_space
const PolynomialsRaviartThomas< dim > raviart_thomas_space
Definition: polynomials_rt_bubbles.h:141
PolynomialsRaviartThomas
Definition: polynomials_raviart_thomas.h:50
tensor_polynomials_base.h
tensor.h
PolynomialsRT_Bubbles::monomials
std::vector< Polynomials::Polynomial< double > > monomials
Definition: polynomials_rt_bubbles.h:147
Tensor< 1, dim >
PolynomialsRT_Bubbles::n_polynomials
static unsigned int n_polynomials(const unsigned int degree)
Definition: polynomials_rt_bubbles.cc:838
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
polynomials_raviart_thomas.h
exceptions.h
TensorPolynomialsBase
Definition: tensor_polynomials_base.h:62
PolynomialsRT_Bubbles::evaluate
void evaluate(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 override
Definition: polynomials_rt_bubbles.cc:45
PolynomialsRT_Bubbles::clone
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
Definition: polynomials_rt_bubbles.cc:850
Point< dim >
PolynomialsRT_Bubbles::PolynomialsRT_Bubbles
PolynomialsRT_Bubbles(const unsigned int k)
Definition: polynomials_rt_bubbles.cc:30
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
point.h