Reference documentation for deal.II version 8.4.2
fe_nedelec.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 2015 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 
34 template <int dim, int spacedim> class MappingQ;
35 
36 
39 
113 template <int dim>
114 class FE_Nedelec : public FE_PolyTensor<PolynomialsNedelec<dim>, dim>
115 {
116 public:
120  FE_Nedelec (const unsigned int p);
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  virtual void interpolate (std::vector<double> &local_dofs,
259  const std::vector<double> &values) const;
260 
261  virtual void interpolate (std::vector<double> &local_dofs,
262  const std::vector<Vector<double> > &values,
263  unsigned int offset = 0) const;
264  virtual void interpolate (std::vector<double> &local_dofs,
265  const VectorSlice<const std::vector<std::vector<double> > > &values)
266  const;
267 
271  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
272  get_constant_modes () const;
273 
274  virtual std::size_t memory_consumption () const;
275  virtual FiniteElement<dim> *clone() const;
276 
277 private:
288  static std::vector<unsigned int>
289  get_dpo_vector (const unsigned int degree, bool dg=false);
290 
296  void initialize_support_points (const unsigned int degree);
297 
303  void initialize_restriction ();
304 
314 
315  /*
316  * Mutex for protecting initialization of restriction and embedding matrix.
317  */
318  mutable Threads::Mutex mutex;
319 
323  template <int dim1> friend class FE_Nedelec;
324 };
325 
326 /* -------------- declaration of explicit specializations ------------- */
327 
328 #ifndef DOXYGEN
329 
330 template <>
331 void
333 
334 #endif // DOXYGEN
335 
338 DEAL_II_NAMESPACE_CLOSE
339 
340 #endif
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_nedelec.cc:2003
friend class FE_Nedelec
Definition: fe_nedelec.h:323
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:3021
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2287
virtual std::size_t memory_consumption() const
Definition: fe_nedelec.cc:5583
const unsigned int degree
Definition: fe_base.h:299
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_nedelec.cc:2552
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2348
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:1967
virtual std::string get_name() const
Definition: fe_nedelec.cc:174
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:313
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:2971
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2389
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const
Definition: fe_nedelec.cc:2338
virtual FiniteElement< dim > * clone() const
Definition: fe_nedelec.cc:192
virtual bool hp_constraints_are_implemented() const
Definition: fe_nedelec.cc:2331
void initialize_restriction()
Definition: fe_nedelec.cc:501
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const
Definition: fe_nedelec.cc:3071
void initialize_support_points(const unsigned int degree)
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_nedelec.cc:5567
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix) const
Definition: fe_nedelec.cc:2446