Reference documentation for deal.II version GIT c1ddcf411d 2023-11-30 16:30:02+00:00
\(\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 - 2023 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_data.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
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
std::vector< double > weights
const unsigned int n_face_support_points
const unsigned int order
FE_RannacherTurek(const unsigned int order=0, const unsigned int n_face_support_points=2)
virtual std::string get_name() 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
std::vector< unsigned int > get_dpo_vector()
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478