Reference documentation for deal.II version 8.5.1
fe_nedelec.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2017 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_nodal_values (const std::vector<Vector<double> > &support_point_values,
262  std::vector<double> &nodal_values) const;
263 
264  virtual void interpolate (std::vector<double> &local_dofs,
265  const std::vector<double> &values) const DEAL_II_DEPRECATED;
266 
267  virtual void interpolate (std::vector<double> &local_dofs,
268  const std::vector<Vector<double> > &values,
269  const unsigned int offset = 0) const DEAL_II_DEPRECATED;
270 
271  virtual void interpolate (std::vector<double> &local_dofs,
272  const VectorSlice<const std::vector<std::vector<double> > > &values) const DEAL_II_DEPRECATED;
273 
277  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
278  get_constant_modes () const;
279 
280  virtual std::size_t memory_consumption () const;
281  virtual FiniteElement<dim> *clone() const;
282 
283 private:
294  static std::vector<unsigned int>
295  get_dpo_vector (const unsigned int degree, bool dg=false);
296 
302  void initialize_support_points (const unsigned int order);
303 
309  void initialize_restriction ();
310 
320 
321  /*
322  * Mutex for protecting initialization of restriction and embedding matrix.
323  */
324  mutable Threads::Mutex mutex;
325 
329  template <int dim1> friend class FE_Nedelec;
330 };
331 
332 /* -------------- declaration of explicit specializations ------------- */
333 
334 #ifndef DOXYGEN
335 
336 template <>
337 void
339 
340 #endif // DOXYGEN
341 
344 DEAL_II_NAMESPACE_CLOSE
345 
346 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_nedelec.cc:2022
friend class FE_Nedelec
Definition: fe_nedelec.h:329
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:3041
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2306
virtual std::size_t memory_consumption() const
Definition: fe_nedelec.cc:6532
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:2571
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2367
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:1986
void initialize_support_points(const unsigned int order)
virtual std::string get_name() const
Definition: fe_nedelec.cc:193
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:319
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:2990
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2408
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const 1
Definition: fe_nedelec.cc:4020
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2357
virtual FiniteElement< dim > * clone() const
Definition: fe_nedelec.cc:211
virtual bool hp_constraints_are_implemented() const
Definition: fe_nedelec.cc:2350
void initialize_restriction()
Definition: fe_nedelec.cc:520
virtual void convert_generalized_support_point_values_to_nodal_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
Definition: fe_nedelec.cc:3099
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_nedelec.cc:6516
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
Definition: fe_nedelec.cc:2465