Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_bernstein.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 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 #ifndef dealii_fe_bernstein_h
17 #define dealii_fe_bernstein_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <deal.II/fe/fe_q_base.h>
24 
26 
27 
30 
66 template <int dim, int spacedim = dim>
68  : public FE_Q_Base<TensorProductPolynomials<dim>, dim, spacedim>
69 {
70 public:
74  FE_Bernstein(const unsigned int p);
75 
83  virtual void
85  FullMatrix<double> &matrix) const override;
86 
94  virtual const FullMatrix<double> &
96  const unsigned int child,
97  const RefinementCase<dim> &refinement_case =
99 
107  virtual const FullMatrix<double> &
109  const unsigned int child,
110  const RefinementCase<dim> &refinement_case =
112 
122  virtual void
124  FullMatrix<double> &matrix) const override;
125 
135  virtual void
137  const unsigned int subface,
138  FullMatrix<double> &matrix) const override;
139 
144  virtual bool
145  hp_constraints_are_implemented() const override;
146 
162  virtual std::vector<std::pair<unsigned int, unsigned int>>
164  const FiniteElement<dim, spacedim> &fe_other) const override;
165 
170  virtual std::vector<std::pair<unsigned int, unsigned int>>
172  const FiniteElement<dim, spacedim> &fe_other) const override;
173 
178  virtual std::vector<std::pair<unsigned int, unsigned int>>
180  const FiniteElement<dim, spacedim> &fe_other) const override;
181 
187  const unsigned int codim = 0) const override final;
188 
194  virtual std::string
195  get_name() const override;
196 
197  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
198  clone() const override;
199 
200 protected:
207  static std::vector<unsigned int>
208  get_dpo_vector(const unsigned int degree);
209 
215  renumber_bases(const unsigned int degree);
216 };
217 
218 
219 
223 
224 #endif
FE_Bernstein
Definition: fe_bernstein.h:67
tensor_product_polynomials.h
FE_Bernstein::renumber_bases
TensorProductPolynomials< dim > renumber_bases(const unsigned int degree)
Definition: fe_bernstein.cc:366
fe_q_base.h
FE_Q_Base
Definition: fe_q_base.h:44
FE_Bernstein::compare_for_domination
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_bernstein.cc:282
FE_Bernstein::get_restriction_matrix
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_bernstein.cc:66
FE_Bernstein::get_name
virtual std::string get_name() const override
Definition: fe_bernstein.cc:329
FE_Bernstein::get_interpolation_matrix
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_bernstein.cc:52
FE_Bernstein::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_bernstein.cc:96
FE_Bernstein::hp_quad_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_bernstein.cc:267
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
FE_Bernstein::get_prolongation_matrix
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_bernstein.cc:81
FE_Bernstein::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_bernstein.cc:205
FE_Bernstein::hp_line_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_bernstein.cc:252
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
FE_Bernstein::get_subface_interpolation_matrix
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
Definition: fe_bernstein.cc:109
FE_Bernstein::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_bernstein.cc:354
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
RefinementCase
Definition: geometry_info.h:795
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
TensorProductPolynomials< dim >
FiniteElement
Definition: fe.h:648
FE_Bernstein::FE_Bernstein
FE_Bernstein(const unsigned int p)
Definition: fe_bernstein.cc:38
FE_Bernstein::hp_vertex_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_bernstein.cc:213
config.h
FullMatrix< double >
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_Bernstein::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_bernstein.cc:343