Reference documentation for deal.II version 8.1.0
fe_dgq.h
1 // ---------------------------------------------------------------------
2 // @f$Id: fe_dgq.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2001 - 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_dgq_h
18 #define __deal2__fe_dgq_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/tensor_product_polynomials.h>
22 #include <deal.II/fe/fe_poly.h>
23 
25 
26 template <int dim, int spacedim> class MappingQ;
27 template <int dim> class Quadrature;
28 
31 
83 template <int dim, int spacedim=dim>
84 class FE_DGQ : public FE_Poly<TensorProductPolynomials<dim>, dim, spacedim>
85 {
86 public:
98  FE_DGQ (const unsigned int p);
99 
109  virtual std::string get_name () const;
110 
127  virtual void
129  FullMatrix<double> &matrix) const;
130 
152  virtual void
154  FullMatrix<double> &matrix) const;
155 
177  virtual void
179  const unsigned int subface,
180  FullMatrix<double> &matrix) const;
181 
207  virtual
208  std::vector<std::pair<unsigned int, unsigned int> >
210 
218  virtual
219  std::vector<std::pair<unsigned int, unsigned int> >
221 
229  virtual
230  std::vector<std::pair<unsigned int, unsigned int> >
232 
245  virtual bool hp_constraints_are_implemented () const;
246 
259  virtual
262 
280  virtual bool has_support_on_face (const unsigned int shape_index,
281  const unsigned int face_index) const;
282 
294  virtual std::size_t memory_consumption () const;
295 
296 
297 protected:
312  FE_DGQ (const Quadrature<1> &points);
313 
321  virtual FiniteElement<dim, spacedim> *clone() const;
322 
323 private:
334  static std::vector<unsigned int> get_dpo_vector (const unsigned int degree);
335 
362  void rotate_indices (std::vector<unsigned int> &indices,
363  const char direction) const;
364 
368  template <int dim1, int spacedim1> friend class FE_DGQ;
369 
375  template <int dim1, int spacedim1> friend class MappingQ;
376 };
377 
378 
379 
395 template <int dim,int spacedim=dim>
396 class FE_DGQArbitraryNodes : public FE_DGQ<dim,spacedim>
397 {
398 public:
409  FE_DGQArbitraryNodes (const Quadrature<1> &points);
410 
420  virtual std::string get_name () const;
421 
422 protected:
430  virtual FiniteElement<dim,spacedim> *clone() const;
431 };
432 
433 
436 DEAL_II_NAMESPACE_CLOSE
437 
438 #endif
virtual FiniteElement< dim, spacedim > * clone() const
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
virtual std::string get_name() const
Definition: fe_dgq.h:84
const unsigned int degree
Definition: fe_base.h:287
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::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual FiniteElement< dim, spacedim > * clone() const
FE_DGQArbitraryNodes(const Quadrature< 1 > &points)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
void rotate_indices(std::vector< unsigned int > &indices, const char direction) const
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual std::string get_name() const
friend class FE_DGQ
Definition: fe_dgq.h:368
virtual bool hp_constraints_are_implemented() const