Reference documentation for deal.II version Git 3ff8e288d2 2020-02-20 17:30:00 +0100
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
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 
147 template <int dim, int spacedim = dim>
148 class FE_DGNedelec : public FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>
149 {
150 public:
155  FE_DGNedelec(const unsigned int p);
156 
162  virtual std::string
163  get_name() const override;
164 };
165 
166 
167 
180 template <int dim, int spacedim = dim>
182  : public FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>
183 {
184 public:
188  FE_DGRaviartThomas(const unsigned int p);
189 
195  virtual std::string
196  get_name() const override;
197 };
198 
199 
200 
213 template <int dim, int spacedim = dim>
214 class FE_DGBDM : public FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>
215 {
216 public:
220  FE_DGBDM(const unsigned int p);
221 
227  virtual std::string
228  get_name() const override;
229 };
230 
231 
232 DEAL_II_NAMESPACE_CLOSE
233 
234 #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)