Reference documentation for deal.II version 9.1.0-pre
fe_bdm.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_fe_bdm_h
17 #define dealii_fe_bdm_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/table.h>
25 #include <deal.II/base/tensor_product_polynomials.h>
26 
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 
59 template <int dim>
60 class FE_BDM : public FE_PolyTensor<PolynomialsBDM<dim>, dim>
61 {
62 public:
66  FE_BDM(const unsigned int p);
67 
73  virtual std::string
74  get_name() const override;
75 
76  virtual std::unique_ptr<FiniteElement<dim, dim>>
77  clone() const override;
78 
79  // documentation inherited from the base class
80  virtual void
82  const std::vector<Vector<double>> &support_point_values,
83  std::vector<double> & nodal_values) const override;
84 
85 private:
92  static std::vector<unsigned int>
93  get_dpo_vector(const unsigned int degree);
94 
99  static std::vector<bool>
100  get_ria_vector(const unsigned int degree);
108  void
109  initialize_support_points(const unsigned int bdm_degree);
115  std::vector<std::vector<double>> test_values_face;
121  std::vector<std::vector<double>> test_values_cell;
122 };
123 
124 DEAL_II_NAMESPACE_CLOSE
125 
126 #endif
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double >> &support_point_values, std::vector< double > &nodal_values) const override
Definition: fe_bdm.cc:135
std::vector< std::vector< double > > test_values_cell
Definition: fe_bdm.h:121
void initialize_support_points(const unsigned int bdm_degree)
Definition: fe_bdm.cc:327
const unsigned int degree
Definition: fe_base.h:313
Definition: fe_bdm.h:60
static std::vector< bool > get_ria_vector(const unsigned int degree)
Definition: fe_bdm.cc:240
FE_BDM(const unsigned int p)
Definition: fe_bdm.cc:41
virtual std::string get_name() const override
Definition: fe_bdm.cc:104
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_bdm.cc:126
std::vector< std::vector< double > > test_values_face
Definition: fe_bdm.h:115
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_bdm.cc:216