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_q_base.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2019 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_q_base_h
17 #define dealii_fe_q_base_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <deal.II/fe/fe_poly.h>
24 
26 
27 
30 
41 template <class PolynomialType,
42  int dim = PolynomialType::dimension,
43  int spacedim = dim>
44 class FE_Q_Base : public FE_Poly<PolynomialType, dim, spacedim>
45 {
46 public:
51  const FiniteElementData<dim> &fe_data,
52  const std::vector<bool> & restriction_is_additive_flags);
53 
63  virtual void
65  FullMatrix<double> &matrix) const override;
66 
67 
77  virtual void
79  FullMatrix<double> &matrix) const override;
80 
90  virtual void
92  const unsigned int subface,
93  FullMatrix<double> &matrix) const override;
94 
99  virtual bool
100  has_support_on_face(const unsigned int shape_index,
101  const unsigned int face_index) const override;
102 
125  virtual const FullMatrix<double> &
127  const unsigned int child,
128  const RefinementCase<dim> &refinement_case =
130 
157  virtual const FullMatrix<double> &
159  const unsigned int child,
160  const RefinementCase<dim> &refinement_case =
162 
201  virtual unsigned int
202  face_to_cell_index(const unsigned int face_dof_index,
203  const unsigned int face,
204  const bool face_orientation = true,
205  const bool face_flip = false,
206  const bool face_rotation = false) const override;
207 
212  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
213  get_constant_modes() const override;
214 
228  virtual bool
229  hp_constraints_are_implemented() const override;
230 
246  virtual std::vector<std::pair<unsigned int, unsigned int>>
248  const FiniteElement<dim, spacedim> &fe_other) const override;
249 
254  virtual std::vector<std::pair<unsigned int, unsigned int>>
256  const FiniteElement<dim, spacedim> &fe_other) const override;
257 
262  virtual std::vector<std::pair<unsigned int, unsigned int>>
264  const FiniteElement<dim, spacedim> &fe_other) const override;
265 
267 
274  "FE_Q can only be used for polynomial degrees "
275  "greater than zero. If you want an element of polynomial "
276  "degree zero, then it cannot be continuous and you "
277  "will want to use FE_DGQ<dim>(0).");
278 
279 protected:
286  static std::vector<unsigned int>
287  get_dpo_vector(const unsigned int degree);
288 
294  void
295  initialize(const std::vector<Point<1>> &support_points_1d);
296 
301  void
302  initialize_constraints(const std::vector<Point<1>> &points);
303 
308  void
309  initialize_unit_support_points(const std::vector<Point<1>> &points);
310 
315  void
316  initialize_unit_face_support_points(const std::vector<Point<1>> &points);
317 
322  void
324 
331  struct Implementation;
332 
333  // Declare implementation friend.
334  friend struct FE_Q_Base<PolynomialType, dim, spacedim>::Implementation;
335 
336 private:
341 
347  const unsigned int q_degree;
348 };
349 
350 
354 
355 #endif
FE_Q_Base::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_q_base.cc:688
DeclExceptionMsg
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:496
FE_Q_Base::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_q_base.cc:1115
FE_Poly< PolynomialType, PolynomialType::dimension, PolynomialType::dimension >::poly_space
PolynomialType poly_space
Definition: fe_poly.h:516
FE_Q_Base::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_q_base.cc:729
Threads::Mutex
Definition: thread_management.h:91
FE_Q_Base::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_q_base.cc:569
FE_Q_Base::mutex
Threads::Mutex mutex
Definition: fe_q_base.h:340
FiniteElementData
Definition: fe_base.h:147
FE_Q_Base
Definition: fe_q_base.h:44
fe_poly.h
FE_Q_Base::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_q_base.cc:1140
FE_Q_Base::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_q_base.cc:1479
FE_Q_Base::initialize_unit_face_support_points
void initialize_unit_face_support_points(const std::vector< Point< 1 >> &points)
Definition: fe_q_base.cc:895
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
FE_Q_Base::ExcFEQCannotHaveDegree0
static ::ExceptionBase & ExcFEQCannotHaveDegree0()
thread_management.h
FE_Q_Base::q_degree
const unsigned int q_degree
Definition: fe_q_base.h:347
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_Q_Base::get_interpolation_matrix
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_q_base.cc:471
FE_Q_Base::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_q_base.cc:1337
RefinementCase
Definition: geometry_info.h:795
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
FE_Q_Base::face_to_cell_index
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false) const override
Definition: fe_q_base.cc:1001
FE_Q_Base::initialize_unit_support_points
void initialize_unit_support_points(const std::vector< Point< 1 >> &points)
Definition: fe_q_base.cc:870
FE_Q_Base::initialize_constraints
void initialize_constraints(const std::vector< Point< 1 >> &points)
Definition: fe_q_base.cc:1130
FE_Q_Base::initialize
void initialize(const std::vector< Point< 1 >> &support_points_1d)
Definition: fe_q_base.cc:425
FiniteElement
Definition: fe.h:648
FE_Q_Base::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_q_base.cc:583
FE_Q_Base::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_q_base.cc:794
FE_Q_Base::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_q_base.cc:679
FE_Poly
Definition: fe_poly.h:76
Point
Definition: point.h:111
FE_Q_Base::initialize_quad_dof_index_permutation
void initialize_quad_dof_index_permutation()
Definition: fe_q_base.cc:929
FiniteElement::restriction_is_additive_flags
const std::vector< bool > restriction_is_additive_flags
Definition: fe.h:2581
config.h
FullMatrix< double >
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_Q_Base::get_constant_modes
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_q_base.cc:1579
PolynomialType
int
FE_Q_Base::FE_Q_Base
FE_Q_Base(const PolynomialType &poly_space, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags)
Definition: fe_q_base.cc:406