hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
band_sensitivity.hpp
Go to the documentation of this file.
1#pragma once
40#include <vector>
41
42#include "hpfem/core/types.hpp"
43#include "hpfem/mesh/mesh.hpp"
46
47namespace hpfem::physics {
48
52 std::vector<Real> eigenvalue;
55 std::vector<Real> wavenumber;
56 std::vector<Real> angular_frequency;
57 std::vector<Index> multiplicity;
58};
59
64template <int Dim>
66 const Bands<Dim>& bands, mesh::Tag tag,
67 Real degeneracy_tolerance = 1e-6);
68
71template <int Dim>
73 const Bands<Dim>& bands, mesh::Tag tag,
74 Real degeneracy_tolerance = 1e-6);
75
84template <int Dim>
86 const Bands<Dim>& bands,
87 const NodeField& velocity,
88 Real relative_step = 1e-6,
89 Real degeneracy_tolerance = 1e-6);
90
96template <int Dim>
98 const Bands<Dim>& bands,
99 const Point<Dim>& direction,
100 Real degeneracy_tolerance = 1e-6);
101
107template <int Dim>
108[[nodiscard]] std::vector<Point<Dim>> group_velocity(const BandStructure<Dim>& problem,
109 const Bands<Dim>& bands,
110 Real degeneracy_tolerance = 1e-6);
111
113 const Bands<2>&, mesh::Tag, Real);
115 const Bands<3>&, mesh::Tag, Real);
117 const Bands<2>&, mesh::Tag, Real);
119 const Bands<3>&, mesh::Tag, Real);
121 const NodeField&, Real, Real);
123 const NodeField&, Real, Real);
125 const Bands<2>&, const Point<2>&,
126 Real);
128 const Bands<3>&, const Point<3>&,
129 Real);
130extern template std::vector<Point<2>> group_velocity<2>(const BandStructure<2>&, const Bands<2>&,
131 Real);
132extern template std::vector<Point<3>> group_velocity<3>(const BandStructure<3>&, const Bands<3>&,
133 Real);
134
135} // namespace hpfem::physics
Assembles the pencil once and solves the Bloch eigenproblem per wave vector.
Definition band_structure.hpp:63
std::int32_t Tag
Integer tag of a physical group (Gmsh convention: positive; 0 means untagged).
Definition mesh.hpp:23
Definition absorption.hpp:21
BandDerivative band_wave_vector_derivative(const BandStructure< Dim > &problem, const Bands< Dim > &bands, const Point< Dim > &direction, Real degeneracy_tolerance=1e-6)
template BandDerivative band_permittivity_derivative< 3 >(const BandStructure< 3 > &, const Bands< 3 > &, mesh::Tag, Real)
BandDerivative band_shape_derivative(const BandStructure< Dim > &problem, const Bands< Dim > &bands, const NodeField &velocity, Real relative_step=1e-6, Real degeneracy_tolerance=1e-6)
template BandDerivative band_permeability_derivative< 2 >(const BandStructure< 2 > &, const Bands< 2 > &, mesh::Tag, Real)
template std::vector< Point< 3 > > group_velocity< 3 >(const BandStructure< 3 > &, const Bands< 3 > &, Real)
template BandDerivative band_wave_vector_derivative< 2 >(const BandStructure< 2 > &, const Bands< 2 > &, const Point< 2 > &, Real)
template BandDerivative band_permeability_derivative< 3 >(const BandStructure< 3 > &, const Bands< 3 > &, mesh::Tag, Real)
std::vector< Point< Dim > > group_velocity(const BandStructure< Dim > &problem, const Bands< Dim > &bands, Real degeneracy_tolerance=1e-6)
BandDerivative band_permeability_derivative(const BandStructure< Dim > &problem, const Bands< Dim > &bands, mesh::Tag tag, Real degeneracy_tolerance=1e-6)
template std::vector< Point< 2 > > group_velocity< 2 >(const BandStructure< 2 > &, const Bands< 2 > &, Real)
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > NodeField
Definition shape_sensitivity.hpp:48
template BandDerivative band_permittivity_derivative< 2 >(const BandStructure< 2 > &, const Bands< 2 > &, mesh::Tag, Real)
template BandDerivative band_wave_vector_derivative< 3 >(const BandStructure< 3 > &, const Bands< 3 > &, const Point< 3 > &, Real)
BandDerivative band_permittivity_derivative(const BandStructure< Dim > &problem, const Bands< Dim > &bands, mesh::Tag tag, Real degeneracy_tolerance=1e-6)
template BandDerivative band_shape_derivative< 3 >(const BandStructure< 3 > &, const Bands< 3 > &, const NodeField &, Real, Real)
template BandDerivative band_shape_derivative< 2 >(const BandStructure< 2 > &, const Bands< 2 > &, const NodeField &, Real, Real)
double Real
Definition types.hpp:15
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
Definition band_sensitivity.hpp:51
std::vector< Index > multiplicity
size of the band's degenerate cluster (1: simple)
Definition band_sensitivity.hpp:57
std::vector< Real > wavenumber
Definition band_sensitivity.hpp:55
std::vector< Real > eigenvalue
Definition band_sensitivity.hpp:52
std::vector< Real > angular_frequency
[rad/s per unit p]
Definition band_sensitivity.hpp:56
The bands at one Bloch wave vector.
Definition band_structure.hpp:48