Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
fe_q_hierarchical.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2002 - 2023 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
540template <int dim>
541class FE_Q_Hierarchical : public FE_Poly<dim>
542{
543public:
547 FE_Q_Hierarchical(const unsigned int p);
548
554 virtual std::string
555 get_name() const override;
556
557 virtual std::unique_ptr<FiniteElement<dim, dim>>
558 clone() const override;
559
564 virtual bool
565 has_support_on_face(const unsigned int shape_index,
566 const unsigned int face_index) const override;
567
581 virtual bool
582 hp_constraints_are_implemented() const override;
583
588 virtual void
590 FullMatrix<double> & matrix) const override;
591
595 virtual const FullMatrix<double> &
597 const unsigned int child,
598 const RefinementCase<dim> &refinement_case =
600
616 virtual std::vector<std::pair<unsigned int, unsigned int>>
617 hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
618
622 virtual std::vector<std::pair<unsigned int, unsigned int>>
623 hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
624
628 virtual std::vector<std::pair<unsigned int, unsigned int>>
630 const unsigned int face_no = 0) const override;
631
637 const unsigned int codim = 0) const override final;
638
652 virtual void
654 FullMatrix<double> & matrix,
655 const unsigned int face_no = 0) const override;
656
668 virtual void
670 const FiniteElement<dim> &source,
671 const unsigned int subface,
672 FullMatrix<double> & matrix,
673 const unsigned int face_no = 0) const override;
674
683 virtual std::size_t
684 memory_consumption() const override;
685
691 std::vector<unsigned int>
692 get_embedding_dofs(const unsigned int sub_degree) const;
693
699 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
700 get_constant_modes() const override;
701
702private:
709 static std::vector<unsigned int>
710 get_dpo_vector(const unsigned int degree);
711
739 static std::vector<unsigned int>
741
745 static std::vector<unsigned int>
747
752 void
753 build_dofs_cell(std::vector<FullMatrix<double>> &dofs_cell,
754 std::vector<FullMatrix<double>> &dofs_subcell) const;
755
760 void
761 initialize_constraints(const std::vector<FullMatrix<double>> &dofs_subcell);
762
766 void
768 const std::vector<FullMatrix<double>> &dofs_cell,
769 const std::vector<FullMatrix<double>> &dofs_subcell);
770
775 void
777
782 void
784
788 const std::vector<unsigned int> face_renumber;
789
790 // Allow access from other dimensions. We need this since we want to call
791 // the functions @p get_dpo_vector and @p
792 // lexicographic_to_hierarchic_numbering for the faces of the finite element
793 // of dimension dim+1.
794 template <int dim1>
795 friend class FE_Q_Hierarchical;
796};
797
800/* -------------- declaration of explicit specializations ------------- */
801
802template <>
803void
805
806template <>
807bool
809 const unsigned int) const;
810
811template <>
812std::vector<unsigned int>
814 const unsigned int);
815
817
818#endif
const std::vector< unsigned int > face_renumber
void build_dofs_cell(std::vector< FullMatrix< double > > &dofs_cell, std::vector< FullMatrix< double > > &dofs_subcell) const
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
void initialize_embedding_and_restriction(const std::vector< FullMatrix< double > > &dofs_cell, const std::vector< FullMatrix< double > > &dofs_subcell)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
friend class FE_Q_Hierarchical
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
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
void initialize_generalized_support_points()
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
static std::vector< unsigned int > hierarchic_to_fe_q_hierarchical_numbering(const FiniteElementData< dim > &fe)
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
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_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
static std::vector< unsigned int > face_fe_q_hierarchical_to_hierarchic_numbering(const unsigned int degree)
void initialize_generalized_face_support_points()
void initialize_constraints(const std::vector< FullMatrix< double > > &dofs_subcell)
virtual std::string get_name() const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::size_t memory_consumption() const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
const unsigned int degree
Definition fe_data.h:453
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473