Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cf2bf4b8a | ||
|
|
cb12b8cfc7 |
@@ -128,28 +128,6 @@ its parameters, and the derived quantities (`n_g`, `T_lin`, `z_0`, `I_0`,
|
||||
| `bd_fresnel_gui.py` | Tkinter interface, plotting, import/export, logging. Entry point. |
|
||||
| `set_params_dialog.py` | modal dialog for entering one mechanism's parameters. |
|
||||
|
||||
## Notes on the port
|
||||
|
||||
The translation follows the MATLAB closely, including its array axis order, so
|
||||
that intermediate results can be compared directly. Places where this port
|
||||
deliberately differs are commented at the point of departure. The substantive
|
||||
ones:
|
||||
|
||||
- **Physical constants** are taken from `scipy.constants` rather than
|
||||
transcribed. The original hard-coded `c = 299797548` in `calc_beam_params`, a
|
||||
digit transposition of the correct value used elsewhere in the same codebase,
|
||||
and truncated Planck's constant to seven figures. Correcting the former
|
||||
shifts `rho` by about 1.7 × 10⁻⁵ relative.
|
||||
- **Delay-frame consistency**: the delay grid is derived from the shifted
|
||||
`τ_d`, matching what the plots and export compare against. The original used
|
||||
the unshifted values, a mismatch whenever `shift ≠ 0`.
|
||||
- **Diagnostic instantaneous response**: the original's diagnostic plot used
|
||||
`n_2e` where its four physics branches all used `2·n_2e`, so the plotted
|
||||
electronic curve was half the simulated one. The plot now matches the
|
||||
simulation.
|
||||
- **Dialog close**: closing the parameter dialog with the window button is
|
||||
treated as OK. In the original it left the caller's `uiwait` blocked forever.
|
||||
|
||||
## References
|
||||
|
||||
Please cite the following when using results from this program.
|
||||
|
||||
Reference in New Issue
Block a user