Reference documentation for deal.II version 9.0.0
fe_dgp.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2018 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 at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_fe_dgp_h
17 #define dealii_fe_dgp_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/polynomial_space.h>
21 #include <deal.II/fe/fe_poly.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
27 
308 template <int dim, int spacedim=dim>
309 class FE_DGP : public FE_Poly<PolynomialSpace<dim>,dim,spacedim>
310 {
311 public:
315  FE_DGP (const unsigned int p);
316 
322  virtual std::string get_name () const;
323 
347  virtual
348  std::vector<std::pair<unsigned int, unsigned int> >
350 
358  virtual
359  std::vector<std::pair<unsigned int, unsigned int> >
360  hp_line_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
361 
369  virtual
370  std::vector<std::pair<unsigned int, unsigned int> >
371  hp_quad_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
372 
381  virtual bool hp_constraints_are_implemented () const;
382 
392  virtual
395 
411  virtual void
413  FullMatrix<double> &matrix) const;
414 
426  virtual void
428  const unsigned int subface,
429  FullMatrix<double> &matrix) const;
430 
435  virtual bool has_support_on_face (const unsigned int shape_index,
436  const unsigned int face_index) const;
437 
446  virtual std::size_t memory_consumption () const;
447 
448 
453  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
454  get_constant_modes () const;
455 
456  virtual
457  std::unique_ptr<FiniteElement<dim,spacedim> >
458  clone() const;
459 
460 private:
461 
468  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
469 };
470 
471 /* @} */
472 
473 DEAL_II_NAMESPACE_CLOSE
474 
475 #endif
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_dgp.cc:100
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:168
virtual std::string get_name() const
Definition: fe_dgp.cc:51
virtual std::size_t memory_consumption() const
Definition: fe_dgp.cc:259
const unsigned int degree
Definition: fe_base.h:311
FE_DGP(const unsigned int p)
Definition: fe_dgp.cc:27
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:221
Definition: fe_dgp.h:309
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_dgp.cc:236
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:186
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_dgp.cc:129
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_dgp.cc:247
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_dgp.cc:83
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const
Definition: fe_dgp.cc:69
virtual bool hp_constraints_are_implemented() const
Definition: fe_dgp.cc:158
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:204