Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/polynomials_p.h>
21 #include <deal.II/fe/fe_poly.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
27 
283 template <int dim>
284 class FE_DGPMonomial : public FE_Poly<PolynomialsP<dim>,dim>
285 {
286 public:
290  FE_DGPMonomial (const unsigned int p);
291 
297  virtual std::string get_name () const;
298 
322  virtual
323  std::vector<std::pair<unsigned int, unsigned int> >
324  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
325 
333  virtual
334  std::vector<std::pair<unsigned int, unsigned int> >
335  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
336 
344  virtual
345  std::vector<std::pair<unsigned int, unsigned int> >
346  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
347 
356  virtual bool hp_constraints_are_implemented () const;
357 
367  virtual
369  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
370 
384  virtual void
386  FullMatrix<double> &matrix) const;
387 
399  virtual void
401  FullMatrix<double> &matrix) const;
402 
414  virtual void
416  const unsigned int subface,
417  FullMatrix<double> &matrix) const;
418 
423  virtual bool has_support_on_face (const unsigned int shape_index,
424  const unsigned int face_index) const;
425 
434  virtual std::size_t memory_consumption () const;
435 
436  virtual
437  std::unique_ptr<FiniteElement<dim,dim> >
438  clone() const;
439 
440 private:
441 
448  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
449 
453  void initialize_restriction ();
454 };
455 
458 DEAL_II_NAMESPACE_CLOSE
459 
460 #endif
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
FE_DGPMonomial(const unsigned int p)
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
const unsigned int degree
Definition: fe_base.h:311
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
virtual bool hp_constraints_are_implemented() const
void initialize_restriction()
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
virtual std::size_t memory_consumption() const
virtual std::string get_name() const