Reference documentation for deal.II version 8.4.2
fe_dgp.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2015 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_h
17 #define dealii__fe_dgp_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/polynomial_space.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 
29 
310 template <int dim, int spacedim=dim>
311 class FE_DGP : public FE_Poly<PolynomialSpace<dim>,dim,spacedim>
312 {
313 public:
317  FE_DGP (const unsigned int p);
318 
324  virtual std::string get_name () const;
325 
349  virtual
350  std::vector<std::pair<unsigned int, unsigned int> >
352 
360  virtual
361  std::vector<std::pair<unsigned int, unsigned int> >
362  hp_line_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
363 
371  virtual
372  std::vector<std::pair<unsigned int, unsigned int> >
373  hp_quad_dof_identities (const FiniteElement<dim,spacedim> &fe_other) const;
374 
383  virtual bool hp_constraints_are_implemented () const;
384 
394  virtual
397 
413  virtual void
415  FullMatrix<double> &matrix) const;
416 
428  virtual void
430  const unsigned int subface,
431  FullMatrix<double> &matrix) const;
432 
437  virtual bool has_support_on_face (const unsigned int shape_index,
438  const unsigned int face_index) const;
439 
448  virtual std::size_t memory_consumption () const;
449 
450 
457  struct Matrices
458  {
463 
467  static const unsigned int n_projection_matrices;
468  };
469 
474  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
475  get_constant_modes () const;
476 
477 protected:
478 
484  virtual FiniteElement<dim,spacedim> *clone() const;
485 
486 private:
487 
494  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
495 };
496 
497 /* @} */
498 #ifndef DOXYGEN
499 
500 
501 // declaration of explicit specializations of member variables, if the
502 // compiler allows us to do that (the standard says we must)
503 #ifndef DEAL_II_MEMBER_VAR_SPECIALIZATION_BUG
504 template <>
506 
507 template <>
509 
510 template <>
512 
513 template <>
515 
516 template <>
518 
519 template <>
521 
522 //codimension 1
523 template <>
525 
526 template <>
528 
529 template <>
531 
532 template <>
534 
535 #endif
536 
537 #endif // DOXYGEN
538 
539 DEAL_II_NAMESPACE_CLOSE
540 
541 #endif
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_dgp.cc:98
virtual FiniteElement< dim, spacedim > * clone() const
Definition: fe_dgp.cc:67
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:166
virtual std::string get_name() const
Definition: fe_dgp.cc:49
virtual std::size_t memory_consumption() const
Definition: fe_dgp.cc:257
const unsigned int degree
Definition: fe_base.h:299
FE_DGP(const unsigned int p)
Definition: fe_dgp.cc:25
static const double *const projection_matrices[][GeometryInfo< dim >::max_children_per_cell]
Definition: fe_dgp.h:462
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:219
Definition: fe_dgp.h:311
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_dgp.cc:234
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:184
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_dgp.cc:127
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_dgp.cc:245
static const unsigned int n_projection_matrices
Definition: fe_dgp.h:467
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_dgp.cc:81
virtual bool hp_constraints_are_implemented() const
Definition: fe_dgp.cc:156
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_dgp.cc:202