Reference documentation for deal.II version 9.0.0
fe_q_hierarchical.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2017 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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/tensor_product_polynomials.h>
21 #include <deal.II/fe/fe_poly.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
27 
540 template <int dim>
541 class FE_Q_Hierarchical : public FE_Poly<TensorProductPolynomials<dim>,dim>
542 {
543 public:
547  FE_Q_Hierarchical (const unsigned int p);
548 
554  virtual std::string get_name () const;
555 
556  virtual
557  std::unique_ptr<FiniteElement<dim,dim> >
558  clone() const;
559 
564  virtual bool has_support_on_face (const unsigned int shape_index,
565  const unsigned int face_index) const;
566 
580  virtual bool hp_constraints_are_implemented () const;
581 
586  virtual void get_interpolation_matrix(const FiniteElement< dim> &source,
587  FullMatrix< double > &matrix) const;
588 
592  virtual const
593  FullMatrix<double> &get_prolongation_matrix (const unsigned int child,
595 
611  virtual
612  std::vector<std::pair<unsigned int, unsigned int> >
613  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
614 
618  virtual
619  std::vector<std::pair<unsigned int, unsigned int> >
620  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
621 
625  virtual
626  std::vector<std::pair<unsigned int, unsigned int> >
627  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
628 
642  virtual void get_face_interpolation_matrix (const FiniteElement<dim> &source, FullMatrix<double> &matrix) const;
643 
655  virtual void get_subface_interpolation_matrix (const FiniteElement<dim> &source, const unsigned int subface, FullMatrix<double> &matrix) const;
656 
666  virtual
668  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
669 
678  virtual std::size_t memory_consumption () const;
679 
685  std::vector<unsigned int> get_embedding_dofs (const unsigned int sub_degree) const;
686 
692  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
693  get_constant_modes () const;
694 
695 private:
696 
703  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
704 
732  static
733  std::vector<unsigned int> hierarchic_to_fe_q_hierarchical_numbering (
734  const FiniteElementData<dim> &fe);
735 
739  static
740  std::vector<unsigned int>
742 
747  void build_dofs_cell (std::vector<FullMatrix<double> > &dofs_cell,
748  std::vector<FullMatrix<double> > &dofs_subcell) const;
749 
754  void initialize_constraints (const std::vector<FullMatrix<double> > &dofs_subcell);
755 
759  void initialize_embedding_and_restriction (const std::vector<FullMatrix<double> > &dofs_cell,
760  const std::vector<FullMatrix<double> > &dofs_subcell);
761 
767 
773 
777  const std::vector<unsigned int> face_renumber;
778 
785  template <int dim1> friend class FE_Q_Hierarchical;
786 };
787 
790 /* -------------- declaration of explicit specializations ------------- */
791 
792 template <>
794 
795 template <>
796 bool
798  const unsigned int) const;
799 
800 template <>
801 std::vector<unsigned int>
803 
804 DEAL_II_NAMESPACE_CLOSE
805 
806 #endif
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
virtual bool hp_constraints_are_implemented() const
void initialize_generalized_support_points()
void initialize_embedding_and_restriction(const std::vector< FullMatrix< double > > &dofs_cell, const std::vector< FullMatrix< double > > &dofs_subcell)
const unsigned int degree
Definition: fe_base.h:311
const std::vector< unsigned int > face_renumber
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
virtual std::string get_name() const
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
static std::vector< unsigned int > face_fe_q_hierarchical_to_hierarchic_numbering(const unsigned int degree)
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
void initialize_constraints(const std::vector< FullMatrix< double > > &dofs_subcell)
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
friend class FE_Q_Hierarchical
static std::vector< unsigned int > hierarchic_to_fe_q_hierarchical_numbering(const FiniteElementData< dim > &fe)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
virtual std::size_t memory_consumption() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
void build_dofs_cell(std::vector< FullMatrix< double > > &dofs_cell, std::vector< FullMatrix< double > > &dofs_subcell) const
void initialize_generalized_face_support_points()