34using ComplexCurl = Eigen::Matrix<Complex, Dim == 2 ? 1 : 3, 1>;
144 int extra_order = 2);
151 std::span<const Index> cells,
int extra_order = 2);
Definition condensation.hpp:27
Definition dof_map.hpp:51
Definition nedelec_basis.hpp:54
Definition geometry.hpp:88
Definition point_location.hpp:34
Definition axisymmetric_forms.hpp:30
std::function< ComplexCurl< Dim >(const Point< Dim > &)> ComplexCurlField
Definition maxwell_forms.hpp:48
std::function< ComplexVector< Dim >(const Point< Dim > &)> ComplexVectorField
Definition maxwell_forms.hpp:46
template AssembledSystem assemble_maxwell_operator< 3 >(const fespace::NedelecDofMap< 3 > &, const CellFormFactory< 3 > &, Real, int, StaticCondensation *)
Eigen::Matrix< Complex, Dim==2 ? 1 :3, 1 > ComplexCurl
Curl of a physical field: scalar (1-vector) in 2D, 3-vector in 3D.
Definition maxwell_forms.hpp:34
Matrix assemble_maxwell_loads(const fespace::NedelecDofMap< Dim > &dofs, std::span< const std::type_identity_t< CellFormFactory< Dim > > > forms, int extra_order=2)
template ComplexCurl< 3 > evaluate_hcurl_curl< 3 >(const fespace::NedelecDofMap< 3 > &, const Vector &, Index, const Point< 3 > &)
template ComplexCurl< 2 > evaluate_hcurl_curl< 2 >(const fespace::NedelecDofMap< 2 > &, const Vector &, Index, const Point< 2 > &)
Eigen::Matrix< Complex, Dim, 1 > ComplexVector
Definition maxwell_forms.hpp:31
std::function< Eigen::Matrix< Complex, Dim, Dim >(const Point< Dim > &)> TensorField
Definition h1_forms.hpp:30
template ComplexVector< 3 > evaluate_hcurl< 3 >(const fespace::NedelecDofMap< 3 > &, const Vector &, Index, const Point< 3 > &)
AssembledSystem assemble_maxwell_operator(const fespace::NedelecDofMap< Dim > &dofs, const std::type_identity_t< CellFormFactory< Dim > > &form_of_cell, Real k_squared, int extra_order=2, StaticCondensation *condensation=nullptr)
template MaxwellSystem assemble_maxwell< 3 >(const fespace::NedelecDofMap< 3 > &, const MaxwellForm< 3 > &, int)
template MaxwellElement element_maxwell< 3 >(const fespace::NedelecBasis< 3 > &, const mesh::CellGeometry< 3 > &, const QuadratureRule< 3 > &, const MaxwellForm< 3 > &)
template MaxwellElement element_maxwell< 2 >(const fespace::NedelecBasis< 2 > &, const mesh::CellGeometry< 2 > &, const QuadratureRule< 2 > &, const MaxwellForm< 2 > &)
MaxwellSystem assemble_maxwell(const fespace::NedelecDofMap< Dim > &dofs, const MaxwellForm< Dim > &form, int extra_order=2)
Assembles S, M and b over all cells with rules exact for degree 2 p_c + extra_order.
Eigen::Matrix< Complex, Dim==2 ? 1 :3, Dim==2 ? 1 :3 > InversePermeabilityTensor
Definition maxwell_forms.hpp:39
template Matrix assemble_maxwell_loads< 3 >(const fespace::NedelecDofMap< 3 > &, std::span< const CellFormFactory< 3 > >, int)
template Vector assemble_maxwell_load< 3 >(const fespace::NedelecDofMap< 3 > &, const CellFormFactory< 3 > &, int)
template ComplexVector< 2 > evaluate_hcurl< 2 >(const fespace::NedelecDofMap< 2 > &, const Vector &, Index, const Point< 2 > &)
MaxwellElement element_maxwell(const fespace::NedelecBasis< Dim > &basis, const mesh::CellGeometry< Dim > &geometry, const QuadratureRule< Dim > &rule, const MaxwellForm< Dim > &form)
template HcurlErrorNorms hcurl_error< 2 >(const fespace::NedelecDofMap< 2 > &, const Vector &, const ComplexVectorField< 2 > &, const std::function< ComplexCurl< 2 >(const Point< 2 > &)> &, int)
Vector assemble_maxwell_load(const fespace::NedelecDofMap< Dim > &dofs, const std::type_identity_t< CellFormFactory< Dim > > &form_of_cell, int extra_order=2)
Load vector alone (new sources on an unchanged operator).
HcurlErrorNorms hcurl_error(const fespace::NedelecDofMap< Dim > &dofs, const Vector &e_h, const std::type_identity_t< ComplexVectorField< Dim > > &field, const std::type_identity_t< std::function< ComplexCurl< Dim >(const Point< Dim > &)> > &curl, int extra_order=2)
template Vector assemble_maxwell_load< 2 >(const fespace::NedelecDofMap< 2 > &, const CellFormFactory< 2 > &, int)
template AssembledSystem assemble_maxwell_operator< 2 >(const fespace::NedelecDofMap< 2 > &, const CellFormFactory< 2 > &, Real, int, StaticCondensation *)
template Matrix assemble_maxwell_loads< 2 >(const fespace::NedelecDofMap< 2 > &, std::span< const CellFormFactory< 2 > >, int)
ComplexVector< Dim > evaluate_hcurl(const fespace::NedelecDofMap< Dim > &dofs, const Vector &e_h, Index c, const Point< Dim > &xi)
Physical value of the discrete field at reference point ξ of cell c.
template HcurlErrorNorms hcurl_error< 3 >(const fespace::NedelecDofMap< 3 > &, const Vector &, const ComplexVectorField< 3 > &, const std::function< ComplexCurl< 3 >(const Point< 3 > &)> &, int)
Eigen::Matrix< Complex, Dim, Dim > PermittivityTensor
Permittivity tensor ε (Dim × Dim) and inverse permeability tensor acting on curls.
Definition maxwell_forms.hpp:37
ComplexCurl< Dim > evaluate_hcurl_curl(const fespace::NedelecDofMap< Dim > &dofs, const Vector &e_h, Index c, const Point< Dim > &xi)
std::function< InversePermeabilityTensor< Dim >(const Point< Dim > &)> CurlTensorField
Definition maxwell_forms.hpp:44
std::function< MaxwellForm< Dim >(Index)> CellFormFactory
Definition maxwell_forms.hpp:97
template MaxwellSystem assemble_maxwell< 2 >(const fespace::NedelecDofMap< 2 > &, const MaxwellForm< 2 > &, int)
double Real
Definition types.hpp:15
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic > Matrix
Definition types.hpp:22
Eigen::SparseMatrix< Complex, Eigen::RowMajor, Index > SparseMatrix
Definition types.hpp:24
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17
Eigen::Matrix< Complex, Eigen::Dynamic, 1 > Vector
Definition types.hpp:20
Definition h1_forms.hpp:66
Errors of the discrete field against (E, curl E).
Definition maxwell_forms.hpp:133
Real curl_norm
‖curl E‖_L2
Definition maxwell_forms.hpp:137
Real l2
‖E_h − E‖_L2
Definition maxwell_forms.hpp:134
Real curl
‖curl E_h − curl E‖_L2
Definition maxwell_forms.hpp:135
Real l2_norm
‖E‖_L2
Definition maxwell_forms.hpp:136
Element stiffness, mass and load of one cell in NedelecBasis function order.
Definition maxwell_forms.hpp:69
Vector load
Definition maxwell_forms.hpp:72
Matrix stiffness
Definition maxwell_forms.hpp:70
Matrix mass
Definition maxwell_forms.hpp:71
Definition maxwell_forms.hpp:84
SparseMatrix mass
M.
Definition maxwell_forms.hpp:86
SparseMatrix stiffness
S.
Definition maxwell_forms.hpp:85
Vector rhs
b
Definition maxwell_forms.hpp:87
Definition quadrature.hpp:18