Reference documentation for deal.II version 8.5.1
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  virtual FiniteElement<dim> *clone() const;
69 
70  // documentation inherited from the base class
71  virtual
72  void
73  convert_generalized_support_point_values_to_nodal_values (const std::vector<Vector<double> > &support_point_values,
74  std::vector<double> &nodal_values) const;
75 
76  virtual void interpolate(std::vector<double> &local_dofs,
77  const std::vector<double> &values) const DEAL_II_DEPRECATED;
78 
79  virtual void interpolate(std::vector<double> &local_dofs,
80  const std::vector<Vector<double> > &values,
81  const unsigned int offset = 0) const DEAL_II_DEPRECATED;
82 
83  virtual void interpolate(std::vector<double> &local_dofs,
84  const VectorSlice<const std::vector<std::vector<double> > > &values) const DEAL_II_DEPRECATED;
85 private:
89  const unsigned int order;
90 
95  const unsigned int n_face_support_points;
96 
100  std::vector<double> weights;
101 
110  std::vector<unsigned int> get_dpo_vector();
111 };
112 
113 
114 DEAL_II_NAMESPACE_CLOSE
115 
116 #endif
FE_RannacherTurek(const unsigned int order=0, const unsigned int n_face_support_points=2)
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const 1
const unsigned int n_face_support_points
virtual FiniteElement< dim > * clone() const
const unsigned int order
virtual std::string get_name() const
std::vector< double > weights
virtual void convert_generalized_support_point_values_to_nodal_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
std::vector< unsigned int > get_dpo_vector()