Reference documentation for deal.II version Git 840703ecf3 2019-10-14 17:15:20 -0400
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_dg_vector.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2018 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.md at
12 // the top level directory of deal.II.
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 
21 #include <deal.II/base/geometry_info.h>
22 #include <deal.II/base/polynomial.h>
23 #include <deal.II/base/polynomials_bdm.h>
24 #include <deal.II/base/polynomials_nedelec.h>
25 #include <deal.II/base/polynomials_raviart_thomas.h>
26 #include <deal.II/base/table.h>
27 #include <deal.II/base/tensor_product_polynomials.h>
28 
29 #include <deal.II/fe/fe.h>
30 #include <deal.II/fe/fe_poly_tensor.h>
31 
32 #include <vector>
33 
34 DEAL_II_NAMESPACE_OPEN
35 
54 template <class PolynomialType, int dim, int spacedim = dim>
55 class FE_DGVector : public FE_PolyTensor<dim, spacedim>
56 {
57 public:
61  FE_DGVector(const unsigned int p, MappingKind m);
62 
69  virtual std::string
70  get_name() const override;
71 
72  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
73  clone() const override;
74 
81  virtual bool
82  has_support_on_face(const unsigned int shape_index,
83  const unsigned int face_index) const override;
84 
85  virtual std::size_t
86  memory_consumption() const override;
87 
88 private:
95  static std::vector<unsigned int>
96  get_dpo_vector(const unsigned int degree);
97 
105  {
106  public:
118  std::vector<std::vector<Tensor<1, dim>>> shape_values;
119 
129  std::vector<std::vector<Tensor<2, dim>>> shape_gradients;
130  };
131  Table<3, double> interior_weights;
132 };
133 
134 
135 
143 template <int dim, int spacedim = dim>
144 class FE_DGNedelec : public FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>
145 {
146 public:
151  FE_DGNedelec(const unsigned int p);
152 
158  virtual std::string
159  get_name() const override;
160 };
161 
162 
163 
172 template <int dim, int spacedim = dim>
174  : public FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>
175 {
176 public:
180  FE_DGRaviartThomas(const unsigned int p);
181 
187  virtual std::string
188  get_name() const override;
189 };
190 
191 
192 
200 template <int dim, int spacedim = dim>
201 class FE_DGBDM : public FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>
202 {
203 public:
207  FE_DGBDM(const unsigned int p);
208 
214  virtual std::string
215  get_name() const override;
216 };
217 
218 
219 DEAL_II_NAMESPACE_CLOSE
220 
221 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual std::string get_name() const override
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
const unsigned int degree
Definition: fe_base.h:298
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_dg_vector.h:129
MappingKind
Definition: mapping.h:62
virtual std::size_t memory_consumption() const override
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_dg_vector.h:118
FE_DGVector(const unsigned int p, MappingKind m)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)