Reference documentation for deal.II version 9.2.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 - 2019 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 
146 template <int dim>
147 class FE_Nedelec : public FE_PolyTensor<dim>
148 {
149 public:
162  FE_Nedelec(const unsigned int order);
163 
169  virtual std::string
170  get_name() const override;
171 
172 
177  virtual bool
178  has_support_on_face(const unsigned int shape_index,
179  const unsigned int face_index) const override;
180 
189  virtual bool
190  hp_constraints_are_implemented() const override;
191 
197  const unsigned int codim = 0) const override final;
198 
214  virtual std::vector<std::pair<unsigned int, unsigned int>>
215  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
216 
221  virtual std::vector<std::pair<unsigned int, unsigned int>>
222  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
223 
228  virtual std::vector<std::pair<unsigned int, unsigned int>>
229  hp_quad_dof_identities(const FiniteElement<dim> &fe_other) const override;
230 
242  virtual void
244  FullMatrix<double> &matrix) const override;
245 
257  virtual void
259  const unsigned int subface,
260  FullMatrix<double> &matrix) const override;
261 
276  virtual const FullMatrix<double> &
278  const unsigned int child,
279  const RefinementCase<dim> &refinement_case =
281 
302  virtual const FullMatrix<double> &
304  const unsigned int child,
305  const RefinementCase<dim> &refinement_case =
307 
308  // documentation inherited from the base class
309  virtual void
311  const std::vector<Vector<double>> &support_point_values,
312  std::vector<double> & nodal_values) const override;
313 
317  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
318  get_constant_modes() const override;
319 
320  virtual std::size_t
321  memory_consumption() const override;
322 
323  virtual std::unique_ptr<FiniteElement<dim, dim>>
324  clone() const override;
325 
326 private:
337  static std::vector<unsigned int>
338  get_dpo_vector(const unsigned int degree, bool dg = false);
339 
345  void
346  initialize_support_points(const unsigned int order);
347 
353  void
355 
365 
370 
371  // Allow access from other dimensions.
372  template <int dim1>
373  friend class FE_Nedelec;
374 };
375 
376 /* -------------- declaration of explicit specializations ------------- */
377 
378 #ifndef DOXYGEN
379 
380 template <>
381 void
383 
384 #endif // DOXYGEN
385 
389 
390 #endif
FE_Nedelec::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
Definition: fe_nedelec.cc:2422
FE_Nedelec::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2035
tensor_product_polynomials.h
Threads::Mutex
Definition: thread_management.h:91
FE_Nedelec::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2310
FE_Nedelec::FE_Nedelec
friend class FE_Nedelec
Definition: fe_nedelec.h:373
FE_Nedelec::compare_for_domination
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2274
polynomial.h
FE_Nedelec::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:1999
FE_Nedelec::get_prolongation_matrix
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:2955
FE_Nedelec::get_constant_modes
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4019
FE_Nedelec::convert_generalized_support_point_values_to_dof_values
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:3073
FE_Nedelec::boundary_weights
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:364
Table< 2, double >
FE_Nedelec::initialize_support_points
void initialize_support_points(const unsigned int order)
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
thread_management.h
tensor.h
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
geometry_info.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_Nedelec::hp_line_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2326
FE_Nedelec::hp_quad_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2368
RefinementCase
Definition: geometry_info.h:795
FE_Nedelec::hp_vertex_dof_identities
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2317
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
fe.h
FE_Nedelec::mutex
Threads::Mutex mutex
Definition: fe_nedelec.h:369
FiniteElement< dim >
fe_poly_tensor.h
FE_Nedelec::initialize_restriction
void initialize_restriction()
Definition: fe_nedelec.cc:515
FE_Nedelec::get_name
virtual std::string get_name() const override
Definition: fe_nedelec.cc:207
FE_PolyTensor
Definition: fe_poly_tensor.h:143
FE_Nedelec::memory_consumption
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4035
config.h
FullMatrix< double >
FE_Nedelec::clone
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:225
FE_Nedelec::get_subface_interpolation_matrix
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
Definition: fe_nedelec.cc:2524
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_Nedelec
Definition: fe_nedelec.h:147
Vector< double >
polynomials_nedelec.h
table.h
FE_Nedelec::get_restriction_matrix
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:3010