Reference documentation for deal.II version 8.5.1
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 public:
63 
65 
71  virtual std::string get_name () const;
72 
73 
80  virtual bool has_support_on_face (const unsigned int shape_index,
81  const unsigned int face_index) const;
82 
83  virtual void interpolate(std::vector<double> &local_dofs,
84  const std::vector<double> &values) const DEAL_II_DEPRECATED;
85 
86  virtual void interpolate(std::vector<double> &local_dofs,
87  const std::vector<Vector<double> > &values,
88  const unsigned int offset = 0) const DEAL_II_DEPRECATED;
89 
90  virtual void interpolate(std::vector<double> &local_dofs,
91  const VectorSlice<const std::vector<std::vector<double> > > &values) const DEAL_II_DEPRECATED;
92 
93  virtual std::size_t memory_consumption () const;
94 
95 private:
102  static std::vector<unsigned int>
103  get_dpo_vector (const unsigned int degree);
104 
114  void initialize_support_points (const unsigned int degree);
115 
122  void initialize_restriction ();
123 
131  {
132  public:
144  std::vector<std::vector<Tensor<1,dim> > > shape_values;
145 
155  std::vector<std::vector<Tensor<2,dim> > > shape_gradients;
156  };
157  Table<3, double> interior_weights;
158 };
159 
160 
161 
169 template <int dim, int spacedim=dim>
170 class FE_DGNedelec : public FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>
171 {
172 public:
177  FE_DGNedelec (const unsigned int p);
178 
184  virtual std::string get_name () const;
185 };
186 
187 
188 
197 template <int dim, int spacedim=dim>
198 class FE_DGRaviartThomas : public FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>
199 {
200 public:
204  FE_DGRaviartThomas (const unsigned int p);
205 
211  virtual std::string get_name () const;
212 };
213 
214 
215 
223 template <int dim, int spacedim=dim>
224 class FE_DGBDM : public FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>
225 {
226 public:
230  FE_DGBDM (const unsigned int p);
231 
237  virtual std::string get_name () const;
238 };
239 
240 
241 DEAL_II_NAMESPACE_CLOSE
242 
243 #endif
virtual std::string get_name() const
Definition: fe_dg_vector.cc:57
void initialize_restriction()
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:26
MappingType
Definition: mapping.h:50
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:50
FE_DGVector(const unsigned int p, MappingType m)
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:76
const unsigned int degree
Definition: fe_base.h:311
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_dg_vector.h:144
virtual std::size_t memory_consumption() const
virtual std::string get_name() const
virtual std::string get_name() const
Definition: fe_dg_vector.cc:83
virtual std::string get_name() const
Definition: fe_dg_vector.cc:33
FiniteElement< dim, spacedim > * clone() const
void initialize_support_points(const unsigned int degree)
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const 1
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:155