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 = √(1.45² - 1.44²) = 0.17, V = 2 π a NA / λ, LP11 cutoff at j01 = 2.404825557695773 (Abramowitz & Stegun Table 9.5), cutoff wavelength 2 π a NA / j01; rel 10⁻⁹ (bisection to machine precision)passed
numerical_aperture0.17 ± 1.7 × 10⁻¹³0.17locked0.033 % of the tolerance usedacceptance_half_angle_deg9.78782 ± 9.8 × 10⁻¹²9.78782locked0.036 % of the tolerance usedv_number2.06737 ± 2.1 × 10⁻¹²2.06737locked0.064 % of the tolerance usedlp11_cutoff_V2.40483 ± 2.4 × 10⁻⁹2.40483lockedunder 0.01 % of the tolerance usedcutoff_wavelength_nm1332.5 ± 1.3 × 10⁻⁶1332.5lockedunder 0.01 % of the tolerance usedsingle_mode= truetruelockedexact matchlp_mode_count= 11lockedexact matchmode_count= 22lockedexact matchr0002Marcuse (1977) mode-field fit w₀/a = 0.65 + 1.619 V⁻¹.5 + 2.879 V⁻⁶ at V = 2.06737, a = 3 µm: MFD = 7.389163480 µm, rel 10⁻⁹ (closed form); LP01
n_efflies between n₂ = 1.44 and n₁ = 1.45passedmode_field_diameter_um7.38916 ± 7.4 × 10⁻⁹7.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 10⁻⁹passed
lp_mode_count= 44lockedexact matchmode_count= 1212lockedexact matchsingle_mode= falsefalselockedexact matchmodes.LP21.cutoff_V= 3.831706, within 1.000000 × 10⁻⁹ relativereading not recorded on this pagemodes.LP02.cutoff_V= 3.831706, within 1.000000 × 10⁻⁹ relativereading not recorded on this pager0004LP31 appears above j21 = 5.135622301840683 (Abramowitz & Stegun Table 9.5): V = 5.140 guides 5 LP modes, 16 with polarisations; LP31 cutoff rel 10⁻⁹passed
lp_mode_count= 55lockedexact matchmode_count= 1616lockedexact matchmodes.LP31.cutoff_V= 5.135622, within 1.000000 × 10⁻⁹ relativereading not recorded on this pager0005LP01 b at V = 2 against the Rudolph-Neumann approximation b = (1.1428 - 0.996/V)² = 0.415767 (Jeunhomme, Single-Mode Fiber Optics; accurate to 0.2 % for 1.5 < V < 2.5, so
rel_tol2 × 10⁻³: the reference, not the solver, is approximate)passedv_number2 ± 2 × 10⁻¹²2locked0.022 % of the tolerance usedb_lp010.415767 ± 0.000830.416163locked48 % of the tolerance usedr0006symmetric slab TE0 exact: V = π d NA / λ = 2 π/3 solves tan u = w/u at u = π/3, w = √(3) π/3, so b = 3/4 and
n_eff= √(1.44 + 0.75 · 0.81); TE count ceil(V/(π/2)) = 2; single-mode cutoff λ = 2 d NA = 1200 nm; rel 10⁻⁹passedv_number2.0944 ± 2.1 × 10⁻¹²2.0944lockedunder 0.01 % of the tolerance usedb_te00.75 ± 7.5 × 10⁻¹⁰0.75lockedunder 0.01 % of the tolerance usedneff_te01.43091 ± 1.4 × 10⁻⁹1.43091lockedunder 0.01 % of the tolerance usedte_mode_count= 22lockedexact matchmode_count= 44lockedexact matchcutoff_wavelength_nm1200 ± 1.2 × 10⁻⁹1200locked0.019 % of the tolerance usedsingle_mode= falsefalselockedexact matchr0007symmetric slab TM0 exact: tan u = ρ w/u with ρ = (n₁/n₂)² = 1.5625 has root u = π/4, w = u/ρ at V = (π/4) √(1 + 1/ρ²), so b = 1/(1 + ρ²) = 0.2905788876; one TE and one TM mode (V = 0.9325 < π/2); rel 10⁻⁹passed
v_number0.932476 ± 9.3 × 10⁻¹³0.932476locked0.012 % of the tolerance usedb_tm00.290579 ± 2.9 × 10⁻¹⁰0.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 = (π d / λ) NA. |
Readings
| Name | Unit | Meaning |
|---|---|---|
geometry | fiber or slab | |
numerical_aperture | 1 | √(n_core² - n_clad²) |
acceptance_half_angle_deg | deg | asin(NA), launch from air |
index_contrast_percent | % | Δ = (n₁² - n₂²) / (2 n₁²) |
v_number | 1 | fibre: 2 π a NA / λ; slab: π d NA / λ |
single_mode | fibre: V < j01 = 2.405; slab: V ≤ π/2 (one TE and one TM mode) | |
lp11_cutoff_V | 1 | first zero of J₀, 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² - n₂²) / (n₁² - n₂²) |
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.