Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fe_dgp.h
1 // ---------------------------------------------------------------------
2 // @f$Id: fe_dgp.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2002 - 2013 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_h
18 #define __deal2__fe_dgp_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/polynomial_space.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 
30 
112 template <int dim, int spacedim=dim>
113 class FE_DGP : public FE_Poly<PolynomialSpace<dim>,dim,spacedim>
114 {
115 public:
120  FE_DGP (const unsigned int p);
121 
131  virtual std::string get_name () const;
132 
158  virtual
159  std::vector<std::pair<unsigned int, unsigned int> >
161 
169  virtual
170  std::vector<std::pair<unsigned int, unsigned int> >
171  hp_line_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
172 
184  virtual
185  std::vector<std::pair<unsigned int, unsigned int> >
186  hp_quad_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
187 
200  virtual bool hp_constraints_are_implemented () const;
201 
214  virtual
217 
243  virtual void
245  FullMatrix<double> &matrix) const;
246 
268  virtual void
270  const unsigned int subface,
271  FullMatrix<double> &matrix) const;
272 
286  virtual bool has_support_on_face (const unsigned int shape_index,
287  const unsigned int face_index) const;
288 
300  virtual std::size_t memory_consumption () const;
301 
302 
313  struct Matrices
314  {
320 
327  static const unsigned int n_projection_matrices;
328  };
329 
330 protected:
331 
339  virtual FiniteElement<dim,spacedim> *clone() const;
340 
341 private:
342 
353  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
354 };
355 
356 /* @} */
357 #ifndef DOXYGEN
358 
359 
360 // declaration of explicit specializations of member variables, if the
361 // compiler allows us to do that (the standard says we must)
362 #ifndef DEAL_II_MEMBER_VAR_SPECIALIZATION_BUG
363 template <>
365 
366 template <>
368 
369 template <>
371 
372 template <>
374 
375 template <>
377 
378 template <>
380 
381 //codimension 1
382 template <>
384 
385 template <>
387 
388 template <>
390 
391 template <>
393 
394 #endif
395 
396 #endif // DOXYGEN
397 
398 DEAL_II_NAMESPACE_CLOSE
399 
400 #endif
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual std::string get_name() const
const unsigned int degree
Definition: fe_base.h:287
FE_DGP(const unsigned int p)
static const double *const projection_matrices[][GeometryInfo< dim >::max_children_per_cell]
Definition: fe_dgp.h:319
Definition: fe_dgp.h:113
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
static const unsigned int n_projection_matrices
Definition: fe_dgp.h:327
virtual std::size_t memory_consumption() const
virtual bool hp_constraints_are_implemented() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual FiniteElement< dim, spacedim > * clone() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)