solprop.calibration.problems#
The calibration’s synthetic problems (SEP 46 section 6.3).
PROBLEMS maps each problem’s name to a builder of its
Simulation, and build() builds one at a
scale that sizes its grid. Five problems that solprop ships, so that a calibration
never needs a user’s simulation: a GNLSE with Raman response and self-steepening, a
four-mode helium capillary with plasma, a mode-averaged hydrogen capillary with Raman
response, a radial argon filament with plasma and a one-dimensional free-space line;
four of them also come at production size (*_large). Each is adapted from the
benchmark tracking set’s case of the same physics (benchmarks/builders.py), without
noise. Why they are chosen so is in docs/dev/backends.md (section 3.4a).
Module Attributes
The calibration problems, each built at a scale (1 is the standard size). |
Functions
|
Build one calibration problem at a scale of its standard size. |
- solprop.calibration.problems.PROBLEMS: dict[str, Callable[[float], Simulation]] = {'averaged': <function _averaged>, 'capillary': <function _capillary>, 'capillary_large': <function <lambda>>, 'gnlse': <function _gnlse>, 'gnlse_large': <function <lambda>>, 'line': <function <lambda>>, 'line_large': <function <lambda>>, 'radial': <function <lambda>>, 'radial_large': <function <lambda>>}#
The calibration problems, each built at a scale (1 is the standard size).
- solprop.calibration.problems.build(name, scale=1.0)[source]#
Build one calibration problem at a scale of its standard size.
- Parameters:
- namestr
One of
PROBLEMS.- scalefloat, optional
Its grid’s size relative to the standard one: the time window of the one-dimensional problems, the transverse count of the spatial ones.
- Returns:
- solprop.driver.Simulation
The simulation, on the native backend, without noise.
- Raises:
- KeyError
For an unknown name.