Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_rannacher_turek.h
Go to the documentation of this file.
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/config.h>
21 
23 
24 #include <deal.II/fe/fe_base.h>
25 #include <deal.II/fe/fe_poly.h>
26 
27 #include <string>
28 #include <vector>
29 
31 
32 
83 template <int dim>
84 class FE_RannacherTurek : public FE_Poly<PolynomialsRannacherTurek<dim>, dim>
85 {
86 public:
94  FE_RannacherTurek(const unsigned int order = 0,
95  const unsigned int n_face_support_points = 2);
96 
97  virtual std::string
98  get_name() const override;
99 
100  virtual std::unique_ptr<FiniteElement<dim, dim>>
101  clone() const override;
102 
103  // documentation inherited from the base class
104  virtual void
106  const std::vector<Vector<double>> &support_point_values,
107  std::vector<double> & nodal_values) const override;
108 
109 private:
113  const unsigned int order;
114 
119  const unsigned int n_face_support_points;
120 
124  std::vector<double> weights;
125 
129  void
135  std::vector<unsigned int>
136  get_dpo_vector();
137 };
138 
139 
141 
142 #endif
polynomials_rannacher_turek.h
FE_RannacherTurek::convert_generalized_support_point_values_to_dof_values
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_rannacher_turek.cc:113
fe_poly.h
FE_RannacherTurek::order
const unsigned int order
Definition: fe_rannacher_turek.h:113
FE_RannacherTurek::initialize_support_points
void initialize_support_points()
Definition: fe_rannacher_turek.cc:90
FE_RannacherTurek::n_face_support_points
const unsigned int n_face_support_points
Definition: fe_rannacher_turek.h:119
FE_RannacherTurek::weights
std::vector< double > weights
Definition: fe_rannacher_turek.h:124
FE_RannacherTurek::get_name
virtual std::string get_name() const override
Definition: fe_rannacher_turek.cc:67
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_RannacherTurek::clone
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_rannacher_turek.cc:80
FE_RannacherTurek::get_dpo_vector
std::vector< unsigned int > get_dpo_vector()
Definition: fe_rannacher_turek.cc:55
FE_Poly
Definition: fe_poly.h:76
FE_RannacherTurek
Definition: fe_rannacher_turek.h:84
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_RannacherTurek::FE_RannacherTurek
FE_RannacherTurek(const unsigned int order=0, const unsigned int n_face_support_points=2)
Definition: fe_rannacher_turek.cc:32
Vector< double >
fe_base.h