Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/fe/fe_poly.h>
22 #include <deal.II/fe/fe_base.h>
23 #include <string>
24 #include <vector>
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 
53 template <int dim>
54 class FE_RannacherTurek : public FE_Poly<PolynomialsRannacherTurek<dim>, dim>
55 {
56 public:
64  FE_RannacherTurek(const unsigned int order = 0,
65  const unsigned int n_face_support_points = 2);
66 
67  virtual std::string get_name() const;
68 
69  virtual
70  std::unique_ptr<FiniteElement<dim,dim> >
71  clone() const;
72 
73  // documentation inherited from the base class
74  virtual
75  void
76  convert_generalized_support_point_values_to_dof_values (const std::vector<Vector<double> > &support_point_values,
77  std::vector<double> &nodal_values) const;
78 
79 private:
83  const unsigned int order;
84 
89  const unsigned int n_face_support_points;
90 
94  std::vector<double> weights;
95 
104  std::vector<unsigned int> get_dpo_vector();
105 };
106 
107 
108 DEAL_II_NAMESPACE_CLOSE
109 
110 #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::unique_ptr< FiniteElement< dim, dim > > clone() const
const unsigned int order
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
virtual std::string get_name() const
std::vector< double > weights
std::vector< unsigned int > get_dpo_vector()