fiber_modes
Step-index optical fibre (weakly guiding LP modes) and symmetric slab waveguide: numerical aperture, V number, single-mode cutoff wavelength, every guided mode with its cutoff and effective index from the exact characteristic equation (Bessel J and K computed, no tables), LP01 mode-field diameter by Marcuse's fit; slab TE and TM modes.
- Field
- Waves, optics and circuits
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001fibre closed forms: NA = sqrt(1.45^2 - 1.44^2) = 0.17, V = 2 pi a NA / lambda, LP11 cutoff at j01 = 2.404825557695773 (Abramowitz & Stegun Table 9.5), cutoff wavelength 2 pi a NA / j01; rel 1e-9 (bisection to machine precision)passed
numerical_aperture0.17 ± 1.7e-130.17locked0.033 % of the tolerance usedacceptance_half_angle_deg9.78782 ± 9.8e-129.78782locked0.036 % of the tolerance usedv_number2.06737 ± 2.1e-122.06737locked0.064 % of the tolerance usedlp11_cutoff_V2.40483 ± 2.4e-092.40483lockedunder 0.01 % of the tolerance usedcutoff_wavelength_nm1332.5 ± 1.3e-061332.5lockedunder 0.01 % of the tolerance usedsingle_mode= truetruelockedexact matchlp_mode_count= 11lockedexact matchmode_count= 22lockedexact matchr0002Marcuse (1977) mode-field fit w0/a = 0.65 + 1.619 V^-1.5 + 2.879 V^-6 at V = 2.06737, a = 3 um: MFD = 7.389163480 um, rel 1e-9 (closed form); LP01 n_eff lies between n2 = 1.44 and n1 = 1.45passed
mode_field_diameter_um7.38916 ± 7.4e-097.38916lockedunder 0.01 % of the tolerance usedneff_lp011.44 to 1.451.44438lockedinside the rangeb_lp010 to 10.437556lockedinside the ranger0003LP mode count from Bessel zeros (Abramowitz & Stegun Table 9.5): V = 5.130, just below j21 = 5.135622, guides LP01 LP11 LP21 LP02 = 4 LP modes, 12 with polarisations; LP21 and LP02 cut off at j11 = 3.831705970207512, rel 1e-9passed
lp_mode_count= 44lockedexact matchmode_count= 1212lockedexact matchsingle_mode= falsefalselockedexact matchmodes.LP21.cutoff_V{"value": 3.831705970207512, "rel_tol": 1e-09}modes.LP02.cutoff_V{"value": 3.831705970207512, "rel_tol": 1e-09}r0004LP31 appears above j21 = 5.135622301840683 (Abramowitz & Stegun Table 9.5): V = 5.140 guides 5 LP modes, 16 with polarisations; LP31 cutoff rel 1e-9passed
lp_mode_count= 55lockedexact matchmode_count= 1616lockedexact matchmodes.LP31.cutoff_V{"value": 5.135622301840683, "rel_tol": 1e-09}r0005LP01 b at V = 2 against the Rudolph-Neumann approximation b = (1.1428 - 0.996/V)^2 = 0.415767 (Jeunhomme, Single-Mode Fiber Optics; accurate to 0.2 % for 1.5 < V < 2.5, so rel_tol 2e-3: the reference, not the solver, is approximate)passed
v_number2 ± 2e-122locked0.022 % of the tolerance usedb_lp010.415767 ± 0.000830.416163locked48 % of the tolerance usedr0006symmetric slab TE0 exact: V = pi d NA / lambda = 2 pi/3 solves tan u = w/u at u = pi/3, w = sqrt(3) pi/3, so b = 3/4 and n_eff = sqrt(1.44 + 0.75 * 0.81); TE count ceil(V/(pi/2)) = 2; single-mode cutoff lambda = 2 d NA = 1200 nm; rel 1e-9passed
v_number2.0944 ± 2.1e-122.0944lockedunder 0.01 % of the tolerance usedb_te00.75 ± 7.5e-100.75lockedunder 0.01 % of the tolerance usedneff_te01.43091 ± 1.4e-091.43091lockedunder 0.01 % of the tolerance usedte_mode_count= 22lockedexact matchmode_count= 44lockedexact matchcutoff_wavelength_nm1200 ± 1.2e-091200locked0.019 % of the tolerance usedsingle_mode= falsefalselockedexact matchr0007symmetric slab TM0 exact: tan u = rho w/u with rho = (n1/n2)^2 = 1.5625 has root u = pi/4, w = u/rho at V = (pi/4) sqrt(1 + 1/rho^2), so b = 1/(1 + rho^2) = 0.2905788876; one TE and one TM mode (V = 0.9325 < pi/2); rel 1e-9passed
v_number0.932476 ± 9.3e-130.932476locked0.012 % of the tolerance usedb_tm00.290579 ± 2.9e-100.290579lockedunder 0.01 % of the tolerance usedte_mode_count= 11lockedexact matchsingle_mode= truetruelockedexact match
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
geometry | fiber | fiber: step-index circular core of radius core_radius_um; slab: symmetric planar core of full thickness slab_thickness_um. | |
n_core | 1 | 1.4492 | Core refractive index at the wavelength. |
n_clad | 1 | 1.444 | Cladding refractive index at the wavelength (must be below n_core). |
wavelength_nm | nm | 1550 | Vacuum wavelength. |
core_radius_um | um | 4.1 | Fibre core radius a (half the core diameter). Used when geometry = fiber. |
slab_thickness_um | um | 1.0 | Full core thickness d of the slab. Used when geometry = slab; V = (pi d / lambda) NA. |
Readings
| Name | Unit | Meaning |
|---|---|---|
geometry | fiber or slab | |
numerical_aperture | 1 | sqrt(n_core^2 - n_clad^2) |
acceptance_half_angle_deg | deg | asin(NA), launch from air |
index_contrast_percent | % | Delta = (n1^2 - n2^2) / (2 n1^2) |
v_number | 1 | fibre: 2 pi a NA / lambda; slab: pi d NA / lambda |
single_mode | fibre: V < j01 = 2.405; slab: V <= pi/2 (one TE and one TM mode) | |
lp11_cutoff_V | 1 | first zero of J0, computed |
cutoff_wavelength_nm | nm | longest wavelength at which the second mode is guided |
lp_mode_count | 1 | guided LP modes (null above V = 150) |
mode_count | 1 | fibre: guided modes counting polarisations and orientations; slab: TE plus TM |
mode_count_estimate | 1 | V^2/2, the large-V estimate |
u_lp01 | 1 | |
w_lp01 | 1 | |
b_lp01 | 1 | normalised propagation constant (n_eff^2 - n2^2) / (n1^2 - n2^2) |
neff_lp01 | 1 | |
beta_lp01_per_um | 1/um | |
core_power_fraction_lp01 | 1 | |
b_lp11 | 1 | |
neff_lp11 | 1 | |
mode_field_diameter_um | um | LP01, Marcuse fit, given for 0.8 <= V <= 2.5 only |
mfd_over_core_diameter | 1 | |
te_mode_count | 1 | |
tm_mode_count | 1 | |
b_te0 | 1 | |
neff_te0 | 1 | |
beta_te0_per_um | 1/um | |
b_tm0 | 1 | |
neff_tm0 | 1 | |
modes | the first 12 guided modes, highest n_eff first; out/modes.csv holds all | |
convention | the V and mode-count conventions used, in words | |
warnings | list of plain-language warnings | |
modes_listed | 1 | rows of the modes table kept in the readings. Files: out/modes.csv (every guided mode), out/dispersion.csv (fundamental mode against wavelength, 0.5 to 2 times the input), out/field_lp01.csv (fibre: LP01 radial field and the Marcuse Gaussian) |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.