Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_q_hierarchical.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_q_hierarchical_h
17 #define dealii_fe_q_hierarchical_h
18 
19 #include <deal.II/base/config.h>
20 
21 #include <deal.II/base/tensor_product_polynomials.h>
22 
23 #include <deal.II/fe/fe_poly.h>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
29 
542 template <int dim>
543 class FE_Q_Hierarchical : public FE_Poly<TensorProductPolynomials<dim>, dim>
544 {
545 public:
549  FE_Q_Hierarchical(const unsigned int p);
550 
556  virtual std::string
557  get_name() const override;
558 
559  virtual std::unique_ptr<FiniteElement<dim, dim>>
560  clone() const override;
561 
566  virtual bool
567  has_support_on_face(const unsigned int shape_index,
568  const unsigned int face_index) const override;
569 
583  virtual bool
584  hp_constraints_are_implemented() const override;
585 
590  virtual void
592  FullMatrix<double> & matrix) const override;
593 
597  virtual const FullMatrix<double> &
599  const unsigned int child,
600  const RefinementCase<dim> &refinement_case =
602 
618  virtual std::vector<std::pair<unsigned int, unsigned int>>
619  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
620 
624  virtual std::vector<std::pair<unsigned int, unsigned int>>
625  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
626 
630  virtual std::vector<std::pair<unsigned int, unsigned int>>
631  hp_quad_dof_identities(const FiniteElement<dim> &fe_other) const override;
632 
638  const unsigned int codim = 0) const override final;
639 
653  virtual void
655  FullMatrix<double> &matrix) const override;
656 
668  virtual void
670  const unsigned int subface,
671  FullMatrix<double> &matrix) 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>
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 
794  template <int dim1>
795  friend class FE_Q_Hierarchical;
796 };
797 
800 /* -------------- declaration of explicit specializations ------------- */
801 
802 template <>
803 void
805 
806 template <>
807 bool
809  const unsigned int) const;
810 
811 template <>
812 std::vector<unsigned int>
814  const unsigned int);
815 
816 DEAL_II_NAMESPACE_CLOSE
817 
818 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
void initialize_generalized_support_points()
const unsigned int degree
Definition: fe_base.h:298
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
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
static std::vector< unsigned int > face_fe_q_hierarchical_to_hierarchic_numbering(const unsigned int degree)
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)
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_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_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)
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)
void initialize_generalized_face_support_points()
virtual bool hp_constraints_are_implemented() const override