pnps#
Forward model of PNPS (TG-FROG) trace simulation in bulk media, on solprop.
The propagation state is the complex analytic envelope in the mixed
frequency/transverse-momentum domain, E[ky, kx, omega] (omega last), in SI units
(V/m before the unnormalised FFTs). solprop integrates the propagation
(pnps.bridge); this package defines the instrument – the grids, the
chromatic masks, the input pulse – forms the input state and reduces every saved
plane to the measured spectra, and writes Croak-compatible scan files.
Every error is a pnps.exceptions.PnpsError. The package installs a
logging.NullHandler; configure logging in a script to see progress.
Modules
The spectral absorber: band-edge ramps and the group-delay lap budget. |
|
Beamlet construction: HE11 far field cut by chromatic boxcar-mask holes. |
|
The bridge to solprop: this package's instrument model on solprop's free-space route. |
|
Accuracy harnesses: Richardson step calibration and the observed order. |
|
The |
|
Exact hard-disc collection windows for the field the nonlinearity generated. |
|
The exception and warning hierarchies. |
|
Reduction of the propagated state to the measured spectra. |
|
How this package measures energy: the axial flux of the medium. |
|
Form the delayed input state on the fly, with no stored beamlets. |
|
The beam layouts: where the input holes are, and where the signal appears. |
|
Time/frequency and transverse grids for envelope propagation. |
|
Data-driven input pulse: inject a stored complex spectrum as the source field. |
|
HDF5 scan file, in the layout the Croak retrieval package reads. |
|
Per-element scalar bodies shared by the input former and the save-pass reduction. |
|
Material data for fused silica: the index, the Kerr index and the Raman fraction. |
|
Estimate a run's memory before launching it. |
|
What one save plane yields, and the slot layout of the fused reduction that fills it. |
|
Input pulse construction, spectral resampling, duration metrics and energy. |
|
The fused host reduction of a saved plane to the measured spectra and diagnostics. |
|
NumPy reference implementation of the propagation model, for validation. |
|
Run files: a configuration and its scan, in TOML, for the command line and records. |
|
Delay-scan driver: a plain loop with per-point writes and resume. |
|
Separate the transient-grating field from the arms' own Kerr light. |
|
The run configuration and everything built from it once, before any delay point. |
|
The per-delay-point simulation driver. |
|
Form this package's per-plane observables from solprop's far-field statistics. |