Reference documentation for deal.II version Git 497f915867 2021-09-17 22:46:48 +0200
\(\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 
21 #include <deal.II/base/table.h>
22 
23 #include <deal.II/fe/fe.h>
25 
26 #include <vector>
27 
29 
32 
122 template <int dim>
123 class FE_RaviartThomas : public FE_PolyTensor<dim>
124 {
125 public:
129  FE_RaviartThomas(const unsigned int p);
130 
136  virtual std::string
137  get_name() const override;
138 
139  // documentation inherited from the base class
140  virtual std::unique_ptr<FiniteElement<dim, dim>>
141  clone() const override;
142 
150  virtual bool
151  has_support_on_face(const unsigned int shape_index,
152  const unsigned int face_index) const override;
153 
154  // documentation inherited from the base class
155  virtual void
157  const std::vector<Vector<double>> &support_point_values,
158  std::vector<double> & nodal_values) const override;
159 
164  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
165  get_constant_modes() const override;
166 
167  virtual std::size_t
168  memory_consumption() const override;
169 
170 private:
177  static std::vector<unsigned int>
178  get_dpo_vector(const unsigned int degree);
179 
185  void
186  initialize_support_points(const unsigned int rt_degree);
187 
194  void
196 
208 
216 
289  void
291 
292  // Allow access from other dimensions.
293  template <int dim1>
294  friend class FE_RaviartThomas;
295 };
296 
297 
298 
330 template <int dim>
332 {
333 public:
337  FE_RaviartThomasNodal(const unsigned int p);
338 
344  virtual std::string
345  get_name() const override;
346 
347  // documentation inherited from the base class
348  virtual std::unique_ptr<FiniteElement<dim, dim>>
349  clone() const override;
350 
351  virtual void
354  const unsigned int face_no = 0) const override;
355 
356  virtual void
358  const FiniteElement<dim> &source,
359  const unsigned int subface,
360  FullMatrix<double> & matrix,
361  const unsigned int face_no = 0) const override;
362 
363  virtual void
365  const std::vector<Vector<double>> &support_point_values,
366  std::vector<double> & nodal_values) const override;
367 
368  virtual bool
369  hp_constraints_are_implemented() const override;
370 
371  virtual std::vector<std::pair<unsigned int, unsigned int>>
372  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
373 
374  virtual std::vector<std::pair<unsigned int, unsigned int>>
375  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
376 
377  virtual std::vector<std::pair<unsigned int, unsigned int>>
379  const unsigned int face_no = 0) const override;
380 
386  const unsigned int codim = 0) const override final;
387 
388  virtual const FullMatrix<double> &
390  const unsigned int child,
391  const RefinementCase<dim> &refinement_case =
393 
394  virtual const FullMatrix<double> &
396  const unsigned int child,
397  const RefinementCase<dim> &refinement_case =
399 
400 private:
405  virtual bool
406  has_support_on_face(const unsigned int shape_index,
407  const unsigned int face_index) const override;
408 
412  void
414 
415  /*
416  * Mutex for protecting initialization of restriction and embedding matrix.
417  */
419 };
420 
421 
424 /* -------------- declaration of explicit specializations ------------- */
425 
426 #ifndef DOXYGEN
427 
428 template <>
429 void
431 
432 #endif // DOXYGEN
433 
435 
436 #endif
Contents is actually a matrix.
void initialize_quad_dof_index_permutation_and_sign_change()
const unsigned int degree
Definition: fe_base.h:436
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe.cc:358
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
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe.cc:335
void initialize_support_points(const unsigned int rt_degree)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:401
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:400
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