Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_dg_vector.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2019 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 
26 #include <deal.II/base/table.h>
28 
29 #include <deal.II/fe/fe.h>
31 
32 #include <vector>
33 
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  };
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 
233 
234 #endif
tensor_product_polynomials.h
FE_DGVector::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
MappingKind
MappingKind
Definition: mapping.h:62
FE_DGBDM::get_name
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:86
polynomial.h
FE_DGRaviartThomas::get_name
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:61
FE_DGBDM
Definition: fe_dg_vector.h:214
FE_DGVector
Definition: fe_dg_vector.h:55
FE_DGVector::interior_weights
Table< 3, double > interior_weights
Definition: fe_dg_vector.h:131
FE_DGNedelec::get_name
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:36
FE_DGVector::FE_DGVector
FE_DGVector(const unsigned int p, MappingKind m)
Table< 3, double >
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
polynomials_bdm.h
FE_DGVector::InternalData::shape_values
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_dg_vector.h:118
FE_DGNedelec::FE_DGNedelec
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:29
FE_DGVector::InternalData
Definition: fe_dg_vector.h:104
FE_DGVector::memory_consumption
virtual std::size_t memory_consumption() const override
geometry_info.h
FE_DGVector::get_name
virtual std::string get_name() const override
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_DGVector::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
fe.h
polynomials_raviart_thomas.h
FE_DGBDM::FE_DGBDM
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:79
FiniteElement
Definition: fe.h:648
fe_poly_tensor.h
FE_DGRaviartThomas::FE_DGRaviartThomas
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:52
FE_DGVector::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
FE_DGRaviartThomas
Definition: fe_dg_vector.h:181
FiniteElement::InternalDataBase
Definition: fe.h:682
FE_DGVector::InternalData::shape_gradients
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_dg_vector.h:129
FE_PolyTensor
Definition: fe_poly_tensor.h:143
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_DGNedelec
Definition: fe_dg_vector.h:148
polynomials_nedelec.h
table.h