Reference documentation for deal.II version 9.3.3
polynomials_raviart_thomas.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2004 - 2020 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
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_raviart_thomas_h
17#define dealii_polynomials_raviart_thomas_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>
29
30#include <vector>
31
33
47template <int dim>
49{
50public:
59 PolynomialsRaviartThomas(const unsigned int k);
60
73 void
74 evaluate(const Point<dim> & unit_point,
75 std::vector<Tensor<1, dim>> &values,
78 std::vector<Tensor<4, dim>> &third_derivatives,
79 std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
80
84 std::string
85 name() const override;
86
92 static unsigned int
93 n_polynomials(const unsigned int degree);
94
98 virtual std::unique_ptr<TensorPolynomialsBase<dim>>
99 clone() const override;
100
101private:
107
112 static std::vector<std::vector<Polynomials::Polynomial<double>>>
113 create_polynomials(const unsigned int k);
114};
115
116
117template <int dim>
118inline std::string
120{
121 return "RaviartThomas";
122}
123
124
126
127#endif
Definition: point.h:111
static unsigned int n_polynomials(const unsigned int degree)
PolynomialsRaviartThomas(const unsigned int k)
static std::vector< std::vector< Polynomials::Polynomial< double > > > create_polynomials(const unsigned int k)
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
std::string name() const override
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
const AnisotropicPolynomials< dim > polynomial_space
unsigned int degree() const
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403