Reference documentation for deal.II version Git 70360f6955 2021-06-22 11:20:06 -0600
\(\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_simplex_p.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2020 - 2021 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_fe_p_h
17 #define dealii_fe_fe_p_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <deal.II/fe/fe_poly.h>
24 
26 
34 template <int dim, int spacedim = dim>
35 class FE_SimplexPoly : public ::FE_Poly<dim, spacedim>
36 {
37 public:
41  FE_SimplexPoly(const unsigned int degree,
42  const std::vector<unsigned int> & dpo_vector,
43  const typename FiniteElementData<dim>::Conformity conformity);
44 
49  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
50  get_constant_modes() const override;
51 
57  virtual const FullMatrix<double> &
59  const unsigned int child,
60  const RefinementCase<dim> &refinement_case =
62 
68  virtual const FullMatrix<double> &
70  const unsigned int child,
71  const RefinementCase<dim> &refinement_case =
73 
77  void
79  FullMatrix<double> &interpolation_matrix,
80  const unsigned int face_no) const override;
81 
85  void
87  const FiniteElement<dim, spacedim> &x_source_fe,
88  const unsigned int subface,
89  FullMatrix<double> & interpolation_matrix,
90  const unsigned int face_no) const override;
91 
95  bool
96  hp_constraints_are_implemented() const override;
97 
101  virtual void
103  const std::vector<Vector<double>> &support_point_values,
104  std::vector<double> & nodal_values) const override;
105 
107 };
108 
109 
110 
118 template <int dim, int spacedim = dim>
119 class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
120 {
121 public:
125  FE_SimplexP(const unsigned int degree);
126 
130  std::unique_ptr<FiniteElement<dim, spacedim>>
131  clone() const override;
132 
138  std::string
139  get_name() const override;
140 
146  const unsigned int codim) const override;
147 
151  std::vector<std::pair<unsigned int, unsigned int>>
153  const FiniteElement<dim, spacedim> &fe_other) const override;
154 
158  std::vector<std::pair<unsigned int, unsigned int>>
160  const FiniteElement<dim, spacedim> &fe_other) const override;
161 };
162 
163 
164 
173 template <int dim, int spacedim = dim>
174 class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
175 {
176 public:
180  FE_SimplexDGP(const unsigned int degree);
181 
185  std::unique_ptr<FiniteElement<dim, spacedim>>
186  clone() const override;
187 
193  std::string
194  get_name() const override;
195 
201  const unsigned int codim) const override;
202 
206  std::vector<std::pair<unsigned int, unsigned int>>
208  const FiniteElement<dim, spacedim> &fe_other) const override;
209 
213  std::vector<std::pair<unsigned int, unsigned int>>
215  const FiniteElement<dim, spacedim> &fe_other) const override;
216 };
217 
219 
220 #endif
const unsigned int degree
Definition: fe_base.h:435
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const =0
FE_SimplexPoly(const unsigned int degree, const std::vector< unsigned int > &dpo_vector, const typename FiniteElementData< dim >::Conformity conformity)
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:399
virtual std::string get_name() const =0
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe.cc:978
void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix, const unsigned int face_no) const override
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double >> &support_point_values, std::vector< double > &nodal_values) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe.cc:989
Threads::Mutex mutex
Definition: fe_simplex_p.h:106
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const
Definition: fe.cc:1012
void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &x_source_fe, const unsigned int subface, FullMatrix< double > &interpolation_matrix, const unsigned int face_no) const override
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:398
bool hp_constraints_are_implemented() const override