Reference documentation for deal.II version 9.4.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 - 2021 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
24
26
27
30
62template <int dim, int spacedim = dim>
63class FE_Bernstein : public FE_Q_Base<dim, spacedim>
64{
65public:
69 FE_Bernstein(const unsigned int p);
70
78 virtual void
80 FullMatrix<double> &matrix) const override;
81
89 virtual const FullMatrix<double> &
91 const unsigned int child,
92 const RefinementCase<dim> &refinement_case =
94
102 virtual const FullMatrix<double> &
104 const unsigned int child,
105 const RefinementCase<dim> &refinement_case =
107
117 virtual void
120 const unsigned int face_no = 0) const override;
121
131 virtual void
133 const FiniteElement<dim, spacedim> &source,
134 const unsigned int subface,
136 const unsigned int face_no = 0) const override;
137
142 virtual bool
143 hp_constraints_are_implemented() const override;
144
160 virtual std::vector<std::pair<unsigned int, unsigned int>>
162 const FiniteElement<dim, spacedim> &fe_other) const override;
163
168 virtual std::vector<std::pair<unsigned int, unsigned int>>
170 const FiniteElement<dim, spacedim> &fe_other) const override;
171
176 virtual std::vector<std::pair<unsigned int, unsigned int>>
178 const unsigned int face_no = 0) const override;
179
185 const unsigned int codim = 0) const override final;
186
192 virtual std::string
193 get_name() const override;
194
195 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
196 clone() const override;
197
198protected:
205 static std::vector<unsigned int>
206 get_dpo_vector(const unsigned int degree);
207
213 renumber_bases(const unsigned int degree);
214};
215
216
217
221
222#endif
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
FE_Bernstein(const unsigned int p)
Definition: fe_bernstein.cc:38
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const override
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
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
TensorProductPolynomials< dim > renumber_bases(const unsigned int degree)
virtual std::string get_name() const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_bernstein.cc:52
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
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
Definition: fe_bernstein.cc:96
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
const unsigned int degree
Definition: fe_data.h:449
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
@ matrix
Contents is actually a matrix.