deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+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_q_base.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2013 - 2024 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_q_base_h
16#define dealii_fe_q_base_h
17
18#include <deal.II/base/config.h>
19
20#include <deal.II/base/mutex.h>
21
22#include <deal.II/fe/fe_poly.h>
23
25
26
38template <int dim, int spacedim = dim>
39class FE_Q_Base : public FE_Poly<dim, spacedim>
40{
41public:
46 const FiniteElementData<dim> &fe_data,
47 const std::vector<bool> &restriction_is_additive_flags);
48
58 virtual void
60 FullMatrix<double> &matrix) const override;
61
62
72 virtual void
74 FullMatrix<double> &matrix,
75 const unsigned int face_no = 0) const override;
76
86 virtual void
88 const FiniteElement<dim, spacedim> &source,
89 const unsigned int subface,
90 FullMatrix<double> &matrix,
91 const unsigned int face_no = 0) const override;
92
97 virtual bool
98 has_support_on_face(const unsigned int shape_index,
99 const unsigned int face_index) const override;
100
123 virtual const FullMatrix<double> &
125 const unsigned int child,
126 const RefinementCase<dim> &refinement_case =
128
155 virtual const FullMatrix<double> &
157 const unsigned int child,
158 const RefinementCase<dim> &refinement_case =
160
192 virtual unsigned int
194 const unsigned int face_dof_index,
195 const unsigned int face,
196 const unsigned char combined_orientation =
198
203 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
204 get_constant_modes() const override;
205
219 virtual bool
221
237 virtual std::vector<std::pair<unsigned int, unsigned int>>
239 const FiniteElement<dim, spacedim> &fe_other) const override;
240
245 virtual std::vector<std::pair<unsigned int, unsigned int>>
247 const FiniteElement<dim, spacedim> &fe_other) const override;
248
253 virtual std::vector<std::pair<unsigned int, unsigned int>>
255 const unsigned int face_no = 0) const override;
256
265 "FE_Q can only be used for polynomial degrees "
266 "greater than zero. If you want an element of polynomial "
267 "degree zero, then it cannot be continuous and you "
268 "will want to use FE_DGQ<dim>(0).");
269
270protected:
277 static std::vector<unsigned int>
278 get_dpo_vector(const unsigned int degree);
279
285 void
286 initialize(const std::vector<Point<1>> &support_points_1d);
287
292 void
293 initialize_constraints(const std::vector<Point<1>> &points);
294
299 void
300 initialize_unit_support_points(const std::vector<Point<1>> &points);
301
306 void
308
314 void
316
323 struct Implementation;
324
325 // Declare implementation friend.
326 friend struct FE_Q_Base<dim, spacedim>::Implementation;
327
328private:
335
341 const unsigned int q_degree;
342};
343
344
348
349#endif
const std::unique_ptr< ScalarPolynomialsBase< dim > > poly_space
Definition fe_poly.h:532
Threads::Mutex prolongation_matrix_mutex
Definition fe_q_base.h:334
void initialize_unit_face_support_points(const std::vector< Point< 1 > > &points)
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Threads::Mutex restriction_matrix_mutex
Definition fe_q_base.h:333
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const override
const unsigned int q_degree
Definition fe_q_base.h:341
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
void initialize(const std::vector< Point< 1 > > &support_points_1d)
void initialize_unit_support_points(const std::vector< Point< 1 > > &points)
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
void initialize_constraints(const std::vector< Point< 1 > > &points)
void initialize_dof_index_permutations()
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
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const unsigned char combined_orientation=ReferenceCell::default_combined_face_orientation()) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
FE_Q_Base(const ScalarPolynomialsBase< dim > &poly_space, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags)
const unsigned int degree
Definition fe_data.h:452
const std::vector< bool > restriction_is_additive_flags
Definition fe.h:2597
Definition point.h:111
static constexpr unsigned char default_combined_face_orientation()
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
static ::ExceptionBase & ExcFEQCannotHaveDegree0()
#define DeclExceptionMsg(Exception, defaulttext)
Definition exceptions.h:489