hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
axisymmetric_forms.hpp
Go to the documentation of this file.
1#pragma once
20#include <functional>
21#include <optional>
22#include <span>
23#include <vector>
24
25#include <Eigen/Core>
26
27#include "hpfem/core/types.hpp"
29
30namespace hpfem::assembly {
31
33using AxisymmetricTensorField = std::function<Eigen::Matrix<Complex, 3, 1>(const Point<2>&)>;
34
47
49
60
67 const fespace::DofMap<2>& h1, int m,
68 const AxisymmetricFormFactory& form_of_cell,
69 int extra_order = 2,
70 std::span<const Index> cells = {});
71
76 const fespace::NedelecDofMap<2>& nedelec, int m);
77
79[[nodiscard]] std::vector<Index> axis_cells(const mesh::Mesh<2>& mesh, Real tolerance = 1e-10);
80
81} // namespace hpfem::assembly
Definition dof_map.hpp:51
Definition mesh.hpp:61
Definition axisymmetric_forms.hpp:30
AxisymmetricSystem assemble_axisymmetric(const fespace::NedelecDofMap< 2 > &nedelec, const fespace::DofMap< 2 > &h1, int m, const AxisymmetricFormFactory &form_of_cell, int extra_order=2, std::span< const Index > cells={})
std::vector< Index > axis_cells(const mesh::Mesh< 2 > &mesh, Real tolerance=1e-10)
Cells with at least one vertex on the axis r = 0 (within tolerance times the largest r).
SparseMatrix axisymmetric_gradient(const fespace::DofMap< 2 > &h1, const fespace::NedelecDofMap< 2 > &nedelec, int m)
std::function< AxisymmetricForm(Index)> AxisymmetricFormFactory
Definition axisymmetric_forms.hpp:48
std::function< Eigen::Matrix< Complex, 3, 1 >(const Point< 2 > &)> AxisymmetricTensorField
Diagonal tensor in cylindrical components (r, φ, z) as a function of the meridian point.
Definition axisymmetric_forms.hpp:33
double Real
Definition types.hpp:15
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
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 axisymmetric_forms.hpp:38
AxisymmetricTensorField inverse_permeability
Definition axisymmetric_forms.hpp:39
std::optional< int > quadrature_order
Total degree of the quadrature rule for this cell; overrides 2p + extra_order.
Definition axisymmetric_forms.hpp:45
AxisymmetricTensorField permittivity
Definition axisymmetric_forms.hpp:40
AxisymmetricTensorField source
Definition axisymmetric_forms.hpp:43
Definition axisymmetric_forms.hpp:53
SparseMatrix mass
Definition axisymmetric_forms.hpp:55
Index num_h1
Definition axisymmetric_forms.hpp:58
Vector rhs
load of the sources (zero without)
Definition axisymmetric_forms.hpp:56
SparseMatrix stiffness
Definition axisymmetric_forms.hpp:54
Index num_nedelec
Definition axisymmetric_forms.hpp:57