Technical Documentation
Documentation of the physics, algorithms, and implementation details behind the SimEx-Debye Scattering Simulator.
See the code repository at: https://git.xfel.eu/simulation/simex-debye/.
- Gas-phase / isolated-solute scattering (no cage or intermolecular interference)
- Independent atoms (tabulated form factors)
- No Debye-Waller factors or thermal motion
- Tabulated solvent thermal response
- No explicit solute-solvent structural correlation
Simulation Details
The Debye Scattering Equation
The simulator computes scattering intensity via the Debye scattering equation, which provides the orientational average for isotropic samples. We compute relative orientationally averaged molecular scattering (up to an overall scale factor); detector and beamline prefactors are handled separately or not modeled.
Atomic Form Factors
4-Gaussian + constant parameterization (coefficients stored locally for 98 elements).
periodictable using cromermann.fxrayatq(). Computes only (no anomalous corrections). This ignores dispersion corrections and may be inaccurate near absorption edges or when resonant scattering effects are significant.
Difference Scattering Pipeline
For pump–probe time-resolved XSS experiments, the difference signal combines solute structural change with solvent thermal response. Time dependence arises through the excitation fraction and solvent heating parameters, not structural evolution.
Load ground and excited state structures (XYZ), compute intensities:
Load experimental data and interpolate onto the Q grid.
This is multiplied by a scalar temperature rise (or fitted amplitude) to estimate the solvent contribution to the signal.
The measured difference signal combines both contributions:
where is the time-dependent excited state fraction, and is the solvent-heating amplitude (e.g., proportional to temperature jump).Image Reconstruction Pipeline
We forward-simulate a 2D detector image by applying the same effects that are corrected during 1D reduction, then re-integrate as a consistency check.
Simulated 1D difference signal is projected onto detector geometry.
The 1D curve is mapped to a 2D image (radius vs azimuthal angle).
Usage
Upload XYZ or PDB files for ground and excited states. Structures are parsed via SimEx-Lite
SampleData to extract atomic numbers and positions.
Select a solvent with differential data. Set concentration to scale the solute contribution relative to the solvent background.
Define photon energy (eV), excess energy deposited as heat per absorption, and excitation fraction (). The heat deposition is used to estimate temperature jump and solvent response amplitude.
Configure sample-detector distance and beam center. Supports European XFEL detectors with module layouts.
View with separated contributions: total signal, scaled solute difference (), and solvent thermal response. Identify optimal Q-ranges for your experiment.
Compare multiple simulation configurations, save results for analysis, and use predictions to optimize beamtime parameters.