Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_rannacher_turek.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2015 - 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 
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 
81 template <int dim>
82 class FE_RannacherTurek : public FE_Poly<PolynomialsRannacherTurek<dim>, dim>
83 {
84 public:
92  FE_RannacherTurek(const unsigned int order = 0,
93  const unsigned int n_face_support_points = 2);
94 
95  virtual std::string
96  get_name() const override;
97 
98  virtual std::unique_ptr<FiniteElement<dim, dim>>
99  clone() const override;
100 
101  // documentation inherited from the base class
102  virtual void
104  const std::vector<Vector<double>> &support_point_values,
105  std::vector<double> & nodal_values) const override;
106 
107 private:
111  const unsigned int order;
112 
117  const unsigned int n_face_support_points;
118 
122  std::vector<double> weights;
123 
127  void
133  std::vector<unsigned int>
134  get_dpo_vector();
135 };
136 
137 
138 DEAL_II_NAMESPACE_CLOSE
139 
140 #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