Reference documentation for deal.II version 8.5.1
polynomials_nedelec.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2016 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 
17 #ifndef dealii__polynomials_nedelec_h
18 #define dealii__polynomials_nedelec_h
19 
20 
21 #include <deal.II/base/config.h>
22 #include <deal.II/base/exceptions.h>
23 #include <deal.II/base/tensor.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_product_polynomials.h>
28 #include <deal.II/base/table.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 compute (const Point<dim> &unit_point, std::vector<Tensor<1, dim> > &values,
77  std::vector<Tensor<2, dim> > &grads,
78  std::vector<Tensor<3,dim> > &grad_grads,
79  std::vector<Tensor<4,dim> > &third_derivatives,
80  std::vector<Tensor<5,dim> > &fourth_derivatives) const;
81 
85  unsigned int n () const;
86 
91  unsigned int degree () const;
92 
96  std::string name () const;
97 
103  static unsigned int compute_n_pols (unsigned int degree);
104 
105 private:
109  const unsigned int my_degree;
110 
116 
120  const unsigned int n_pols;
121 
126  static std::vector<std::vector< Polynomials::Polynomial< double > > > create_polynomials (const unsigned int k);
127 };
128 
129 
130 template <int dim>
131 inline unsigned int PolynomialsNedelec<dim>::n () const
132 {
133  return n_pols;
134 }
135 
136 
137 template <int dim>
138 inline unsigned int PolynomialsNedelec<dim>::degree () const
139 {
140  return my_degree;
141 }
142 
143 
144 template <int dim>
145 inline std::string
147 {
148  return "Nedelec";
149 }
150 
151 
152 DEAL_II_NAMESPACE_CLOSE
153 
154 #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)