Reference documentation for deal.II version 9.1.0-pre
fe_dgp_monomial.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_fe_dgp_monomial_h
17 #define dealii_fe_dgp_monomial_h
18 
19 #include <deal.II/base/config.h>
20 
21 #include <deal.II/base/polynomials_p.h>
22 
23 #include <deal.II/fe/fe_poly.h>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
29 
285 template <int dim>
286 class FE_DGPMonomial : public FE_Poly<PolynomialsP<dim>, dim>
287 {
288 public:
292  FE_DGPMonomial(const unsigned int p);
293 
299  virtual std::string
300  get_name() const override;
301 
325  virtual std::vector<std::pair<unsigned int, unsigned int>>
326  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
327 
335  virtual std::vector<std::pair<unsigned int, unsigned int>>
336  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
337 
345  virtual std::vector<std::pair<unsigned int, unsigned int>>
346  hp_quad_dof_identities(const FiniteElement<dim> &fe_other) const override;
347 
356  virtual bool
357  hp_constraints_are_implemented() const override;
358 
370  const FiniteElement<dim> &fe_other) const override;
371 
385  virtual void
387  FullMatrix<double> & matrix) const override;
388 
400  virtual void
402  FullMatrix<double> &matrix) const override;
403 
415  virtual void
417  const unsigned int subface,
418  FullMatrix<double> &matrix) const override;
419 
424  virtual bool
425  has_support_on_face(const unsigned int shape_index,
426  const unsigned int face_index) const override;
427 
436  virtual std::size_t
437  memory_consumption() const override;
438 
439  virtual std::unique_ptr<FiniteElement<dim, dim>>
440  clone() const override;
441 
442 private:
449  static std::vector<unsigned int>
450  get_dpo_vector(const unsigned int degree);
451 
455  void
457 };
458 
461 DEAL_II_NAMESPACE_CLOSE
462 
463 #endif
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const override
FE_DGPMonomial(const unsigned int p)
const unsigned int degree
Definition: fe_base.h:313
virtual std::size_t memory_consumption() const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
void initialize_restriction()
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual std::string get_name() const override
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override