Reference documentation for deal.II version Git d3aed38b93 2021-10-28 13:33:27 +0200
\(\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:
42  const BarycentricPolynomials<dim> polynomials,
43  const FiniteElementData<dim> & fe_data,
44  const std::vector<Point<dim>> & unit_support_points,
45  const std::vector<std::vector<Point<dim - 1>>> unit_face_support_points,
47 
52  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
53  get_constant_modes() const override;
54 
60  virtual const FullMatrix<double> &
62  const unsigned int child,
63  const RefinementCase<dim> &refinement_case =
65 
71  virtual const FullMatrix<double> &
73  const unsigned int child,
74  const RefinementCase<dim> &refinement_case =
76 
80  void
82  FullMatrix<double> &interpolation_matrix,
83  const unsigned int face_no) const override;
84 
88  void
90  const FiniteElement<dim, spacedim> &x_source_fe,
91  const unsigned int subface,
92  FullMatrix<double> & interpolation_matrix,
93  const unsigned int face_no) const override;
94 
98  bool
99  hp_constraints_are_implemented() const override;
100 
104  virtual void
106  const std::vector<Vector<double>> &support_point_values,
107  std::vector<double> & nodal_values) const override;
108 
109 protected:
114 };
115 
116 
117 
125 template <int dim, int spacedim = dim>
126 class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
127 {
128 public:
132  FE_SimplexP(const unsigned int degree);
133 
137  std::unique_ptr<FiniteElement<dim, spacedim>>
138  clone() const override;
139 
145  std::string
146  get_name() const override;
147 
153  const unsigned int codim) const override;
154 
158  std::vector<std::pair<unsigned int, unsigned int>>
160  const FiniteElement<dim, spacedim> &fe_other) const override;
161 
165  std::vector<std::pair<unsigned int, unsigned int>>
167  const FiniteElement<dim, spacedim> &fe_other) const override;
168 };
169 
170 
171 
180 template <int dim, int spacedim = dim>
181 class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
182 {
183 public:
187  FE_SimplexDGP(const unsigned int degree);
188 
192  std::unique_ptr<FiniteElement<dim, spacedim>>
193  clone() const override;
194 
200  std::string
201  get_name() const override;
202 
208  const unsigned int codim) const override;
209 
213  std::vector<std::pair<unsigned int, unsigned int>>
215  const FiniteElement<dim, spacedim> &fe_other) const override;
216 
220  std::vector<std::pair<unsigned int, unsigned int>>
222  const FiniteElement<dim, spacedim> &fe_other) const override;
223 };
224 
226 
227 #endif
FullMatrix< double > interface_constraints
Definition: fe.h:2430
const unsigned int degree
Definition: fe_base.h:436
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const =0
std::vector< Point< dim > > unit_support_points
Definition: fe.h:2442
FE_SimplexPoly(const BarycentricPolynomials< dim > polynomials, const FiniteElementData< dim > &fe_data, const std::vector< Point< dim >> &unit_support_points, const std::vector< std::vector< Point< dim - 1 >>> unit_face_support_points, const FullMatrix< double > &interface_constraints)
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
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
Definition: fe.h:2449
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:401
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:113
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:400
bool hp_constraints_are_implemented() const override