Reference documentation for deal.II version 8.4.2
fe_bernstein.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2015 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__fe_bernstein_h
17 #define dealii__fe_bernstein_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/tensor_product_polynomials.h>
21 #include <deal.II/fe/fe_q_base.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
25 
28 
64 template <int dim, int spacedim=dim>
65 class FE_Bernstein : public FE_Q_Base<TensorProductPolynomials<dim>,dim,spacedim>
66 {
67 public:
71  FE_Bernstein (const unsigned int p);
72 
82  virtual void
84  FullMatrix<double> &matrix) const;
85 
95  virtual void
97  const unsigned int subface,
98  FullMatrix<double> &matrix) const;
99 
104  virtual bool hp_constraints_are_implemented () const;
105 
121  virtual
122  std::vector<std::pair<unsigned int, unsigned int> >
124 
129  virtual
130  std::vector<std::pair<unsigned int, unsigned int> >
131  hp_line_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
132 
137  virtual
138  std::vector<std::pair<unsigned int, unsigned int> >
139  hp_quad_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
140 
150  virtual
153 
154 
160  virtual std::string get_name () const;
161 
162 protected:
163 
169  virtual FiniteElement<dim,spacedim> *clone() const;
170 
177  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
178 
183  TensorProductPolynomials<dim> renumber_bases(const unsigned int degree);
184 };
185 
186 
187 
190 DEAL_II_NAMESPACE_CLOSE
191 
192 #endif
FE_Bernstein(const unsigned int p)
Definition: fe_bernstein.cc:35
virtual std::string get_name() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
const unsigned int degree
Definition: fe_base.h:299
virtual bool hp_constraints_are_implemented() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_bernstein.cc:61
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_bernstein.cc:49
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
TensorProductPolynomials< dim > renumber_bases(const unsigned int degree)
virtual FiniteElement< dim, spacedim > * clone() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)