Reference documentation for deal.II version 9.4.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_nedelec.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_nedelec_h
17 #define dealii_fe_nedelec_h
18 
19 #include <deal.II/base/config.h>
20 
24 #include <deal.II/base/table.h>
25 #include <deal.II/base/tensor.h>
28 
29 #include <deal.II/fe/fe.h>
31 
32 #include <vector>
33 
35 
38 
398 template <int dim>
399 class FE_Nedelec : public FE_PolyTensor<dim>
400 {
401 public:
416  FE_Nedelec(const unsigned int order);
417 
423  virtual std::string
424  get_name() const override;
425 
426 
431  virtual bool
432  has_support_on_face(const unsigned int shape_index,
433  const unsigned int face_index) const override;
434 
443  virtual bool
444  hp_constraints_are_implemented() const override;
445 
451  const unsigned int codim = 0) const override final;
452 
468  virtual std::vector<std::pair<unsigned int, unsigned int>>
469  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
470 
475  virtual std::vector<std::pair<unsigned int, unsigned int>>
476  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
477 
482  virtual std::vector<std::pair<unsigned int, unsigned int>>
484  const unsigned int face_no = 0) const override;
485 
497  virtual void
500  const unsigned int face_no = 0) const override;
501 
513  virtual void
515  const FiniteElement<dim> &source,
516  const unsigned int subface,
518  const unsigned int face_no = 0) const override;
519 
534  virtual const FullMatrix<double> &
536  const unsigned int child,
537  const RefinementCase<dim> &refinement_case =
539 
560  virtual const FullMatrix<double> &
562  const unsigned int child,
563  const RefinementCase<dim> &refinement_case =
565 
566  // documentation inherited from the base class
567  virtual void
569  const std::vector<Vector<double>> &support_point_values,
570  std::vector<double> & nodal_values) const override;
571 
575  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
576  get_constant_modes() const override;
577 
578  virtual std::size_t
579  memory_consumption() const override;
580 
581  virtual std::unique_ptr<FiniteElement<dim, dim>>
582  clone() const override;
583 
593  std::vector<unsigned int>
594  get_embedding_dofs(const unsigned int sub_degree) const;
595 
596 private:
607  static std::vector<unsigned int>
608  get_dpo_vector(const unsigned int degree, bool dg = false);
609 
615  void
616  initialize_support_points(const unsigned int order);
617 
623  void
625 
635 
640 
648  void
650 
651  // Allow access from other dimensions.
652  template <int dim1>
653  friend class FE_Nedelec;
654 };
655 
656 /* -------------- declaration of explicit specializations ------------- */
657 
658 #ifndef DOXYGEN
659 
660 template <>
661 void
663 
664 #endif // DOXYGEN
665 
669 
670 #endif
void initialize_quad_dof_index_permutation_and_sign_change()
Definition: fe_nedelec.cc:218
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
Definition: fe_nedelec.cc:4126
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2389
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2373
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
Definition: fe_nedelec.cc:2592
void initialize_restriction()
Definition: fe_nedelec.cc:576
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
Definition: fe_nedelec.cc:3149
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
Definition: fe_nedelec.cc:2431
Threads::Mutex mutex
Definition: fe_nedelec.h:639
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:2061
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_nedelec.cc:3086
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
Definition: fe_nedelec.cc:2485
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:249
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4102
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_nedelec.cc:3031
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4118
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2098
virtual std::string get_name() const override
Definition: fe_nedelec.cc:231
friend class FE_Nedelec
Definition: fe_nedelec.h:653
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2337
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:634
void initialize_support_points(const unsigned int order)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2380
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.