Reference documentation for deal.II version Git 2449c74b32 2021-01-19 22:49:31 +0100
\(\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 
81 template <int dim>
82 class FE_RannacherTurek : public FE_Poly<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 
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
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:380
std::vector< double > weights
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:379
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