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

absorber

The spectral absorber: band-edge ramps and the group-delay lap budget.

beams

Beamlet construction: HE11 far field cut by chromatic boxcar-mask holes.

bridge

The bridge to solprop: this package's instrument model on solprop's free-space route.

calibrate

Accuracy harnesses: Richardson step calibration and the observed order.

cli

The pnps command: run, merge and budget a scan from a run file.

exact_windows

Exact hard-disc collection windows for the field the nonlinearity generated.

exceptions

The exception and warning hierarchies.

extraction

Reduction of the propagated state to the measured spectra.

flux

How this package measures energy: the axial flux of the medium.

form_input

Form the delayed input state on the fly, with no stored beamlets.

geometry

The beam layouts: where the input holes are, and where the signal appears.

grids

Time/frequency and transverse grids for envelope propagation.

input_pulse

Data-driven input pulse: inject a stored complex spectrum as the source field.

io_h5

HDF5 scan file, in the layout the Croak retrieval package reads.

kernels

Per-element scalar bodies shared by the input former and the save-pass reduction.

materials

Material data for fused silica: the index, the Kerr index and the Raman fraction.

memory

Estimate a run's memory before launching it.

observables

What one save plane yields, and the slot layout of the fused reduction that fills it.

pulse

Input pulse construction, spectral resampling, duration metrics and energy.

reduce_numba

The fused host reduction of a saved plane to the measured spectra and diagnostics.

reference

NumPy reference implementation of the propagation model, for validation.

runfile

Run files: a configuration and its scan, in TOML, for the command line and records.

scan

Delay-scan driver: a plain loop with per-point writes and resume.

separation

Separate the transient-grating field from the arms' own Kerr light.

setup

The run configuration and everything built from it once, before any delay point.

simulate

The per-delay-point simulation driver.

statistics

Form this package's per-plane observables from solprop's far-field statistics.