Reference documentation for deal.II version Git b877c58cc1 2020-01-27 15:25:11 -0700
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_nedelec.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2018 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 
21 #include <deal.II/base/geometry_info.h>
22 #include <deal.II/base/polynomial.h>
23 #include <deal.II/base/polynomials_nedelec.h>
24 #include <deal.II/base/table.h>
25 #include <deal.II/base/tensor.h>
26 #include <deal.II/base/tensor_product_polynomials.h>
27 #include <deal.II/base/thread_management.h>
28 
29 #include <deal.II/fe/fe.h>
30 #include <deal.II/fe/fe_poly_tensor.h>
31 
32 #include <vector>
33 
34 DEAL_II_NAMESPACE_OPEN
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 
388 DEAL_II_NAMESPACE_CLOSE
389 
390 #endif
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
Definition: fe_nedelec.cc:2525
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:3011
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const override
Definition: fe_nedelec.cc:2423
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2311
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2275
const unsigned int degree
Definition: fe_base.h:298
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:2956
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4022
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:3074
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:2000
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2327
void initialize_support_points(const unsigned int order)
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:364
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2318
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2369
Threads::Mutex mutex
Definition: fe_nedelec.h:369
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4038
virtual std::string get_name() const override
Definition: fe_nedelec.cc:207
void initialize_restriction()
Definition: fe_nedelec.cc:516
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:225
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2036