Reference documentation for deal.II version GIT relicensing-693-g4fb6c325db 2024-05-21 16:20: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\}}\)
Loading...
Searching...
No Matches
fe_simplex_p.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2021 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_fe_fe_p_h
16#define dealii_fe_fe_p_h
17
18#include <deal.II/base/config.h>
19
20#include <deal.II/base/mutex.h>
22
23#include <deal.II/fe/fe_poly.h>
24
26
35template <int dim, int spacedim = dim>
36class FE_SimplexPoly : public ::FE_Poly<dim, spacedim>
37{
38public:
43 const BarycentricPolynomials<dim> polynomials,
44 const FiniteElementData<dim> &fe_data,
45 const bool prolongation_is_additive,
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:
118};
119
120
121
131template <int dim, int spacedim = dim>
132class FE_SimplexP : public FE_SimplexPoly<dim, spacedim>
133{
134public:
138 FE_SimplexP(const unsigned int degree);
139
143 std::unique_ptr<FiniteElement<dim, spacedim>>
144 clone() const override;
145
151 std::string
152 get_name() const override;
153
159 const unsigned int codim) const override;
160
164 std::vector<std::pair<unsigned int, unsigned int>>
166 const FiniteElement<dim, spacedim> &fe_other) const override;
167
171 std::vector<std::pair<unsigned int, unsigned int>>
173 const FiniteElement<dim, spacedim> &fe_other) const override;
174};
175
176
177
187template <int dim, int spacedim = dim>
188class FE_SimplexDGP : public FE_SimplexPoly<dim, spacedim>
189{
190public:
194 FE_SimplexDGP(const unsigned int degree);
195
199 std::unique_ptr<FiniteElement<dim, spacedim>>
200 clone() const override;
201
207 std::string
208 get_name() const override;
209
215 const unsigned int codim) const override;
216
220 std::vector<std::pair<unsigned int, unsigned int>>
222 const FiniteElement<dim, spacedim> &fe_other) const override;
223
227 std::vector<std::pair<unsigned int, unsigned int>>
229 const FiniteElement<dim, spacedim> &fe_other) const override;
230
236 virtual const FullMatrix<double> &
238 const unsigned int child,
239 const RefinementCase<dim> &refinement_case =
241};
242
244
245#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
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) 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 restriction_matrix_mutex
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Threads::Mutex prolongation_matrix_mutex
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:452
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
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503