Reference documentation for deal.II version GIT 770e57895c 2022-08-12 17:05:02+00:00
\(\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 
21 #include <deal.II/base/mutex.h>
23 
24 #include <deal.II/fe/fe_poly.h>
25 
27 
35 template <int dim, int spacedim = dim>
36 class FE_SimplexPoly : public ::FE_Poly<dim, spacedim>
37 {
38 public:
43  const BarycentricPolynomials<dim> polynomials,
44  const FiniteElementData<dim> & fe_data,
45  const std::vector<Point<dim>> & unit_support_points,
46  const std::vector<std::vector<Point<dim - 1>>> unit_face_support_points,
48 
53  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
54  get_constant_modes() const override;
55 
61  virtual const FullMatrix<double> &
63  const unsigned int child,
64  const RefinementCase<dim> &refinement_case =
66 
72  virtual const FullMatrix<double> &
74  const unsigned int child,
75  const RefinementCase<dim> &refinement_case =
77 
81  void
83  FullMatrix<double> &interpolation_matrix,
84  const unsigned int face_no) const override;
85 
89  void
91  const FiniteElement<dim, spacedim> &x_source_fe,
92  const unsigned int subface,
93  FullMatrix<double> & interpolation_matrix,
94  const unsigned int face_no) const override;
95 
99  bool
100  hp_constraints_are_implemented() const override;
101 
105  virtual void
107  const std::vector<Vector<double>> &support_point_values,
108  std::vector<double> & nodal_values) const override;
109 
110 protected:
115 };
116 
117 
118 
126 template <int dim, int spacedim = dim>
127 class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
128 {
129 public:
133  FE_SimplexP(const unsigned int degree);
134 
138  std::unique_ptr<FiniteElement<dim, spacedim>>
139  clone() const override;
140 
146  std::string
147  get_name() const override;
148 
154  const unsigned int codim) const override;
155 
159  std::vector<std::pair<unsigned int, unsigned int>>
161  const FiniteElement<dim, spacedim> &fe_other) const override;
162 
166  std::vector<std::pair<unsigned int, unsigned int>>
168  const FiniteElement<dim, spacedim> &fe_other) const override;
169 };
170 
171 
172 
181 template <int dim, int spacedim = dim>
182 class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
183 {
184 public:
188  FE_SimplexDGP(const unsigned int degree);
189 
193  std::unique_ptr<FiniteElement<dim, spacedim>>
194  clone() const override;
195 
201  std::string
202  get_name() const override;
203 
209  const unsigned int codim) const override;
210 
214  std::vector<std::pair<unsigned int, unsigned int>>
216  const FiniteElement<dim, spacedim> &fe_other) const override;
217 
221  std::vector<std::pair<unsigned int, unsigned int>>
223  const FiniteElement<dim, spacedim> &fe_other) const override;
224 };
225 
227 
228 #endif
FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim) const override
std::string get_name() const override
std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
FE_SimplexDGP(const unsigned int degree)
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
FE_SimplexP(const unsigned int degree)
std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim) const override
std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
std::string get_name() const override
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
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
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
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)
bool hp_constraints_are_implemented() const override
Threads::Mutex mutex
Definition: fe_simplex_p.h:114
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) 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
void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix, const unsigned int face_no) const override
const unsigned int degree
Definition: fe_data.h:449
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
Definition: fe.h:2431
std::vector< Point< dim > > unit_support_points
Definition: fe.h:2424
FullMatrix< double > interface_constraints
Definition: fe.h:2412
Definition: point.h:111
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443