Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_bdm.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 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_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/tensor_product_polynomials.h>
25 
26 #include <deal.II/fe/fe.h>
27 #include <deal.II/fe/fe_poly_tensor.h>
28 
29 #include <vector>
30 
31 DEAL_II_NAMESPACE_OPEN
32 
58 template <int dim>
59 class FE_BDM : public FE_PolyTensor<PolynomialsBDM<dim>, dim>
60 {
61 public:
65  FE_BDM(const unsigned int p);
66 
72  virtual std::string
73  get_name() const override;
74 
75  virtual std::unique_ptr<FiniteElement<dim, dim>>
76  clone() const override;
77 
78  // documentation inherited from the base class
79  virtual void
81  const std::vector<Vector<double>> &support_point_values,
82  std::vector<double> & nodal_values) const override;
83 
84 private:
91  static std::vector<unsigned int>
92  get_dpo_vector(const unsigned int degree);
93 
98  static std::vector<bool>
99  get_ria_vector(const unsigned int degree);
107  void
108  initialize_support_points(const unsigned int bdm_degree);
114  std::vector<std::vector<double>> test_values_face;
120  std::vector<std::vector<double>> test_values_cell;
121 };
122 
123 DEAL_II_NAMESPACE_CLOSE
124 
125 #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:134
std::vector< std::vector< double > > test_values_cell
Definition: fe_bdm.h:120
void initialize_support_points(const unsigned int bdm_degree)
Definition: fe_bdm.cc:326
const unsigned int degree
Definition: fe_base.h:298
Definition: fe_bdm.h:59
static std::vector< bool > get_ria_vector(const unsigned int degree)
Definition: fe_bdm.cc:239
FE_BDM(const unsigned int p)
Definition: fe_bdm.cc:40
virtual std::string get_name() const override
Definition: fe_bdm.cc:103
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_bdm.cc:125
std::vector< std::vector< double > > test_values_face
Definition: fe_bdm.h:114
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_bdm.cc:215