Invntr
Source

All instruments

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

Admission replayfiber_modes 0.1.0 · files 6aed42dd0408…f8b1
  1. 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 used
    acceptance_half_angle_deg9.78782 ± 9.8 × 10⁻¹²9.78782locked0.036 % of the tolerance used
    v_number2.06737 ± 2.1 × 10⁻¹²2.06737locked0.064 % of the tolerance used
    lp11_cutoff_V2.40483 ± 2.4 × 10⁻⁹2.40483lockedunder 0.01 % of the tolerance used
    cutoff_wavelength_nm1332.5 ± 1.3 × 10⁻⁶1332.5lockedunder 0.01 % of the tolerance used
    single_mode= truetruelockedexact match
    lp_mode_count= 11lockedexact match
    mode_count= 22lockedexact match
  2. r0002Marcuse (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_eff lies between n₂ = 1.44 and n₁ = 1.45passed

    mode_field_diameter_um7.38916 ± 7.4 × 10⁻⁹7.38916lockedunder 0.01 % of the tolerance used
    neff_lp011.44 to 1.451.44438lockedinside the range
    b_lp010 to 10.437556lockedinside the range
  3. r0003LP 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 match
    mode_count= 1212lockedexact match
    single_mode= falsefalselockedexact match
    modes.LP21.cutoff_V= 3.831706, within 1.000000 × 10⁻⁹ relativereading not recorded on this page
    modes.LP02.cutoff_V= 3.831706, within 1.000000 × 10⁻⁹ relativereading not recorded on this page
  4. r0004LP31 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 match
    mode_count= 1616lockedexact match
    modes.LP31.cutoff_V= 5.135622, within 1.000000 × 10⁻⁹ relativereading not recorded on this page
  5. r0005LP01 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_tol 2 × 10⁻³: the reference, not the solver, is approximate)passed

    v_number2 ± 2 × 10⁻¹²2locked0.022 % of the tolerance used
    b_lp010.415767 ± 0.000830.416163locked48 % of the tolerance used
  6. r0006symmetric 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⁻⁹passed

    v_number2.0944 ± 2.1 × 10⁻¹²2.0944lockedunder 0.01 % of the tolerance used
    b_te00.75 ± 7.5 × 10⁻¹⁰0.75lockedunder 0.01 % of the tolerance used
    neff_te01.43091 ± 1.4 × 10⁻⁹1.43091lockedunder 0.01 % of the tolerance used
    te_mode_count= 22lockedexact match
    mode_count= 44lockedexact match
    cutoff_wavelength_nm1200 ± 1.2 × 10⁻⁹1200locked0.019 % of the tolerance used
    single_mode= falsefalselockedexact match
  7. r0007symmetric 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 used
    b_tm00.290579 ± 2.9 × 10⁻¹⁰0.290579lockedunder 0.01 % of the tolerance used
    te_mode_count= 11lockedexact match
    single_mode= truetruelockedexact match
7 of 7 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

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

NameUnitDefaultMeaning
geometryfiberfiber: step-index circular core of radius core_radius_um; slab: symmetric planar core of full thickness slab_thickness_um.
n_core11.4492Core refractive index at the wavelength.
n_clad11.444Cladding refractive index at the wavelength (must be below n_core).
wavelength_nmnm1550Vacuum wavelength.
core_radius_umum4.1Fibre core radius a (half the core diameter). Used when geometry = fiber.
slab_thickness_umum1.0Full core thickness d of the slab. Used when geometry = slab; V = (π d / λ) NA.

Readings

NameUnitMeaning
geometryfiber or slab
numerical_aperture1√(n_core² - n_clad²)
acceptance_half_angle_degdegasin(NA), launch from air
index_contrast_percent%Δ = (n₁² - n₂²) / (2 n₁²)
v_number1fibre: 2 π a NA / λ; slab: π d NA / λ
single_modefibre: V < j01 = 2.405; slab: V ≤ π/2 (one TE and one TM mode)
lp11_cutoff_V1first zero of J₀, computed
cutoff_wavelength_nmnmlongest wavelength at which the second mode is guided
lp_mode_count1guided LP modes (null above V = 150)
mode_count1fibre: guided modes counting polarisations and orientations; slab: TE plus TM
mode_count_estimate1V^2/2, the large-V estimate
u_lp011
w_lp011
b_lp011normalised propagation constant (n_eff² - n₂²) / (n₁² - n₂²)
neff_lp011
beta_lp01_per_um1/um
core_power_fraction_lp011
b_lp111
neff_lp111
mode_field_diameter_umumLP01, Marcuse fit, given for 0.8 ≤ V ≤ 2.5 only
mfd_over_core_diameter1
te_mode_count1
tm_mode_count1
b_te01
neff_te01
beta_te0_per_um1/um
b_tm01
neff_tm01
modesthe first 12 guided modes, highest n_eff first; out/modes.csv holds all
conventionthe V and mode-count conventions used, in words
warningslist of plain-language warnings
modes_listed1rows 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.

Terminal
MCP call