Reference documentation for deal.II version Git 354f154960 2021-01-18 17:44:59 +0100
\(\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_hierarchical.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_hierarchical_h
17 #define dealii_fe_q_hierarchical_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <deal.II/fe/fe_poly.h>
24 
26 
29 
538 template <int dim>
539 class FE_Q_Hierarchical : public FE_Poly<dim>
540 {
541 public:
545  FE_Q_Hierarchical(const unsigned int p);
546 
552  virtual std::string
553  get_name() const override;
554 
555  virtual std::unique_ptr<FiniteElement<dim, dim>>
556  clone() const override;
557 
562  virtual bool
563  has_support_on_face(const unsigned int shape_index,
564  const unsigned int face_index) const override;
565 
579  virtual bool
580  hp_constraints_are_implemented() const override;
581 
586  virtual void
588  FullMatrix<double> & matrix) const override;
589 
593  virtual const FullMatrix<double> &
595  const unsigned int child,
596  const RefinementCase<dim> &refinement_case =
598 
614  virtual std::vector<std::pair<unsigned int, unsigned int>>
615  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
616 
620  virtual std::vector<std::pair<unsigned int, unsigned int>>
621  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
622 
626  virtual std::vector<std::pair<unsigned int, unsigned int>>
628  const unsigned int face_no = 0) const override;
629 
635  const unsigned int codim = 0) const override final;
636 
650  virtual void
652  FullMatrix<double> & matrix,
653  const unsigned int face_no = 0) const override;
654 
666  virtual void
668  const FiniteElement<dim> &source,
669  const unsigned int subface,
670  FullMatrix<double> & matrix,
671  const unsigned int face_no = 0) const override;
672 
681  virtual std::size_t
682  memory_consumption() const override;
683 
689  std::vector<unsigned int>
690  get_embedding_dofs(const unsigned int sub_degree) const;
691 
697  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
698  get_constant_modes() const override;
699 
700 private:
707  static std::vector<unsigned int>
708  get_dpo_vector(const unsigned int degree);
709 
737  static std::vector<unsigned int>
739 
743  static std::vector<unsigned int>
744  face_fe_q_hierarchical_to_hierarchic_numbering(const unsigned int degree);
745 
750  void
751  build_dofs_cell(std::vector<FullMatrix<double>> &dofs_cell,
752  std::vector<FullMatrix<double>> &dofs_subcell) const;
753 
758  void
759  initialize_constraints(const std::vector<FullMatrix<double>> &dofs_subcell);
760 
764  void
766  const std::vector<FullMatrix<double>> &dofs_cell,
767  const std::vector<FullMatrix<double>> &dofs_subcell);
768 
773  void
775 
780  void
782 
786  const std::vector<unsigned int> face_renumber;
787 
788  // Allow access from other dimensions. We need this since we want to call
789  // the functions @p get_dpo_vector and @p
790  // lexicographic_to_hierarchic_numbering for the faces of the finite element
791  // of dimension dim+1.
792  template <int dim1>
793  friend class FE_Q_Hierarchical;
794 };
795 
798 /* -------------- declaration of explicit specializations ------------- */
799 
800 template <>
801 void
803 
804 template <>
805 bool
807  const unsigned int) const;
808 
809 template <>
810 std::vector<unsigned int>
812  const unsigned int);
813 
815 
816 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Contents is actually a matrix.
void initialize_generalized_support_points()
const unsigned int degree
Definition: fe_base.h:435
const std::vector< unsigned int > face_renumber
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
static std::vector< unsigned int > face_fe_q_hierarchical_to_hierarchic_numbering(const unsigned int degree)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other, const unsigned int face_no=0) const override
virtual std::string get_name() const override
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
void initialize_constraints(const std::vector< FullMatrix< double >> &dofs_subcell)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:380
virtual std::size_t memory_consumption() const override
void build_dofs_cell(std::vector< FullMatrix< double >> &dofs_cell, std::vector< FullMatrix< double >> &dofs_subcell) const
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
friend class FE_Q_Hierarchical
static std::vector< unsigned int > hierarchic_to_fe_q_hierarchical_numbering(const FiniteElementData< dim > &fe)
void initialize_embedding_and_restriction(const std::vector< FullMatrix< double >> &dofs_cell, const std::vector< FullMatrix< double >> &dofs_subcell)
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:379
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
void initialize_generalized_face_support_points()
virtual bool hp_constraints_are_implemented() const override