Reference documentation for deal.II version Git 2aaa42d1ba 2020-09-23 13:17:36 +0200
\(\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 
143 template <int dim>
144 class FE_Nedelec : public FE_PolyTensor<dim>
145 {
146 public:
159  FE_Nedelec(const unsigned int order);
160 
166  virtual std::string
167  get_name() const override;
168 
169 
174  virtual bool
175  has_support_on_face(const unsigned int shape_index,
176  const unsigned int face_index) const override;
177 
186  virtual bool
187  hp_constraints_are_implemented() const override;
188 
194  const unsigned int codim = 0) const override final;
195 
211  virtual std::vector<std::pair<unsigned int, unsigned int>>
212  hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
213 
218  virtual std::vector<std::pair<unsigned int, unsigned int>>
219  hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
220 
225  virtual std::vector<std::pair<unsigned int, unsigned int>>
227  const unsigned int face_no = 0) const override;
228 
240  virtual void
243  const unsigned int face_no = 0) const override;
244 
256  virtual void
258  const FiniteElement<dim> &source,
259  const unsigned int subface,
260  FullMatrix<double> & matrix,
261  const unsigned int face_no = 0) const override;
262 
277  virtual const FullMatrix<double> &
279  const unsigned int child,
280  const RefinementCase<dim> &refinement_case =
282 
303  virtual const FullMatrix<double> &
305  const unsigned int child,
306  const RefinementCase<dim> &refinement_case =
308 
309  // documentation inherited from the base class
310  virtual void
312  const std::vector<Vector<double>> &support_point_values,
313  std::vector<double> & nodal_values) const override;
314 
318  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
319  get_constant_modes() const override;
320 
321  virtual std::size_t
322  memory_consumption() const override;
323 
324  virtual std::unique_ptr<FiniteElement<dim, dim>>
325  clone() const override;
326 
327 private:
338  static std::vector<unsigned int>
339  get_dpo_vector(const unsigned int degree, bool dg = false);
340 
346  void
347  initialize_support_points(const unsigned int order);
348 
354  void
356 
366 
371 
372  // Allow access from other dimensions.
373  template <int dim1>
374  friend class FE_Nedelec;
375 };
376 
377 /* -------------- declaration of explicit specializations ------------- */
378 
379 #ifndef DOXYGEN
380 
381 template <>
382 void
384 
385 #endif // DOXYGEN
386 
390 
391 #endif
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:3071
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2358
friend class FE_Nedelec
Definition: fe_nedelec.h:374
Contents is actually a matrix.
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2322
const unsigned int degree
Definition: fe_base.h:431
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:3016
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:2577
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4087
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:3134
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:2047
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2374
void initialize_support_points(const unsigned int order)
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:365
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2365
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
Threads::Mutex mutex
Definition: fe_nedelec.h:370
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:2416
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:2470
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4103
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362
virtual std::string get_name() const override
Definition: fe_nedelec.cc:216
void initialize_restriction()
Definition: fe_nedelec.cc:562
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:234
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2083