Skip to content

Atomic Workbench

Golam Kuadir Khan Prince edited this page Nov 19, 2026 · 1 revision

Atomic Workbench

The Atomic Workbench (src/components/InputGuiForm.tsx) configures and executes atomic and ionic elastic scattering simulations using ELSEPA's ELSCATA program. It maps user-defined physics parameters onto Fortran input keywords, executes the Dirac partial-wave solver, and presents the resulting physical observables in the Results Dashboard.


Input Groups and Configuration Controls

The interface organizes input parameters into dedicated configuration cards:

1. Target Atom (Z)

  • Periodic Table Picker: A modal dialog (PeriodicTableModal.tsx) allowing selection of any element from Hydrogen ($Z = 1$) to Lawrencium ($Z = 103$). Displays the element name, chemical symbol, standard atomic weight, group, and ground-state electron configuration.
  • Atomic Number Z: Numerical input ($1 \le Z \le 103$).
  • Mass Number A: Atomic mass in atomic mass units (g/mol).
    • ELSEPA Default: By default, ELSEPA evaluates built-in empirical formulas based on the standard atomic weight table (ELAW).
    • Atomic Weight Override (ATWGHT): When modified, an explicit atomic weight is passed to ELSEPA via the build-time keyword ATWGHT. A reset button (↺) restores ELSEPA's default value.
  • Ion charge q (+ cation, − anion, 0 neutral): Net charge of the target ($q = Z - \text{NELEC}$).
    • Neutral atoms: $q = 0$ ($\text{NELEC} = Z$).
    • Positive ions (cations): $q > 0$ ($\text{NELEC} < Z$).
    • Negative ions (anions): $q < 0$ ($\text{NELEC} > Z$). Negative ions are fully supported via the build-time patch in wasm/patch-elsepa.mjs, which bypasses upstream Fortran STOP 'Negative ion.' checks.

2. Projectile & Energy

  • Projectile Selection:
    • Electron ($e^-$): Projectile charge $-1$. Enables electron exchange potential options.
    • Positron ($e^+$): Projectile charge $+1$. Automatically disables exchange potentials (exchange is identically zero for positrons).
  • Kinetic Energy E: Kinetic energy of the incident beam.
    • Unit toggles: eV, keV, and MeV.
    • Presets: Quick selection buttons for 10 eV, 100 eV, 1 keV, 10 keV, 100 keV, and 1 MeV.
    • Lower Limit: the application accepts E ≥ 10 eV (ELSEPA 2021 itself stops below 5 eV).

3. Nuclear Charge Model

  • Distribution Type: Selects the nuclear charge density distribution $\rho_n(r)$ (MNUCL keyword):
    • Fermi 2-Parameter (Smooth Density) (MNUCL 3): Two-parameter Fermi distribution. Exposes overrides for Average radius c (fm) and Skin thickness / diffuseness t (fm) via keywords NUCRAD and NUCSKN.
    • Uniform Sphere ($R_N = 1.07 A^{1/3}\text{ fm}$) (MNUCL 2): Uniform spherical distribution with radius $R_N$. Exposes override for Nuclear radius R (fm) via NUCRAD.
    • Helm Uniform-Uniform (Uu) (MNUCL 4): Two-parameter uniform-uniform folded distribution. Exposes overrides for Inner radius $R_1$ (fm) (NUCRAD) and Skin thickness $R_2$ (fm) (NUCSKN).
    • Point Charge Nucleus (MNUCL 1): Infinitesimal point nucleus (no finite-size nuclear parameters).
    • Overrides and Defaults: Each nuclear size input displays the built-in ELSEPA default value when untouched and provides a reset button (↺) to clear manual overrides.
  • Electron Density: Selects the radial bound-electron density distribution $\rho_e(r)$ (MELEC keyword):
    • Dirac-Fock (numerical, recommended) (MELEC 4): High-accuracy relativistic Dirac-Fock numerical densities from tabulated files (data/z_NNN.den).
    • Dirac-Hartree-Fock-Slater (DHFS) (MELEC 3): Analytical approximations from DFS parameter tables (data/z_NNN.dfs).
    • Thomas-Fermi-Dirac (TFD) (MELEC 2): Analytical Thomas-Fermi-Dirac statistical density.
    • Thomas-Fermi-Molière (TFM) (MELEC 1): Analytical Thomas-Fermi-Molière statistical density.
    • User-supplied (upload file) (MELEC 5): Reads a custom radial electron density from external tables (see Electron Density Editor).
  • Target Environment:
    • Free atom: Isolated single-atom target in vacuum.
    • Atom in a solid (muffin-tin model) (MUFFIN 1): Applies the muffin-tin approximation for neutral atoms embedded in solid targets. Truncates atomic density at the muffin-tin radius. Exposes Muffin-tin radius (Å, 0 = half the nearest-neighbour distance) (RMUF). Disabled for non-zero ion charges.

4. Exchange & Polarization

  • Exchange Potential (Electrons): Configures electron exchange approximation (MEXCH keyword; active only for $e^-$):
    • Furness-McCarthy Local Exchange (MEXCH 1): Recommended local optical model potential.
    • Riley-Truhlar Exchange (MEXCH 3): Energy-dependent exchange model.
    • Thomas-Fermi (Local Free-Electron Gas) (MEXCH 2): Statistical local-density exchange.
    • None (Static Electrostatic Only) (MEXCH 0): Neglects electron exchange.
  • Correlation-Polarization: Configures projectile correlation and target polarization (MCPOL keyword):
    • Buckingham (MCPOL 1): Long-range Buckingham polarization potential with cutoff parameter $d$.
    • LDA (Perdew-Zunger correlation) (MCPOL 2): Short-range local density approximation joined to asymptotic Buckingham potential.
    • None (MCPOL 0): Neglects polarization.
  • Polarizability $\alpha_d$ ($a_0^3$): Atomic dipole polarizability. Defaults to ELSEPA's tabulated experimental values (data/elsepaTables.ts). Converted to $\text{cm}^3$ for the input deck (VPOLA).
  • Cutoff Radius $r_c$ ($a_0$): Cutoff radius parameter governing short-range regularization of the polarization potential. When modified, it is passed to ELSEPA via keyword VPOLB, where $b_{pol} = r_c^2 \sqrt{2 Z^{1/3}/\alpha}$. Includes an ELSEPA default indicator and reset button (↺).
  • Slow Ion + Polarization Warning: When an ion charge is non-zero ($q \neq 0$) and correlation-polarization is active (MCPOL > 0), the UI displays an alert:

    Notice: Non-zero ion charge with correlation-polarization converges very slowly in ELSEPA 2021 (>15 minutes in tests).

5. Angular Grid & Absorption

  • Absorption Model: Inelastic absorption describing flux loss into inelastic excitation channels (MABS keyword):
    • None (Pure Elastic) (MABS 0): Standard elastic scattering.
    • LDA-I (e-h excitations) (MABS 1): Semi-empirical optical model potential based on electron-hole excitations.
    • LDA-II (with plasmons) (MABS 2): Inelastic absorption including plasmon excitations.
  • Angular Grid Selection:
    • ELSEPA grid (all angles): Reports observables across ELSEPA's default angular grid from $0^\circ$ to $180^\circ$.
    • Custom grid: Enables user-specified angular bounds and step size:
      • Min θ (°): Starting scattering angle ($0^\circ \le \theta_{\min} < \theta_{\max}$).
      • Max θ (°): Ending scattering angle ($\theta_{\min} < \theta_{\max} \le 180^\circ$).
      • Step Δθ (°): Angular resolution increment ($\Delta\theta > 0$).
      • When selected, the simulator interpolates ELSEPA's raw scattering data onto the custom grid and integrates the Partial Cross Section over that restricted angular range: $$\sigma_{\text{partial}} = 2\pi \int_{\theta_{\min}}^{\theta_{\max}} \frac{d\sigma}{d\Omega}(\theta) \sin\theta , d\theta$$

6. Experimental Notes & Metadata

  • Notes Area: Free-text field allowing experimentalists to document run parameters, detector geometries, sample IDs, or operating temperatures. Metadata is persisted alongside numerical outputs in Saved Runs and Datasets.

7. Simulation Trigger & Actions

  • Run ELSEPA Simulation: Initiates the Dirac partial-wave computation in an isolated Web Worker (or native backend). Displays "Calculating Dirac Waves..." during execution.
  • Cancel Button: During active simulations, a red Cancel button appears alongside an elapsed-time indicator ((X.Xs)). Clicking it terminates the background Web Worker immediately, safely aborting long-running jobs without freezing the browser UI.
  • Reset Gold Benchmark: Restores default benchmark parameters: Gold ($Z = 79$), electron projectile, $E = 1\text{ keV}$, Fermi nucleus, Dirac-Fock density, Furness-McCarthy exchange, and Buckingham polarization.

Physical Observables and Outputs

Upon completion, results are loaded into the Results Dashboard (ResultsDashboard.tsx):

  1. Differential Cross Section (DCS) Plots:
    • Interactive curves of $d\sigma/d\Omega$ versus scattering angle $\theta$ ($0^\circ \le \theta \le 180^\circ$).
    • Selectable units: $\text{cm}^2/\text{sr}$, $a_0^2/\text{sr}$, and $\text{\AA}^2/\text{sr}$.
    • Switchable logarithmic and linear ordinate scales.
  2. Sherman Function Plot $S(\theta)$:
    • Plots the spin asymmetry function $S(\theta)$, characterizing Mott spin polarization of unpolarized projectiles scattered by spin-orbit forces.
  3. Spin-Rotation Functions $T(\theta)$ and $U(\theta)$:
    • Evaluated from complex scattering amplitudes $f(\theta)$ and $g(\theta)$ in Kessler's convention: $$T(\theta) = \frac{|f|^2 - |g|^2}{|f|^2 + |g|^2}, \qquad U(\theta) = \frac{2,\text{Re}(f g^*)}{|f|^2 + |g|^2}$$
  4. Scattering Amplitudes:
    • Direct amplitude $f(\theta)$ and spin-flip amplitude $g(\theta)$ (real and imaginary components from scatamp.dat).
  5. Integrated Cross Section Summary:
    • Total Elastic Cross Section ($\sigma_{\text{el}}$): in both $a_0^2$ and $\text{cm}^2$.
    • First Transport Cross Section ($\sigma_1$): momentum-transfer cross section characterizing beam diffusion.
    • Second Transport Cross Section ($\sigma_2$): viscosity cross section.
    • Absorption Cross Section ($\sigma_{\text{abs}}$): when inelastic absorption potentials are active.
    • Partial Cross Section ($\sigma_{\text{partial}}$): cross section integrated between $\theta_{\min}$ and $\theta_{\max}$ when a custom angular grid is selected.
  6. Interaction Potentials $V(r)$:
    • Radial potential profiles from scfield.dat: electrostatic potential $V_{\text{st}}(r)$, exchange potential $V_{\text{ex}}(r)$, polarization potential $V_{\text{cp}}(r)$, absorption potential $W_{\text{abs}}(r)$, and total interaction potential.
  7. Phase Shifts $\delta_\kappa$:
    • Dirac partial-wave phase shifts from dpwa.dat (real) or dpwai.dat (complex when absorption is present) across angular momentum quantum numbers $\kappa$, $l$, and $j$.
  8. Polar Scattering Diagram:
    • 2D polar plot visualizing the directional lobe of scattered flux $d\sigma/d\Omega(\theta)$ (PolarPlot.tsx).
  9. Export & Input Deck:
    • View the verbatim generated ELSCATA input deck (elscata.in).
    • Export simulation data as formatted CSV or structured JSON.

Clone this wiki locally