Reference documentation for deal.II version 9.0.0
fe_dg_vector.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2017 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_dg_vector_h
17 #define dealii_fe_dg_vector_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/table.h>
21 #include <deal.II/base/polynomials_raviart_thomas.h>
22 #include <deal.II/base/polynomials_nedelec.h>
23 #include <deal.II/base/polynomials_bdm.h>
24 #include <deal.II/base/polynomial.h>
25 #include <deal.II/base/tensor_product_polynomials.h>
26 #include <deal.II/base/geometry_info.h>
27 #include <deal.II/fe/fe.h>
28 #include <deal.II/fe/fe_poly_tensor.h>
29 
30 #include <vector>
31 
32 DEAL_II_NAMESPACE_OPEN
33 
52 template <class PolynomialType, int dim, int spacedim=dim>
54  :
55  public FE_PolyTensor<PolynomialType, dim, spacedim>
56 {
57 public:
61  FE_DGVector (const unsigned int p, MappingType m);
62 
68  virtual std::string get_name () const;
69 
70  virtual
71  std::unique_ptr<FiniteElement<dim,spacedim> >
72  clone() const;
73 
80  virtual bool has_support_on_face (const unsigned int shape_index,
81  const unsigned int face_index) const;
82 
83  virtual std::size_t memory_consumption () const;
84 
85 private:
92  static std::vector<unsigned int>
93  get_dpo_vector (const unsigned int degree);
94 
102  {
103  public:
115  std::vector<std::vector<Tensor<1,dim> > > shape_values;
116 
126  std::vector<std::vector<Tensor<2,dim> > > shape_gradients;
127  };
128  Table<3, double> interior_weights;
129 };
130 
131 
132 
140 template <int dim, int spacedim=dim>
141 class FE_DGNedelec : public FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>
142 {
143 public:
148  FE_DGNedelec (const unsigned int p);
149 
155  virtual std::string get_name () const;
156 };
157 
158 
159 
168 template <int dim, int spacedim=dim>
169 class FE_DGRaviartThomas : public FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>
170 {
171 public:
175  FE_DGRaviartThomas (const unsigned int p);
176 
182  virtual std::string get_name () const;
183 };
184 
185 
186 
194 template <int dim, int spacedim=dim>
195 class FE_DGBDM : public FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>
196 {
197 public:
201  FE_DGBDM (const unsigned int p);
202 
208  virtual std::string get_name () const;
209 };
210 
211 
212 DEAL_II_NAMESPACE_CLOSE
213 
214 #endif
virtual std::string get_name() const
Definition: fe_dg_vector.cc:60
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:29
MappingType
Definition: mapping.h:51
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:53
FE_DGVector(const unsigned int p, MappingType m)
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:79
const unsigned int degree
Definition: fe_base.h:311
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_dg_vector.h:115
virtual std::size_t memory_consumption() const
virtual std::string get_name() const
virtual std::string get_name() const
Definition: fe_dg_vector.cc:86
virtual std::string get_name() const
Definition: fe_dg_vector.cc:36
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_dg_vector.h:126