Reference documentation for deal.II version GIT 01a9543f1b 2023-12-05 20:40: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_nedelec.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_nedelec_h
17 #define dealii_fe_nedelec_h
18 
19 #include <deal.II/base/config.h>
20 
22 #include <deal.II/base/mutex.h>
25 #include <deal.II/base/table.h>
26 #include <deal.II/base/tensor.h>
28 
29 #include <deal.II/fe/fe.h>
31 
32 #include <vector>
33 
35 
400 template <int dim>
401 class FE_Nedelec : public FE_PolyTensor<dim>
402 {
403 public:
418  FE_Nedelec(const unsigned int order);
419 
425  virtual std::string
426  get_name() const override;
427 
428 
433  virtual bool
434  has_support_on_face(const unsigned int shape_index,
435  const unsigned int face_index) const override;
436 
445  virtual bool
446  hp_constraints_are_implemented() const override;
447 
453  const unsigned int codim = 0) const override final;
454 
470  virtual std::vector<std::pair<unsigned int, unsigned int>>
471  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
472 
477  virtual std::vector<std::pair<unsigned int, unsigned int>>
478  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
479 
484  virtual std::vector<std::pair<unsigned int, unsigned int>>
486  const unsigned int face_no = 0) const override;
487 
499  virtual void
502  const unsigned int face_no = 0) const override;
503 
515  virtual void
517  const FiniteElement<dim> &source,
518  const unsigned int subface,
520  const unsigned int face_no = 0) const override;
521 
536  virtual const FullMatrix<double> &
538  const unsigned int child,
539  const RefinementCase<dim> &refinement_case =
541 
562  virtual const FullMatrix<double> &
564  const unsigned int child,
565  const RefinementCase<dim> &refinement_case =
567 
568  // documentation inherited from the base class
569  virtual void
571  const std::vector<Vector<double>> &support_point_values,
572  std::vector<double> &nodal_values) const override;
573 
577  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
578  get_constant_modes() const override;
579 
580  virtual std::size_t
581  memory_consumption() const override;
582 
583  virtual std::unique_ptr<FiniteElement<dim, dim>>
584  clone() const override;
585 
595  std::vector<unsigned int>
596  get_embedding_dofs(const unsigned int sub_degree) const;
597 
598 private:
609  static std::vector<unsigned int>
610  get_dpo_vector(const unsigned int degree, bool dg = false);
611 
617  void
618  initialize_support_points(const unsigned int order);
619 
625  void
627 
637 
644 
652  void
654 
655  // Allow access from other dimensions.
656  template <int dim1>
657  friend class FE_Nedelec;
658 };
659 
660 /* -------------- declaration of explicit specializations ------------- */
661 
662 #ifndef DOXYGEN
663 
664 template <>
665 void
667 
668 #endif // DOXYGEN
669 
673 
674 #endif
void initialize_quad_dof_index_permutation_and_sign_change()
Definition: fe_nedelec.cc:217
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
Definition: fe_nedelec.cc:4125
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2388
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2372
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:2591
void initialize_restriction()
Definition: fe_nedelec.cc:575
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:3148
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:2430
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:2060
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:3085
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:2484
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:248
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4101
Threads::Mutex restriction_matrix_mutex
Definition: fe_nedelec.h:642
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:3030
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4117
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2097
virtual std::string get_name() const override
Definition: fe_nedelec.cc:230
friend class FE_Nedelec
Definition: fe_nedelec.h:657
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2336
Threads::Mutex prolongation_matrix_mutex
Definition: fe_nedelec.h:643
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:636
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:2379
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.