14#ifndef PLASK__OPTICAL_H
15#define PLASK__OPTICAL_H
33 static constexpr size_t NUM_VALS = 3;
34 static constexpr const char* NAME =
"refractive index";
35 static constexpr const char* UNIT =
"-";
43 static constexpr const char* NAME =
"permittivity tensor";
44 static constexpr const char* UNIT =
"-";
52 static constexpr const char* NAME =
"optical field magnitude";
53 static constexpr const char* UNIT =
"W/m²";
61 static constexpr const char* NAME =
"electric field";
62 static constexpr const char* UNIT =
"V/m";
70 static constexpr const char* NAME =
"magnetic field";
71 static constexpr const char* UNIT =
"A/m";
81 static constexpr const char* NAME =
"optical field magnitude";
82 static constexpr const char* UNIT =
"W/m²";
88template <
typename SpaceT>
98 static constexpr const char* NAME =
"electric field";
99 static constexpr const char* UNIT =
"V/m";
109 static constexpr const char* NAME =
"magnetic field";
110 static constexpr const char* UNIT =
"A/m";
123 static constexpr const char* NAME =
"wavelength";
124 static constexpr const char* UNIT =
"nm";
133 static constexpr const char* NAME =
"modal extinction";
134 static constexpr const char* UNIT =
"1/cm";
145 static constexpr const char* NAME =
"propagation constant";
146 static constexpr const char* UNIT =
"1/µm";
157 static constexpr const char* NAME =
"effective index";
158 static constexpr const char* UNIT =
"-";