Repository navigation
Atomic Workbench
Golam Kuadir Khan Prince edited this page Nov 19, 2026
·
1 revision
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.
The interface organizes input parameters into dedicated configuration cards:
-
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 keywordATWGHT. A reset button (↺) restores ELSEPA's default value.
-
ELSEPA Default: By default, ELSEPA evaluates built-in empirical formulas based on the standard atomic weight table (
-
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 inwasm/patch-elsepa.mjs, which bypasses upstream FortranSTOP 'Negative ion.'checks.
-
Neutral atoms:
-
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).
-
Electron (
-
Kinetic Energy E: Kinetic energy of the incident beam.
- Unit toggles:
eV,keV, andMeV. - Presets: Quick selection buttons for
10 eV,100 eV,1 keV,10 keV,100 keV, and1 MeV. - Lower Limit: the application accepts E ≥ 10 eV (ELSEPA 2021 itself stops below 5 eV).
- Unit toggles:
-
Distribution Type: Selects the nuclear charge density distribution
$\rho_n(r)$ (MNUCLkeyword):-
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 keywordsNUCRADandNUCSKN. -
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) viaNUCRAD. -
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.
-
Fermi 2-Parameter (Smooth Density) (
-
Electron Density: Selects the radial bound-electron density distribution
$\rho_e(r)$ (MELECkeyword):-
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).
-
Dirac-Fock (numerical, recommended) (
-
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.
-
Exchange Potential (Electrons): Configures electron exchange approximation (
MEXCHkeyword; 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.
-
Furness-McCarthy Local Exchange (
-
Correlation-Polarization: Configures projectile correlation and target polarization (
MCPOLkeyword):-
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.
-
Buckingham (
-
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 keywordVPOLB, 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).
-
Absorption Model: Inelastic absorption describing flux loss into inelastic excitation channels (
MABSkeyword):-
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.
-
None (Pure Elastic) (
-
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$$
-
Min θ (°): Starting scattering angle (
-
ELSEPA grid (all angles): Reports observables across ELSEPA's default angular grid from
- 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.
- 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.
Upon completion, results are loaded into the Results Dashboard (ResultsDashboard.tsx):
-
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.
- Interactive curves of
-
Sherman Function Plot
$S(\theta)$ :- Plots the spin asymmetry function
$S(\theta)$ , characterizing Mott spin polarization of unpolarized projectiles scattered by spin-orbit forces.
- Plots the spin asymmetry function
-
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}$$
- Evaluated from complex scattering amplitudes
-
Scattering Amplitudes:
- Direct amplitude
$f(\theta)$ and spin-flip amplitude$g(\theta)$ (real and imaginary components fromscatamp.dat).
- Direct amplitude
-
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.
- Total Elastic Cross Section (
-
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.
- Radial potential profiles from
-
Phase Shifts
$\delta_\kappa$ :- Dirac partial-wave phase shifts from
dpwa.dat(real) ordpwai.dat(complex when absorption is present) across angular momentum quantum numbers$\kappa$ ,$l$ , and$j$ .
- Dirac partial-wave phase shifts from
-
Polar Scattering Diagram:
- 2D polar plot visualizing the directional lobe of scattered flux
$d\sigma/d\Omega(\theta)$ (PolarPlot.tsx).
- 2D polar plot visualizing the directional lobe of scattered flux
-
Export & Input Deck:
- View the verbatim generated ELSCATA input deck (
elscata.in). - Export simulation data as formatted CSV or structured JSON.
- View the verbatim generated ELSCATA input deck (
Application licensed under MIT; ELSEPA 2021 licensed under CC BY-NC 3.0. Found an issue? Report it on GitHub.