15 Commits
Author SHA1 Message Date
manuel 4c4ec2d1ce Update README.md 2026-09-21 22:55:59 +00:00
manuel 7cd523b5db Update README.md 2026-09-21 13:32:39 +00:00
manuel 5d8a132031 Update README.md 2026-09-21 13:29:26 +00:00
manuel 32f335562f Update README.md 2026-09-21 13:27:22 +00:00
manuel a6b56dabe3 Update README.md 2026-09-21 13:18:15 +00:00
manuel f3a760bc62 Update README.md 2026-09-21 13:10:46 +00:00
manuel 81c7c3234c Update README.md 2026-09-21 11:41:15 +00:00
manuel 1f324d678c Update README.md 2026-09-21 11:40:34 +00:00
manuel 56430a6202 Update README.md 2026-09-21 11:38:27 +00:00
manuel c1187cd846 Update README.md 2026-09-21 11:37:42 +00:00
manuel 03acb17de4 Update README.md 2026-09-21 11:36:44 +00:00
manuel bc06521601 Update README.md 2026-09-17 16:37:00 +00:00
manuel 6cf2bf4b8a Merge pull request 'Update README.md' (#2) from remove_port_notes into main
Reviewed-on: #2
2026-09-12 20:30:47 +00:00
manuel cb12b8cfc7 Update README.md 2026-09-12 20:30:39 +00:00
manuel 67dbda7c19 Merge pull request 'Add readme' (#1) from add_readme into main
Reviewed-on: #1
2026-09-12 20:27:44 +00:00
+88 -25
View File
@@ -77,13 +77,79 @@ columns can be present and ignored.
| Quantity | Units | Default column | | Quantity | Units | Default column |
| --- | --- | --- | | --- | --- | --- |
| Delay `τ_d` | fs | 1 | | `τ_d` | fs | 1 |
| `ΔE/E` | fractional | 2 | | `ΔE/E` | fractional | 2 |
| `T` | fractional (1.0 = no change) | 3 | | `T` | fractional (1.0 = no change) | 3 |
The delimiter field takes a single character, `\t` for a tab, or is left blank The delimiter field takes a single character, `\t` for a tab, or is left blank
to split on any run of whitespace. to split on any run of whitespace.
## Parameters
### Data columns (1-indexed)
| Variable | Default | Column contents |
|-------------------|---------|---------------------------------------|
| `tau_d column` | `1` | Delay column (fs) |
| `T column` | `3` | Transmission data column |
| `DeltaEoE column` | `2` | Deflection data column |
| `Delimiter` | `,` | Data column delimiter character |
### Simulation parameters
| Variable | Default | Column contents |
|----------------|---------|---------------------------------------|
| `X_num` | `50` | Number of spatial points |
| `X_max` | `5.0` | Range of spatial sampling (w_0) |
| `T_num` | `100` | Number of temporal points |
| `T_max` | `5.0` | Range of temporal sampling (tau_p) |
| `T_d_num` | `150` | Number of delay points over range |
### Excitation beam parameters
| Variable | Default | Column contents |
|----------------|---------|---------------------------------------|
| `E_p` | `1.36` | Excitation pulse energy (uJ) |
| `tau_p_FWHM` | `55.0` | Excitation pulse duration (fs) |
| `w_0p` | `246.0` | Excitation beam waist (um) |
| `lambda_p` | `800.0` | Excitation pulse wavelength (nm) |
### Probe beam parameters
| Variable | Default | Column contents |
|----------------|---------|---------------------------------------|
| `tau_FWHM` | `60.0` | Probe pulse duration (fs) |
| `w_0` | `43.0` | Probe beam waist (um) |
| `lambda` | `650.0` | Probe pulse wavelength (nm) |
### Material parameters at excitation wavelength
| Variable | Default | Column contents |
|----------------|-------------|-----------------------------------|
| `R_p` | `0.0` | Reflectivity |
| `alpha_p` | `0.0` | Linear absorption (cm^-1) |
| `n_p` | `1.4533` | Linear index |
| `dndl_p` | `-0.017284` | First order dispersion (um^-1) |
| `alpha_2d` | `0.0` | 2 photon absorption (e-11 m/W) |
### Material parameters at probe wavelength
| Variable | Default | Column contents |
|----------------|-------------|-----------------------------------|
| `R` | `0.0` | Reflectivity |
| `alpha` | `0.0` | Linear absorption (cm^-1) |
| `n` | `1.4565` | Linear index |
| `dndl` | `-0.027158` | First order dispersion (um^-1) |
### System geometry
| Variable | Default | Column contents |
|----------------|-------------|-----------------------------------|
| `l` | `1.0` | Sample thickness (mm) |
| `d` | `15.0` | Distance to detector (cm) |
| `shift` | `0.0` | Temporal shift (fs) |
| `x_0` | `0.5` | Displacement of probe (w_0p) |
## Mechanisms ## Mechanisms
| Mechanism | Parameters | | Mechanism | Parameters |
@@ -128,28 +194,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. | | `bd_fresnel_gui.py` | Tkinter interface, plotting, import/export, logging. Entry point. |
| `set_params_dialog.py` | modal dialog for entering one mechanism's parameters. | | `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 ## References
Please cite the following when using results from this program. Please cite the following when using results from this program.
@@ -163,3 +207,22 @@ Please cite the following when using results from this program.
3. Ferdinandus, M. R., et al. (2013). "Beam deflection measurement of time and 3. Ferdinandus, M. R., et al. (2013). "Beam deflection measurement of time and
polarization resolved ultrafast nonlinear refraction." *Opt. Lett.* polarization resolved ultrafast nonlinear refraction." *Opt. Lett.*
**38**(18): 3518–3521. **38**(18): 3518–3521.
## License
Copyright (C) 2019-2026 Manuel R. Ferdinandus
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
NumPy, SciPy, Matplotlib and mpmath are all BSD-licensed, so distributing this program
under the GPL alongside them poses no conflict.