Reference documentation for deal.II version Git 94dba6c 2014-09-20 10:28:01 +0200
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fe_dgp_monomial.h
1 // ---------------------------------------------------------------------
2 // @f$Id@f$
3 //
4 // Copyright (C) 2004 - 2014 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__fe_dgp_monomial_h
18 #define __deal2__fe_dgp_monomial_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/polynomials_p.h>
22 #include <deal.II/fe/fe_poly.h>
23 
24 DEAL_II_NAMESPACE_OPEN
25 
26 template <int dim, int spacedim> class MappingQ;
27 
28 
31 
91 template <int dim>
92 class FE_DGPMonomial : public FE_Poly<PolynomialsP<dim>,dim>
93 {
94 public:
99  FE_DGPMonomial (const unsigned int p);
100 
110  virtual std::string get_name () const;
111 
137  virtual
138  std::vector<std::pair<unsigned int, unsigned int> >
139  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
140 
148  virtual
149  std::vector<std::pair<unsigned int, unsigned int> >
150  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
151 
163  virtual
164  std::vector<std::pair<unsigned int, unsigned int> >
165  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
166 
180  virtual bool hp_constraints_are_implemented () const;
181 
194  virtual
196  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
197 
218  virtual void
220  FullMatrix<double> &matrix) const;
221 
243  virtual void
245  FullMatrix<double> &matrix) const;
246 
268  virtual void
270  const unsigned int subface,
271  FullMatrix<double> &matrix) const;
272 
277  virtual bool has_support_on_face (const unsigned int shape_index,
278  const unsigned int face_index) const;
279 
291  virtual std::size_t memory_consumption () const;
292 
293 protected:
294 
302  virtual FiniteElement<dim> *clone() const;
303 
304 private:
305 
316  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
317 
323  void initialize_embedding ();
324 
330  void initialize_restriction ();
331 };
332 
335 DEAL_II_NAMESPACE_CLOSE
336 
337 #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