Simulation mode #2

Merged
manuel merged 4 commits from simulation_mode into main 2026-09-24 01:43:08 +00:00
Showing only changes of commit 7eec0891b2 - Show all commits
+9 -9
View File
@@ -176,8 +176,8 @@ The program is split so the physics can be used without the interface:
| Option | Effect |
|--------------|-----------------------------------------------------------------|
| `Fitting` | Default. Imports a scan and compares the simulation with it. |
| `Simulation` | No data: the calculated signals are shown alone, over `z range (sim.)`. The data-file inputs, Import, Refine Fit, Max iterations and the Referenced / Normalized tab are disabled. |
| `Fitting` | Default. Imports a scan and compares the simulation with it. |
| `Simulation` | No data. The calculated signals are shown alone. |
### Data columns (1-indexed)
@@ -196,10 +196,10 @@ The program is split so the physics can be used without the interface:
|--------------------------------------|-------------------------------------------------------------|
| `use_ref` | Apply the reference-channel correction |
| `use_freq` | Appliy the frequency-channel correction |
| `flip_z` | `1` reverses the sign of the z axis |
| `flip_z` | Reverses the direction of the z axi |
| `do_norm_OA`, `do_norm_CA` | Fit and divide out the linear wing baseline |
| `flip_OA`, `flip_CA`, `flip_REF` | Invert a raw channel about its median (`0` or `1`) |
| `flip_OA_disp`, `flip_CA_disp` | Invert the normalized traces about 1 for display/fitting |
| `flip_OA`, `flip_CA`, `flip_REF` | Invert a raw channel about its median |
| `flip_OA_disp`, `flip_CA_disp` | Invert the normalized traces for display/fitting |
| `show_CA` | Plot CA in the right panel; if `False`, plot CA/OA instead |
### Nonlinear coefficients
@@ -258,13 +258,13 @@ uncertainty
|-------------|---------|-----------------------------------------------------|
| `z_points` | `76` | Number of z-scan points (must be even) |
| `r_points` | `500` | Radial points at the sample |
| `r_max` | `3` | Radial integration limit, in beam radii *w* |
| `r_max` | `3` | Radial integration limit, in beam waist *w₀* |
| `t_points` | `50` | Temporal points |
| `t_max` | `3` | Temporal integration limit, in pulse widths *τ* |
| `t_max` | `3` | Temporal integration limit, in pulse duration *τ* |
| `ra_points` | `50` | Radial points at the closed aperture |
| `endpts_%` | `10` | Percentage of edge points to use for normalization |
| `z range (sim.)` | `15` | Half-width of the simulated scan, in Rayleigh ranges *z₀*. Simulation mode only |
| `max_iter` | `100` | Maximum iterations for the parameter refinement (Fitting only) |
| `z range` | `15` | Half-width of simulated scan in Rayleigh ranges *z₀*|
| `max_iter` | `100` | Maximum iterations for the parameter refinement |
Memory use scales as `r_points x ra_points x t_points x z_points`, so raising
the grid resolution raises RAM sharply; the interface shows the estimate as you