Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
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
400template <int dim>
401class FE_Nedelec : public FE_PolyTensor<dim>
402{
403public:
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
501 FullMatrix<double> & matrix,
502 const unsigned int face_no = 0) const override;
503
515 virtual void
517 const FiniteElement<dim> &source,
518 const unsigned int subface,
519 FullMatrix<double> & matrix,
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
598private:
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
642
650 void
652
653 // Allow access from other dimensions.
654 template <int dim1>
655 friend class FE_Nedelec;
656};
657
658/* -------------- declaration of explicit specializations ------------- */
659
660#ifndef DOXYGEN
661
662template <>
663void
665
666#endif // DOXYGEN
667
671
672#endif
void initialize_quad_dof_index_permutation_and_sign_change()
std::vector< unsigned int > get_embedding_dofs(const unsigned int sub_degree) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) 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
void initialize_restriction()
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
Threads::Mutex mutex
Definition fe_nedelec.h:641
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) 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::unique_ptr< FiniteElement< dim, dim > > clone() const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() 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 const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual std::size_t memory_consumption() const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual std::string get_name() const override
friend class FE_Nedelec
Definition fe_nedelec.h:655
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
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
const unsigned int degree
Definition fe_data.h:453
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473