Reference documentation for deal.II version GIT 7b2de2f2f9 2023-09-24 11:00: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_raviart_thomas.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 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 #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/mutex.h>
22 #include <deal.II/base/table.h>
23 
24 #include <deal.II/fe/fe.h>
26 
27 #include <vector>
28 
30 
127 template <int dim>
128 class FE_RaviartThomas : public FE_PolyTensor<dim>
129 {
130 public:
134  FE_RaviartThomas(const unsigned int p);
135 
141  virtual std::string
142  get_name() const override;
143 
144  // documentation inherited from the base class
145  virtual std::unique_ptr<FiniteElement<dim, dim>>
146  clone() const override;
147 
155  virtual bool
156  has_support_on_face(const unsigned int shape_index,
157  const unsigned int face_index) const override;
158 
159  // documentation inherited from the base class
160  virtual void
162  const std::vector<Vector<double>> &support_point_values,
163  std::vector<double> &nodal_values) const override;
164 
169  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
170  get_constant_modes() const override;
171 
172  virtual std::size_t
173  memory_consumption() const override;
174 
175 private:
182  static std::vector<unsigned int>
183  get_dpo_vector(const unsigned int degree);
184 
190  void
191  initialize_support_points(const unsigned int rt_degree);
192 
199  void
201 
213 
221 
295  void
297 
298  // Allow access from other dimensions.
299  template <int dim1>
300  friend class FE_RaviartThomas;
301 };
302 
303 
304 
335 template <int dim>
337 {
338 public:
342  FE_RaviartThomasNodal(const unsigned int p);
343 
349  virtual std::string
350  get_name() const override;
351 
352  // documentation inherited from the base class
353  virtual std::unique_ptr<FiniteElement<dim, dim>>
354  clone() const override;
355 
356  virtual void
359  const unsigned int face_no = 0) const override;
360 
361  virtual void
363  const FiniteElement<dim> &source,
364  const unsigned int subface,
366  const unsigned int face_no = 0) const override;
367 
368  virtual void
370  const std::vector<Vector<double>> &support_point_values,
371  std::vector<double> &nodal_values) const override;
372 
373  virtual bool
374  hp_constraints_are_implemented() const override;
375 
376  virtual std::vector<std::pair<unsigned int, unsigned int>>
377  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
378 
379  virtual std::vector<std::pair<unsigned int, unsigned int>>
380  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
381 
382  virtual std::vector<std::pair<unsigned int, unsigned int>>
384  const unsigned int face_no = 0) const override;
385 
391  const unsigned int codim = 0) const override final;
392 
393  virtual const FullMatrix<double> &
395  const unsigned int child,
396  const RefinementCase<dim> &refinement_case =
398 
399  virtual const FullMatrix<double> &
401  const unsigned int child,
402  const RefinementCase<dim> &refinement_case =
404 
405 private:
410  virtual bool
411  has_support_on_face(const unsigned int shape_index,
412  const unsigned int face_index) const override;
413 
417  void
419 
420  /*
421  * Mutex for protecting initialization of restriction and embedding matrix.
422  */
424 };
425 
428 /* -------------- declaration of explicit specializations ------------- */
429 
430 #ifndef DOXYGEN
431 
432 template <>
433 void
435 
436 #endif // DOXYGEN
437 
439 
440 #endif
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
void initialize_quad_dof_index_permutation_and_sign_change()
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
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
virtual bool hp_constraints_are_implemented() const override
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other, const unsigned int face_no=0) const override
FE_RaviartThomasNodal(const unsigned int p)
virtual std::size_t memory_consumption() 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
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Table< 3, double > interior_weights
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Table< 2, double > boundary_weights
void initialize_quad_dof_index_permutation_and_sign_change()
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
friend class FE_RaviartThomas
void initialize_support_points(const unsigned int rt_degree)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::string get_name() const override
const unsigned int degree
Definition: fe_data.h:453
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478
@ matrix
Contents is actually a matrix.