Reference documentation for deal.II version GIT 0b65fff18a 2023-09-27 19:30: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\}}\)
fe_dgp.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_dgp_h
17 #define dealii_fe_dgp_h
18 
19 #include <deal.II/base/config.h>
20 
22 
23 #include <deal.II/fe/fe_poly.h>
24 
26 
310 template <int dim, int spacedim = dim>
311 class FE_DGP : public FE_Poly<dim, spacedim>
312 {
313 public:
317  FE_DGP(const unsigned int p);
318 
324  virtual std::string
325  get_name() const override;
326 
350  virtual std::vector<std::pair<unsigned int, unsigned int>>
352  const FiniteElement<dim, spacedim> &fe_other) const override;
353 
361  virtual std::vector<std::pair<unsigned int, unsigned int>>
363  const FiniteElement<dim, spacedim> &fe_other) const override;
364 
372  virtual std::vector<std::pair<unsigned int, unsigned int>>
374  const unsigned int face_no = 0) const override;
375 
384  virtual bool
385  hp_constraints_are_implemented() const override;
386 
392  const unsigned int codim = 0) const override final;
393 
409  virtual void
412  const unsigned int face_no = 0) const override;
413 
425  virtual void
427  const FiniteElement<dim, spacedim> &source,
428  const unsigned int subface,
430  const unsigned int face_no = 0) const override;
431 
436  virtual bool
437  has_support_on_face(const unsigned int shape_index,
438  const unsigned int face_index) const override;
439 
448  virtual std::size_t
449  memory_consumption() const override;
450 
451 
456  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
457  get_constant_modes() const override;
458 
459  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
460  clone() const override;
461 
462 private:
469  static std::vector<unsigned int>
470  get_dpo_vector(const unsigned int degree);
471 };
472 
476 
477 #endif
Definition: fe_dgp.h:312
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:186
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_dgp.cc:267
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_dgp.cc:278
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:133
virtual std::string get_name() const override
Definition: fe_dgp.cc:60
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_dgp.cc:91
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:169
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:107
FE_DGP(const unsigned int p)
Definition: fe_dgp.cc:28
virtual std::size_t memory_consumption() const override
Definition: fe_dgp.cc:290
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:203
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_dgp.cc:77
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_dgp.cc:221
virtual bool hp_constraints_are_implemented() const override
Definition: fe_dgp.cc:160
const unsigned int degree
Definition: fe_data.h:453
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478
@ matrix
Contents is actually a matrix.