Upload files to "/"
This commit is contained in:
@@ -10,6 +10,11 @@ diffraction, and computes the transmission `T` and normalised beam deflection
|
||||
compared against the simulation, and the result exported as data, a log, and
|
||||
publication-sized figures.
|
||||
|
||||
Two measurement modes are supported. **Beam deflection** fits both signals.
|
||||
**Pump probe** is for measurements with the probe centred on the pump, where
|
||||
there is no deflection: it fits the transmission alone, and needs only delay
|
||||
and transmission data.
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
@@ -23,6 +28,9 @@ publication-sized figures.
|
||||
- Excited-state absorption via a five-level population model (S₀, S₁, S₂, T₁,
|
||||
T₂) solved through the sample depth for a range of radial irradiances.
|
||||
- Side-by-side transmission and deflection plots with imported data overlaid.
|
||||
- Beam deflection and pump probe measurement modes. Pump probe reads a
|
||||
two-column delay/transmission scan, fixes the probe on the pump axis, and
|
||||
offers only the mechanisms that can change the transmission.
|
||||
- Optional diagnostic figures showing each mechanism's response function before
|
||||
and after convolution, plus the ESA populations and beam transmissions.
|
||||
- Export of the data/fit comparison, a full parameter log, and figures at
|
||||
@@ -57,29 +65,36 @@ right: **Fitting**, **Diagnostics**, and **Parameter log**.
|
||||
A typical session:
|
||||
|
||||
1. Set the **Data columns** to match your file, and the delimiter.
|
||||
2. Press **Import…** and choose a scan. The plots show the measured data.
|
||||
3. Fill in the beam, material and geometry parameters, and configure one or
|
||||
2. Choose the **Mode**: Beam deflection or Pump probe.
|
||||
3. Press **Import…** and choose a scan. The plots show the measured data.
|
||||
4. Fill in the beam, material and geometry parameters, and configure one or
|
||||
more mechanisms with the **Params…** buttons.
|
||||
4. Press **Fit** to run the simulation and overlay it on the data.
|
||||
5. Press **Export…** to write the results.
|
||||
5. Press **Fit** to run the simulation and overlay it on the data.
|
||||
6. Press **Export…** to write the results.
|
||||
|
||||
**Fit** stays disabled until a file is imported, and **Export** until a fit has
|
||||
completed.
|
||||
|
||||
Changing the mode, a column number or the delimiter re-reads the imported file.
|
||||
Any fit is discarded, since it belonged to the previous settings. If the file
|
||||
cannot be read with the new settings, its data is cleared rather than left on
|
||||
screen, and it is read again once the settings allow.
|
||||
|
||||
Parameters are saved to `last_settings.json` beside the scripts when they
|
||||
change, and restored at the next launch. The data file itself is not restored.
|
||||
|
||||
## Input data format
|
||||
|
||||
A delimited text file with one header line, then one row per delay point. Three
|
||||
columns are required; which ones is set in the **Data columns** box, so extra
|
||||
columns can be present and ignored.
|
||||
A delimited text file with one header line, then one row per delay point. Beam
|
||||
deflection needs three columns and pump probe two; which ones is set in the
|
||||
**Data columns** box, so extra columns can be present and ignored. Each
|
||||
quantity must come from a different column.
|
||||
|
||||
| Quantity | Units | Default column |
|
||||
| --- | --- | --- |
|
||||
| `τ_d` | fs | 1 |
|
||||
| `ΔE/E` | fractional | 2 |
|
||||
| `T` | fractional (1.0 = no change) | 3 |
|
||||
| Quantity | Units | Default column | Needed in |
|
||||
| --- | --- | --- | --- |
|
||||
| `τ_d` | fs | 1 | both modes |
|
||||
| `ΔE/E` | fractional | 2 | Beam deflection only |
|
||||
| `T` | fractional (1.0 = no change) | 3 | both modes |
|
||||
|
||||
The delimiter field takes a single character, `\t` for a tab, or is left blank
|
||||
to split on any run of whitespace.
|
||||
@@ -95,6 +110,13 @@ to split on any run of whitespace.
|
||||
| `DeltaEoE column` | `2` | Deflection data column |
|
||||
| `Delimiter` | `,` | Data column delimiter character |
|
||||
|
||||
### Mode
|
||||
|
||||
| Option | Effect |
|
||||
|-------------------|-------------------------------------------------|
|
||||
| `Beam deflection` | Transmission and deflection, offset probe |
|
||||
| `Pump probe` | Transmission only, centered probe |
|
||||
|
||||
### Simulation parameters
|
||||
|
||||
| Variable | Default | Column contents |
|
||||
@@ -141,7 +163,7 @@ to split on any run of whitespace.
|
||||
| `n` | `1.4565` | Linear index |
|
||||
| `dndl` | `-0.027158` | First order dispersion (um^-1) |
|
||||
|
||||
### System geometry
|
||||
### Measurement parameters
|
||||
|
||||
| Variable | Default | Column contents |
|
||||
|----------------|-------------|-----------------------------------|
|
||||
@@ -167,24 +189,31 @@ to split on any run of whitespace.
|
||||
`NLR` denotes a purely refractive response, `NLA` a purely absorptive one, and
|
||||
`both` a mechanism carrying each.
|
||||
|
||||
Pump probe offers only the `NLA` and `both` mechanisms: with the probe centred,
|
||||
a `both` mechanism contributes its absorptive part, and an `NLR` mechanism
|
||||
cannot change the transmission at all. Switching to Pump probe sets aside any
|
||||
`NLR` mechanism already chosen; switching back restores it, provided its slot
|
||||
is still empty.
|
||||
|
||||
## Export output
|
||||
|
||||
Exporting to `<name>_fit.txt` also writes, in the same directory:
|
||||
|
||||
| File | Contents |
|
||||
| --- | --- |
|
||||
| `<name>_fit.txt` | delay, data and fit for `T`, `ΔE/E` and `Δn` |
|
||||
| `<name>_fit.txt` | delay, data and fit for `T`, `ΔE/E` and `Δn`; in Pump probe, delay and `T` only |
|
||||
| `<name>_fit_log.txt` | every parameter, plus a manifest of the files written |
|
||||
| `<name>_fit_combined.jpg` / `.svg` | transmission and deflection, 6.5 in at 300 dpi |
|
||||
| `<name>_fit_combined.jpg` / `.svg` | transmission and deflection, 6.5 in at 300 dpi (Beam deflection) |
|
||||
| `<name>_fit_transmission.jpg` / `.svg` | transmission only, 3.25 in at 300 dpi (Pump probe) |
|
||||
| `<name>_fit_raw_response.jpg` | each mechanism's `R[t]` and `A[t]` |
|
||||
| `<name>_fit_convolved_response.jpg` | the same after convolution, plus the total |
|
||||
|
||||
The last two appear only when *Show diagnostic plots during Fit* is ticked.
|
||||
|
||||
The log records enough to reproduce a run: data columns and delimiter, the
|
||||
simulation grid, every beam, material and geometry value, each mechanism with
|
||||
its parameters, and the derived quantities (`n_g`, `T_lin`, `z_0`, `I_0`,
|
||||
`rho`).
|
||||
mode, the simulation grid, every beam, material and geometry value, each
|
||||
mechanism with its parameters, and the derived quantities (`n_g`, `T_lin`,
|
||||
`z_0`, `I_0`, `rho`).
|
||||
|
||||
## Files
|
||||
|
||||
@@ -225,4 +254,4 @@ 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.
|
||||
under the GPL alongside them poses no conflict.
|
||||
|
||||
Reference in New Issue
Block a user