|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <span>#include <vector>#include "hpfem/core/types.hpp"#include "hpfem/fespace/dof_map.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | hpfem |
| namespace | hpfem::assembly |
Functions | |
| template<int Dim> | |
| SparseMatrix | hpfem::assembly::discrete_gradient (const fespace::DofMap< Dim > &h1, const fespace::NedelecDofMap< Dim > &nedelec) |
| SparseMatrix | hpfem::assembly::extract (const SparseMatrix &matrix, std::span< const Index > rows, std::span< const Index > cols) |
Rows rows and columns cols of a sparse matrix as a new compressed matrix. | |
| std::vector< Index > | hpfem::assembly::free_dofs (Index n, std::span< const Index > constrained) |
| Complement of a sorted list of constrained DoFs in 0..n-1, ascending. | |
| template SparseMatrix | hpfem::assembly::discrete_gradient< 2 > (const fespace::DofMap< 2 > &, const fespace::NedelecDofMap< 2 > &) |
| template SparseMatrix | hpfem::assembly::discrete_gradient< 3 > (const fespace::DofMap< 3 > &, const fespace::NedelecDofMap< 3 > &) |
The discrete gradient G: coefficients of the H1 space → coefficients of the Nédélec space such that ∇(Σ u_i φ_i^{H1}) = Σ (G u)_j φ_j^{ND} exactly (docs/theory/nedelec.md#gauging). Because the hierarchical Nédélec basis contains the gradients of the H1 basis explicitly, G has entries ±1 (Whitney functions of the edges at a vertex) and 1 (higher functions).