Reference documentation for deal.II version 9.3.3
\(\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 - 2021 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
143template <int dim>
144class FE_Nedelec : public FE_PolyTensor<dim>
145{
146public:
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,
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
327private:
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
379 void
381
382 // Allow access from other dimensions.
383 template <int dim1>
384 friend class FE_Nedelec;
385};
386
387/* -------------- declaration of explicit specializations ------------- */
388
389#ifndef DOXYGEN
390
391template <>
392void
394
395#endif // DOXYGEN
396
400
401#endif
void initialize_quad_dof_index_permutation_and_sign_change()
Definition: fe_nedelec.cc:218
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2389
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nedelec.cc:2373
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:2592
void initialize_restriction()
Definition: fe_nedelec.cc:576
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:2431
Threads::Mutex mutex
Definition: fe_nedelec.h:370
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree, bool dg=false)
Definition: fe_nedelec.cc:2061
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:3086
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:2485
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_nedelec.cc:249
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nedelec.cc:4102
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:3149
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:3031
virtual std::size_t memory_consumption() const override
Definition: fe_nedelec.cc:4118
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_nedelec.cc:2098
virtual std::string get_name() const override
Definition: fe_nedelec.cc:231
friend class FE_Nedelec
Definition: fe_nedelec.h:384
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nedelec.cc:2337
Table< 2, double > boundary_weights
Definition: fe_nedelec.h:365
void initialize_support_points(const unsigned int order)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
Definition: fe_nedelec.cc:2380
const unsigned int degree
Definition: fe_base.h:435
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
@ matrix
Contents is actually a matrix.