Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_fe_nedelec_h
17 #define dealii_fe_nedelec_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/table.h>
21 #include <deal.II/base/tensor.h>
22 #include <deal.II/base/tensor.h>
23 #include <deal.II/base/polynomials_nedelec.h>
24 #include <deal.II/base/polynomial.h>
25 #include <deal.II/base/tensor_product_polynomials.h>
26 #include <deal.II/base/geometry_info.h>
27 #include <deal.II/base/thread_management.h>
28 #include <deal.II/fe/fe.h>
29 #include <deal.II/fe/fe_poly_tensor.h>
30 #include <vector>
31 
32 DEAL_II_NAMESPACE_OPEN
33 
36 
110 template <int dim>
111 class FE_Nedelec : public FE_PolyTensor<PolynomialsNedelec<dim>, dim>
112 {
113 public:
120  FE_Nedelec (const unsigned int order);
121 
127  virtual std::string get_name () const;
128 
129 
134  virtual bool has_support_on_face (const unsigned int shape_index,
135  const unsigned int face_index) const;
136 
145  virtual bool hp_constraints_are_implemented () const;
146 
152  compare_for_face_domination (const FiniteElement<dim> &fe_other) const;
153 
169  virtual std::vector<std::pair<unsigned int, unsigned int> >
170  hp_vertex_dof_identities (const FiniteElement<dim> &fe_other) const;
171 
176  virtual std::vector<std::pair<unsigned int, unsigned int> >
177  hp_line_dof_identities (const FiniteElement<dim> &fe_other) const;
178 
183  virtual std::vector<std::pair<unsigned int, unsigned int> >
184  hp_quad_dof_identities (const FiniteElement<dim> &fe_other) const;
185 
197  virtual void
199  FullMatrix<double> &matrix) const;
200 
212  virtual void
214  const unsigned int subface,
215  FullMatrix<double> &matrix) const;
230  virtual const FullMatrix<double> &
231  get_restriction_matrix (const unsigned int child,
233 
254  virtual const FullMatrix<double> &
255  get_prolongation_matrix (const unsigned int child,
257 
258  // documentation inherited from the base class
259  virtual
260  void
261  convert_generalized_support_point_values_to_dof_values (const std::vector<Vector<double> > &support_point_values,
262  std::vector<double> &nodal_values) const;
263 
267  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
268  get_constant_modes () const;
269 
270  virtual std::size_t memory_consumption () const;
271 
272  virtual
273  std::unique_ptr<FiniteElement<dim,dim> >
274  clone() const;
275 
276 private:
287  static std::vector<unsigned int>
288  get_dpo_vector (const unsigned int degree, bool dg=false);
289 
295  void initialize_support_points (const unsigned int order);
296 
302  void initialize_restriction ();
303 
313 
314  /*
315  * Mutex for protecting initialization of restriction and embedding matrix.
316  */
317  mutable Threads::Mutex mutex;
318 
322  template <int dim1> friend class FE_Nedelec;
323 };
324 
325 /* -------------- declaration of explicit specializations ------------- */
326 
327 #ifndef DOXYGEN
328 
329 template <>
330 void
332 
333 #endif // DOXYGEN
334 
337 DEAL_II_NAMESPACE_CLOSE
338 
339 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_nedelec.cc:2027
friend class FE_Nedelec
Definition: fe_nedelec.h:322
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe_nedelec.cc:3042
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2311
virtual std::size_t memory_consumption() const
Definition: fe_nedelec.cc:4034
const unsigned int degree
Definition: fe_base.h:311
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_nedelec.cc:2573
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2372
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:1991
void initialize_support_points(const unsigned int order)
virtual std::string get_name() const
Definition: fe_nedelec.cc:198
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
Definition: fe_nedelec.cc:3100
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:312
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const
Definition: fe_nedelec.cc:216
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Definition: fe_nedelec.cc:2991
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2413
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2362
virtual bool hp_constraints_are_implemented() const
Definition: fe_nedelec.cc:2355
void initialize_restriction()
Definition: fe_nedelec.cc:525
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_nedelec.cc:4018
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
Definition: fe_nedelec.cc:2468