Reference documentation for deal.II version 9.0.0
fe_raviart_thomas.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2018 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 #ifndef dealii_fe_raviart_thomas_h
17 #define dealii_fe_raviart_thomas_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/table.h>
21 #include <deal.II/base/polynomials_raviart_thomas.h>
22 #include <deal.II/base/polynomial.h>
23 #include <deal.II/base/tensor_product_polynomials.h>
24 #include <deal.II/base/geometry_info.h>
25 #include <deal.II/fe/fe.h>
26 #include <deal.II/fe/fe_poly_tensor.h>
27 
28 #include <vector>
29 
30 DEAL_II_NAMESPACE_OPEN
31 
34 
102 template <int dim>
104  :
105  public FE_PolyTensor<PolynomialsRaviartThomas<dim>, dim>
106 {
107 public:
111  FE_RaviartThomas (const unsigned int p);
112 
118  virtual std::string get_name () const;
119 
120  // documentation inherited from the base class
121  virtual
122  std::unique_ptr<FiniteElement<dim,dim> >
123  clone() const;
124 
132  virtual bool has_support_on_face (const unsigned int shape_index,
133  const unsigned int face_index) const;
134 
135  // documentation inherited from the base class
136  virtual
137  void
138  convert_generalized_support_point_values_to_dof_values (const std::vector<Vector<double> > &support_point_values,
139  std::vector<double> &nodal_values) const;
140 
145  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
146  get_constant_modes () const;
147 
148  virtual std::size_t memory_consumption () const;
149 
150 private:
157  static std::vector<unsigned int>
158  get_dpo_vector (const unsigned int degree);
159 
165  void initialize_support_points (const unsigned int rt_degree);
166 
173  void initialize_restriction ();
174 
186 
194 
198  template <int dim1> friend class FE_RaviartThomas;
199 };
200 
201 
202 
242 template <int dim>
244  :
245  public FE_PolyTensor<PolynomialsRaviartThomas<dim>, dim>
246 {
247 public:
251  FE_RaviartThomasNodal (const unsigned int p);
252 
258  virtual std::string get_name () const;
259 
260  // documentation inherited from the base class
261  virtual
262  std::unique_ptr<FiniteElement<dim,dim> >
263  clone() const;
264 
265  virtual
266  void
267  convert_generalized_support_point_values_to_dof_values (const std::vector<Vector<double> > &support_point_values,
268  std::vector<double> &nodal_values) const;
269 
270  virtual void get_face_interpolation_matrix (const FiniteElement<dim> &source,
271  FullMatrix<double> &matrix) const;
272 
273  virtual void get_subface_interpolation_matrix (const FiniteElement<dim> &source,
274  const unsigned int subface,
275  FullMatrix<double> &matrix) const;
276  virtual bool hp_constraints_are_implemented () const;
277 
278  virtual std::vector<std::pair<unsigned int, unsigned int> >
279  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
280 
281  virtual std::vector<std::pair<unsigned int, unsigned int> >
282  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
283 
284  virtual std::vector<std::pair<unsigned int, unsigned int> >
285  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
286 
288  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
289 
290 private:
297  static std::vector<unsigned int>
298  get_dpo_vector (const unsigned int degree);
299 
304  static std::vector<bool>
305  get_ria_vector (const unsigned int degree);
306 
314  virtual bool has_support_on_face (const unsigned int shape_index,
315  const unsigned int face_index) const;
325  void initialize_support_points (const unsigned int rt_degree);
326 };
327 
328 
331 /* -------------- declaration of explicit specializations ------------- */
332 
333 #ifndef DOXYGEN
334 
335 template <>
336 void
338 
339 #endif // DOXYGEN
340 
341 DEAL_II_NAMESPACE_CLOSE
342 
343 #endif
virtual std::string get_name() const
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::unique_ptr< FiniteElement< dim, dim > > clone() const
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
FE_RaviartThomasNodal(const unsigned int p)
const unsigned int degree
Definition: fe_base.h:311
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
friend class FE_RaviartThomas
virtual std::string get_name() const
void initialize_support_points(const unsigned int rt_degree)
void initialize_support_points(const unsigned int rt_degree)
virtual std::size_t memory_consumption() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
virtual bool hp_constraints_are_implemented() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const
Table< 3, double > interior_weights
Table< 2, double > boundary_weights
static std::vector< bool > get_ria_vector(const unsigned int degree)