Reference documentation for deal.II version 9.4.1
\(\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_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
34template <int dim, int spacedim = dim>
35class FE_SimplexPoly : public ::FE_Poly<dim, spacedim>
36{
37public:
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
109protected:
114};
115
116
117
125template <int dim, int spacedim = dim>
126class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
127{
128public:
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
180template <int dim, int spacedim = dim>
181class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
182{
183public:
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
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
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
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
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
bool hp_constraints_are_implemented() const override
Threads::Mutex mutex
Definition: fe_simplex_p.h:113
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) 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:2458
std::vector< Point< dim > > unit_support_points
Definition: fe.h:2451
FullMatrix< double > interface_constraints
Definition: fe.h:2439
Definition: point.h:111
Definition: vector.h:109
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443