Reference documentation for deal.II version 9.3.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_raviart_thomas.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2021 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 #ifndef dealii_fe_raviart_thomas_h
17 #define dealii_fe_raviart_thomas_h
18 
19 #include <deal.II/base/config.h>
20 
24 #include <deal.II/base/table.h>
26 
27 #include <deal.II/fe/fe.h>
29 
30 #include <vector>
31 
33 
36 
126 template <int dim>
127 class FE_RaviartThomas : public FE_PolyTensor<dim>
128 {
129 public:
133  FE_RaviartThomas(const unsigned int p);
134 
140  virtual std::string
141  get_name() const override;
142 
143  // documentation inherited from the base class
144  virtual std::unique_ptr<FiniteElement<dim, dim>>
145  clone() const override;
146 
154  virtual bool
155  has_support_on_face(const unsigned int shape_index,
156  const unsigned int face_index) const override;
157 
158  // documentation inherited from the base class
159  virtual void
161  const std::vector<Vector<double>> &support_point_values,
162  std::vector<double> & nodal_values) const override;
163 
168  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
169  get_constant_modes() const override;
170 
171  virtual std::size_t
172  memory_consumption() const override;
173 
174 private:
181  static std::vector<unsigned int>
182  get_dpo_vector(const unsigned int degree);
183 
189  void
190  initialize_support_points(const unsigned int rt_degree);
191 
198  void
200 
212 
220 
293  void
295 
296  // Allow access from other dimensions.
297  template <int dim1>
298  friend class FE_RaviartThomas;
299 };
300 
301 
302 
340 template <int dim>
342 {
343 public:
347  FE_RaviartThomasNodal(const unsigned int p);
348 
354  virtual std::string
355  get_name() const override;
356 
357  // documentation inherited from the base class
358  virtual std::unique_ptr<FiniteElement<dim, dim>>
359  clone() const override;
360 
361  virtual void
363  const std::vector<Vector<double>> &support_point_values,
364  std::vector<double> & nodal_values) const override;
365 
366  virtual void
369  const unsigned int face_no = 0) const override;
370 
371  virtual void
373  const FiniteElement<dim> &source,
374  const unsigned int subface,
375  FullMatrix<double> & matrix,
376  const unsigned int face_no = 0) const override;
377  virtual bool
378  hp_constraints_are_implemented() const override;
379 
380  virtual std::vector<std::pair<unsigned int, unsigned int>>
381  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
382 
383  virtual std::vector<std::pair<unsigned int, unsigned int>>
384  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
385 
386  virtual std::vector<std::pair<unsigned int, unsigned int>>
388  const unsigned int face_no = 0) const override;
389 
395  const unsigned int codim = 0) const override final;
396 
397 private:
404  static std::vector<unsigned int>
405  get_dpo_vector(const unsigned int degree);
406 
411  static std::vector<bool>
412  get_ria_vector(const unsigned int degree);
413 
421  virtual bool
422  has_support_on_face(const unsigned int shape_index,
423  const unsigned int face_index) const override;
424 
434  void
435  initialize_support_points(const unsigned int rt_degree);
436 
440  void
442 };
443 
444 
447 /* -------------- declaration of explicit specializations ------------- */
448 
449 #ifndef DOXYGEN
450 
451 template <>
452 void
454 
455 #endif // DOXYGEN
456 
458 
459 #endif
Contents is actually a matrix.
void initialize_quad_dof_index_permutation_and_sign_change()
const unsigned int degree
Definition: fe_base.h:435
virtual std::size_t memory_consumption() const override
virtual std::string get_name() const override
friend class FE_RaviartThomas
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const
Definition: fe.cc:943
void initialize_support_points(const unsigned int rt_degree)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:395
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe.cc:978
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const
Definition: fe.cc:960
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe.cc:989
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
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const
Definition: fe.cc:1012
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:394
virtual bool hp_constraints_are_implemented() const
Definition: fe.cc:856
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const
Definition: fe.cc:1000
Table< 3, double > interior_weights
Table< 2, double > boundary_weights