Reference documentation for deal.II version 9.0.0
fe_bernstein.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2017 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 
80  virtual void
82  FullMatrix<double> &matrix) const;
83 
91  virtual const FullMatrix<double> &
92  get_restriction_matrix (const unsigned int child,
94 
102  virtual const FullMatrix<double> &
103  get_prolongation_matrix (const unsigned int child,
105 
115  virtual void
117  FullMatrix<double> &matrix) const;
118 
128  virtual void
130  const unsigned int subface,
131  FullMatrix<double> &matrix) const;
132 
137  virtual bool hp_constraints_are_implemented () const;
138 
154  virtual
155  std::vector<std::pair<unsigned int, unsigned int> >
157 
162  virtual
163  std::vector<std::pair<unsigned int, unsigned int> >
164  hp_line_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
165 
170  virtual
171  std::vector<std::pair<unsigned int, unsigned int> >
172  hp_quad_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
173 
183  virtual
186 
187 
193  virtual std::string get_name () const;
194 
195  virtual
196  std::unique_ptr<FiniteElement<dim,spacedim> >
197  clone() const;
198 
199 protected:
200 
207  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
208 
214 };
215 
216 
217 
220 DEAL_II_NAMESPACE_CLOSE
221 
222 #endif
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe_bernstein.cc:78
FE_Bernstein(const unsigned int p)
Definition: fe_bernstein.cc:36
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_bernstein.cc:51
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe_bernstein.cc:64
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:311
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
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_bernstein.cc:93
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
TensorProductPolynomials< dim > renumber_bases(const unsigned int degree)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)