Reference documentation for deal.II version GIT 6da2e5d553 2022-07-01 18:55: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 - 2022 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 
124 template <int dim>
125 class FE_RaviartThomas : public FE_PolyTensor<dim>
126 {
127 public:
131  FE_RaviartThomas(const unsigned int p);
132 
138  virtual std::string
139  get_name() const override;
140 
141  // documentation inherited from the base class
142  virtual std::unique_ptr<FiniteElement<dim, dim>>
143  clone() const override;
144 
152  virtual bool
153  has_support_on_face(const unsigned int shape_index,
154  const unsigned int face_index) const override;
155 
156  // documentation inherited from the base class
157  virtual void
159  const std::vector<Vector<double>> &support_point_values,
160  std::vector<double> & nodal_values) const override;
161 
166  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
167  get_constant_modes() const override;
168 
169  virtual std::size_t
170  memory_consumption() const override;
171 
172 private:
179  static std::vector<unsigned int>
180  get_dpo_vector(const unsigned int degree);
181 
187  void
188  initialize_support_points(const unsigned int rt_degree);
189 
196  void
198 
210 
218 
292  void
294 
295  // Allow access from other dimensions.
296  template <int dim1>
297  friend class FE_RaviartThomas;
298 };
299 
300 
301 
332 template <int dim>
334 {
335 public:
339  FE_RaviartThomasNodal(const unsigned int p);
340 
346  virtual std::string
347  get_name() const override;
348 
349  // documentation inherited from the base class
350  virtual std::unique_ptr<FiniteElement<dim, dim>>
351  clone() const override;
352 
353  virtual void
356  const unsigned int face_no = 0) const override;
357 
358  virtual void
360  const FiniteElement<dim> &source,
361  const unsigned int subface,
363  const unsigned int face_no = 0) const override;
364 
365  virtual void
367  const std::vector<Vector<double>> &support_point_values,
368  std::vector<double> & nodal_values) const override;
369 
370  virtual bool
371  hp_constraints_are_implemented() const override;
372 
373  virtual std::vector<std::pair<unsigned int, unsigned int>>
374  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
375 
376  virtual std::vector<std::pair<unsigned int, unsigned int>>
377  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
378 
379  virtual std::vector<std::pair<unsigned int, unsigned int>>
381  const unsigned int face_no = 0) const override;
382 
388  const unsigned int codim = 0) const override final;
389 
390  virtual const FullMatrix<double> &
392  const unsigned int child,
393  const RefinementCase<dim> &refinement_case =
395 
396  virtual const FullMatrix<double> &
398  const unsigned int child,
399  const RefinementCase<dim> &refinement_case =
401 
402 private:
407  virtual bool
408  has_support_on_face(const unsigned int shape_index,
409  const unsigned int face_index) const override;
410 
414  void
416 
417  /*
418  * Mutex for protecting initialization of restriction and embedding matrix.
419  */
421 };
422 
425 /* -------------- declaration of explicit specializations ------------- */
426 
427 #ifndef DOXYGEN
428 
429 template <>
430 void
432 
433 #endif // DOXYGEN
434 
436 
437 #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:449
Definition: vector.h:109
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
@ matrix
Contents is actually a matrix.