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_simplex_p.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2020 - 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_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
36template <int dim, int spacedim = dim>
37class FE_SimplexPoly : public ::FE_Poly<dim, spacedim>
38{
39public:
44 const BarycentricPolynomials<dim> polynomials,
45 const FiniteElementData<dim> & fe_data,
46 const std::vector<Point<dim>> & unit_support_points,
47 const std::vector<std::vector<Point<dim - 1>>> unit_face_support_points,
49
54 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
55 get_constant_modes() const override;
56
62 virtual const FullMatrix<double> &
64 const unsigned int child,
65 const RefinementCase<dim> &refinement_case =
67
73 virtual const FullMatrix<double> &
75 const unsigned int child,
76 const RefinementCase<dim> &refinement_case =
78
82 void
84 FullMatrix<double> &interpolation_matrix,
85 const unsigned int face_no) const override;
86
90 void
92 const FiniteElement<dim, spacedim> &x_source_fe,
93 const unsigned int subface,
94 FullMatrix<double> & interpolation_matrix,
95 const unsigned int face_no) const override;
96
100 bool
101 hp_constraints_are_implemented() const override;
102
106 virtual void
108 const std::vector<Vector<double>> &support_point_values,
109 std::vector<double> & nodal_values) const override;
110
111protected:
116};
117
118
119
128template <int dim, int spacedim = dim>
129class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
130{
131public:
135 FE_SimplexP(const unsigned int degree);
136
140 std::unique_ptr<FiniteElement<dim, spacedim>>
141 clone() const override;
142
148 std::string
149 get_name() const override;
150
156 const unsigned int codim) const override;
157
161 std::vector<std::pair<unsigned int, unsigned int>>
163 const FiniteElement<dim, spacedim> &fe_other) const override;
164
168 std::vector<std::pair<unsigned int, unsigned int>>
170 const FiniteElement<dim, spacedim> &fe_other) const override;
171};
172
173
174
184template <int dim, int spacedim = dim>
185class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
186{
187public:
191 FE_SimplexDGP(const unsigned int degree);
192
196 std::unique_ptr<FiniteElement<dim, spacedim>>
197 clone() const override;
198
204 std::string
205 get_name() const override;
206
212 const unsigned int codim) const override;
213
217 std::vector<std::pair<unsigned int, unsigned int>>
219 const FiniteElement<dim, spacedim> &fe_other) const override;
220
224 std::vector<std::pair<unsigned int, unsigned int>>
226 const FiniteElement<dim, spacedim> &fe_other) const override;
227};
228
230
231#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
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:453
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
Definition fe.h:2447
std::vector< Point< dim > > unit_support_points
Definition fe.h:2440
FullMatrix< double > interface_constraints
Definition fe.h:2428
Definition point.h:112
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473