Reference documentation for deal.II version 9.1.0-pre
fe_rannacher_turek.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2015 - 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 
17 #ifndef dealii_fe_rannacher_turek_h
18 #define dealii_fe_rannacher_turek_h
19 
20 #include <deal.II/base/polynomials_rannacher_turek.h>
21 
22 #include <deal.II/fe/fe_base.h>
23 #include <deal.II/fe/fe_poly.h>
24 
25 #include <string>
26 #include <vector>
27 
28 DEAL_II_NAMESPACE_OPEN
29 
30 
79 template <int dim>
80 class FE_RannacherTurek : public FE_Poly<PolynomialsRannacherTurek<dim>, dim>
81 {
82 public:
90  FE_RannacherTurek(const unsigned int order = 0,
91  const unsigned int n_face_support_points = 2);
92 
93  virtual std::string
94  get_name() const override;
95 
96  virtual std::unique_ptr<FiniteElement<dim, dim>>
97  clone() const override;
98 
99  // documentation inherited from the base class
100  virtual void
102  const std::vector<Vector<double>> &support_point_values,
103  std::vector<double> & nodal_values) const override;
104 
105 private:
109  const unsigned int order;
110 
115  const unsigned int n_face_support_points;
116 
120  std::vector<double> weights;
121 
125  void
131  std::vector<unsigned int>
132  get_dpo_vector();
133 };
134 
135 
136 DEAL_II_NAMESPACE_CLOSE
137 
138 #endif
FE_RannacherTurek(const unsigned int order=0, const unsigned int n_face_support_points=2)
const unsigned int n_face_support_points
virtual std::string get_name() const override
const unsigned int order
std::vector< double > weights
std::vector< unsigned int > get_dpo_vector()
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
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