deal.II version GIT relicensing-2287-g6548a49e0a 2024-12-20 18:30: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_dgp.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2002 - 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_dgp_h
16#define dealii_fe_dgp_h
17
18#include <deal.II/base/config.h>
19
21
22#include <deal.II/fe/fe_poly.h>
23
25
309template <int dim, int spacedim = dim>
310class FE_DGP : public FE_Poly<dim, spacedim>
311{
312public:
316 FE_DGP(const unsigned int p);
317
323 virtual std::string
324 get_name() const override;
325
349 virtual std::vector<std::pair<unsigned int, unsigned int>>
351 const FiniteElement<dim, spacedim> &fe_other) const override;
352
360 virtual std::vector<std::pair<unsigned int, unsigned int>>
362 const FiniteElement<dim, spacedim> &fe_other) const override;
363
371 virtual std::vector<std::pair<unsigned int, unsigned int>>
373 const unsigned int face_no = 0) const override;
374
383 virtual bool
384 hp_constraints_are_implemented() const override;
385
391 const unsigned int codim = 0) const override final;
392
408 virtual void
410 FullMatrix<double> &matrix,
411 const unsigned int face_no = 0) const override;
412
424 virtual void
426 const FiniteElement<dim, spacedim> &source,
427 const unsigned int subface,
428 FullMatrix<double> &matrix,
429 const unsigned int face_no = 0) const override;
430
435 virtual bool
436 has_support_on_face(const unsigned int shape_index,
437 const unsigned int face_index) const override;
438
447 virtual std::size_t
448 memory_consumption() const override;
449
450
455 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
456 get_constant_modes() const override;
457
458 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
459 clone() const override;
460
461private:
468 static std::vector<unsigned int>
469 get_dpo_vector(const unsigned int degree);
470};
471
475
476#endif
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition fe_dgp.cc:182
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition fe_dgp.cc:263
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition fe_dgp.cc:274
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
Definition fe_dgp.cc:132
virtual std::string get_name() const override
Definition fe_dgp.cc:59
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition fe_dgp.cc:90
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition fe_dgp.cc:168
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
Definition fe_dgp.cc:106
virtual std::size_t memory_consumption() const override
Definition fe_dgp.cc:286
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
Definition fe_dgp.cc:199
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition fe_dgp.cc:76
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition fe_dgp.cc:217
virtual bool hp_constraints_are_implemented() const override
Definition fe_dgp.cc:159
const unsigned int degree
Definition fe_data.h:452
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499