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 = 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 used
    acceptance_half_angle_deg9.78782 ± 9.8e-129.78782locked0.036 % of the tolerance used
    v_number2.06737 ± 2.1e-122.06737locked0.064 % of the tolerance used
    lp11_cutoff_V2.40483 ± 2.4e-092.40483lockedunder 0.01 % of the tolerance used
    cutoff_wavelength_nm1332.5 ± 1.3e-061332.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 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 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 1e-9passed

    lp_mode_count= 44lockedexact match
    mode_count= 1212lockedexact match
    single_mode= falsefalselockedexact match
    modes.LP21.cutoff_V{"value": 3.831705970207512, "rel_tol": 1e-09}
    modes.LP02.cutoff_V{"value": 3.831705970207512, "rel_tol": 1e-09}
  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 1e-9passed

    lp_mode_count= 55lockedexact match
    mode_count= 1616lockedexact match
    modes.LP31.cutoff_V{"value": 5.135622301840683, "rel_tol": 1e-09}
  5. 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 used
    b_lp010.415767 ± 0.000830.416163locked48 % of the tolerance used
  6. r0006symmetric 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 used
    b_te00.75 ± 7.5e-100.75lockedunder 0.01 % of the tolerance used
    neff_te01.43091 ± 1.4e-091.43091lockedunder 0.01 % of the tolerance used
    te_mode_count= 22lockedexact match
    mode_count= 44lockedexact match
    cutoff_wavelength_nm1200 ± 1.2e-091200locked0.019 % of the tolerance used
    single_mode= falsefalselockedexact match
  7. r0007symmetric 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 used
    b_tm00.290579 ± 2.9e-100.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 = (pi d / lambda) NA.

Readings

NameUnitMeaning
geometryfiber or slab
numerical_aperture1sqrt(n_core^2 - n_clad^2)
acceptance_half_angle_degdegasin(NA), launch from air
index_contrast_percent%Delta = (n1^2 - n2^2) / (2 n1^2)
v_number1fibre: 2 pi a NA / lambda; slab: pi d NA / lambda
single_modefibre: V < j01 = 2.405; slab: V <= pi/2 (one TE and one TM mode)
lp11_cutoff_V1first zero of J0, 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^2 - n2^2) / (n1^2 - n2^2)
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