Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c4ec2d1ce | ||
|
|
7cd523b5db | ||
|
|
5d8a132031 | ||
|
|
32f335562f | ||
|
|
a6b56dabe3 | ||
|
|
f3a760bc62 | ||
|
|
81c7c3234c | ||
|
|
1f324d678c | ||
|
|
56430a6202 | ||
|
|
c1187cd846 | ||
|
|
03acb17de4 | ||
|
|
bc06521601 | ||
|
|
6cf2bf4b8a | ||
|
|
cb12b8cfc7 | ||
|
|
67dbda7c19 |
@@ -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.
|
||||||
Reference in New Issue
Block a user