# Decisions The lasting design decisions, each with its reason. A change to one of them is agreed first and recorded here. ## Generic features go into solprop This package defines the PNPS instrument: the beams, the chromatic mask holes, the formed input, the collection windows, the reduction to measured spectra and the scan files. Everything about propagation (grids, operators, responses, absorbers, statistics, steppers, backends) is solprop's. A propagation feature this package needs becomes a solprop feature through solprop's own enhancement-proposal process, never a private variant here. ## Error control: a fixed step, certified on the observables The march replays a fixed schedule of equal steps with every save plane an edge, and the step is certified by Richardson extrapolation on the measured observables ({mod}`pnps.calibrate`), not by an adaptive norm over the whole field. The signal is a weak four-wave-mixing beam in an empty corner of momentum space; a whole-field norm is blind to it. For the same reason all dissipation is inside the exact linear operator (band-edge and group-delay absorbers, physical evanescent decay) and nothing is applied inside the step loop, which would not converge in the step size. ## The silica model The silica is the absorbing fused-silica fit from [optmat](https://github.com/LupoLab/optmat), with optmat's matched nonlinear bundle: the Kerr fit's n2 at the carrier, its Raman fraction and the Hollenbeck and Cantrell response shape. It is the one silica model: one index and one Kerr index, so that every scan means the same material. The slab is lossless by default: the index is the real part of optmat's fit, which keeps its dispersion and drops its absorption. Material loss is usually not wanted in a trace simulation, and silica's absorption edge at the blue end of the band (up to 5e6 /m) also keeps the interaction-picture march pre-asymptotic there at practical steps. `absorption=True` keeps it. The Kerr fit is validated from 350 nm to 3500 nm; its n2 at a deep-UV carrier is taken anyway, as the fit's extrapolation (3.9e-20 m²/W at 260 nm, against a near-infrared 2.7e-20, so signals about twice as strong). Clamping to the fit's edge would knowingly understate a quantity that rises towards the band gap. Every file records `n2` and `n2_extrapolated`. Raman is off by default: a few-femtosecond pulse barely excites it, and it costs time per step. With it on, the bundle's f_R and shape are used, as solprop's scalar silica response. ## The measure of energy Energy is measured by the medium's axial Poynting flux, at the launch and in every observable: solprop's own measure (its design proposal SEP 34, listed among {doc}`solprop's proposals `). It is what a spectrometer records, and with it a stated pulse energy is the physical energy in the slab. The vacuum field norm under-counts the energy in silica by the index, so it would make the Kerr phase about 1.5 times too strong at a given energy. The faces of the slab are ideal for now: Fresnel reflection at either face is not modelled. ## The self-diffraction layout The probe and the gate are symmetric about the axis, the gate carries the delay, and the signal is at `-3s/2`. The symmetry cuts both beams from the same part of the beam, so they carry the same energy; the signal is `E² G*`, so an imbalance would not cancel. - It works with every beam model. All three cut their beamlets from one separable illumination, and only the hole positions change. - `i_omega_full` sums self-diffraction's own signal region, the half-plane mask-plane `x < -s`, and not the TG quadrant, which in this layout holds half of the signal and half of the probe. The region moves with frequency, which solprop's fixed `spectral_regions` boxes cannot express; its statistics express it instead as a hard half-plane row of the aperture set, so a self-diffraction run reduces on the device like a TG one ({doc}`../engine`). ## Collection windows A collection window is a hole in the output mask plane, so its momentum-space extent scales with frequency (chromatic vignetting). Smooth-edged windows are edge profiles of {class}`pnps.extraction.WindowSpec`, not separate window types. ## The delay check A delay is admitted within 75% of `time_headroom`, or beyond it when light that wraps the periodic time window can drive at most 1e-5 of the input's peak nonlinear polarization at the other pulse ({func}`pnps.absorber.wrap_coupling`; {doc}`../model`, "Which delays the window holds"). The absorber is not changed by the check, so one frequency-dependent loss serves a whole scan and the delays admitted before give the same bits. - The bound is generic: it uses no property of the layout or of the windows. A bound that followed the transient grating (the wrapped gate light needs both gates to make signal, so it enters at second order) admits more, but holds only for that signal, and the large collection windows gather the arms' own Kerr light as well. It was considered and not taken. - The 75% rule is kept beside it, so every delay admitted before stays admitted: on a thin slab the lap budget cannot reach 1e-5 at the old limit (1.9e-5 on the 5 µm test configuration), and scans over those delays have been run on the released versions. - The pulse enters through the 1-D input spectrum every arm carries, its chirp included; the holes' spectral edges add a pedestal at every delay, which a delay check cannot guard.