Reference documentation for deal.II version Git f2670cf 2014-12-18 09:41:14 +0100
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fe_dgp_monomial.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2014 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 __deal2__fe_dgp_monomial_h
17 #define __deal2__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 
25 template <int dim, int spacedim> class MappingQ;
26 
27 
30 
84 template <int dim>
85 class FE_DGPMonomial : public FE_Poly<PolynomialsP<dim>,dim>
86 {
87 public:
91  FE_DGPMonomial (const unsigned int p);
92 
98  virtual std::string get_name () const;
99 
123  virtual
124  std::vector<std::pair<unsigned int, unsigned int> >
125  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
126 
134  virtual
135  std::vector<std::pair<unsigned int, unsigned int> >
136  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
137 
145  virtual
146  std::vector<std::pair<unsigned int, unsigned int> >
147  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
148 
157  virtual bool hp_constraints_are_implemented () const;
158 
167  virtual
169  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
170 
184  virtual void
186  FullMatrix<double> &matrix) const;
187 
199  virtual void
201  FullMatrix<double> &matrix) const;
202 
214  virtual void
216  const unsigned int subface,
217  FullMatrix<double> &matrix) const;
218 
223  virtual bool has_support_on_face (const unsigned int shape_index,
224  const unsigned int face_index) const;
225 
234  virtual std::size_t memory_consumption () const;
235 
236 protected:
237 
243  virtual FiniteElement<dim> *clone() const;
244 
245 private:
246 
253  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
254 
258  void initialize_embedding ();
259 
263  void initialize_restriction ();
264 };
265 
268 DEAL_II_NAMESPACE_CLOSE
269 
270 #endif
FE_DGPMonomial(const unsigned int p)
const unsigned int degree
Definition: fe_base.h:287
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
virtual bool hp_constraints_are_implemented() const
virtual FiniteElement< dim > * clone() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
void initialize_restriction()
virtual std::size_t memory_consumption() const
virtual void get_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
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
void initialize_embedding()
virtual std::string get_name() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const