Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
polynomials_nedelec.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 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 
17 #ifndef dealii_polynomials_nedelec_h
18 #define dealii_polynomials_nedelec_h
19 
20 
21 #include <deal.II/base/config.h>
22 
23 #include <deal.II/base/exceptions.h>
24 #include <deal.II/base/point.h>
25 #include <deal.II/base/polynomial.h>
26 #include <deal.II/base/polynomial_space.h>
27 #include <deal.II/base/tensor.h>
28 #include <deal.II/base/tensor_product_polynomials.h>
29 
30 #include <vector>
31 
32 DEAL_II_NAMESPACE_OPEN
33 
51 template <int dim>
53 {
54 public:
62  PolynomialsNedelec(const unsigned int k);
63 
76  void
77  compute(const Point<dim> & unit_point,
78  std::vector<Tensor<1, dim>> &values,
79  std::vector<Tensor<2, dim>> &grads,
80  std::vector<Tensor<3, dim>> &grad_grads,
81  std::vector<Tensor<4, dim>> &third_derivatives,
82  std::vector<Tensor<5, dim>> &fourth_derivatives) const;
83 
87  unsigned int
88  n() const;
89 
94  unsigned int
95  degree() const;
96 
100  std::string
101  name() const;
102 
108  static unsigned int
109  compute_n_pols(unsigned int degree);
110 
111 private:
115  const unsigned int my_degree;
116 
122 
126  const unsigned int n_pols;
127 
132  static std::vector<std::vector<Polynomials::Polynomial<double>>>
133  create_polynomials(const unsigned int k);
134 };
135 
136 
137 template <int dim>
138 inline unsigned int
140 {
141  return n_pols;
142 }
143 
144 
145 template <int dim>
146 inline unsigned int
148 {
149  return my_degree;
150 }
151 
152 
153 template <int dim>
154 inline std::string
156 {
157  return "Nedelec";
158 }
159 
160 
161 DEAL_II_NAMESPACE_CLOSE
162 
163 #endif
const unsigned int n_pols
unsigned int degree() const
const AnisotropicPolynomials< dim > polynomial_space
const unsigned int my_degree
unsigned int n() const
PolynomialsNedelec(const unsigned int k)
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
static unsigned int compute_n_pols(unsigned int degree)
std::string name() const
static std::vector< std::vector< Polynomials::Polynomial< double > > > create_polynomials(const unsigned int k)