v2.0.0 Release ELSEPA 2021 Engine WebAssembly PWA

Dirac Partial-Wave Elastic Scattering in Your Browser

Dirac partial-wave elastic scattering of electrons and positrons by atoms, ions and molecules, running the official ELSEPA 2021 Fortran compiled to WebAssembly, right in the browser, offline-capable PWA.

Hosted app notice: The live instance on Render free tier spins down on idle and may take ~30 s to wake up on the first request. The client-side WebAssembly engine operates completely in your browser.

Comprehensive Relativistic Physics Suite

A state-of-the-art computational platform mapping every parameter of the official ELSEPA 2021 Fortran code to modern interactive controls.

Atomic Workbench (ELSCATA)

Simulate elements $Z = 1$ to $103$ selected from an interactive periodic table. Supports electron ($e^-$) and positron ($e^+$) projectiles at energies $E \ge 10\text{ eV}$. Configure nuclear charge models (point, uniform sphere, Fermi, Helm) with atomic weight (ATWGHT), nuclear radius (NUCRAD), and skin (NUCSKN) overrides. Full exchange, polarization, and absorption potential controls.

Z = 1–103 Dirac–Fock Muffin-tin Polarization
New in v2.0

Radial Electron Density Editor

A visual interactive editor for radial electron densities $\rho(r)$. Load ELSEPA Dirac–Fock, DHFS, TFD, or TFM densities; drag curve control points, normalize to bound electron count $Z - q$, ionize or add electrons (including negative ions $q < 0$), scale radially, truncate, smooth, or mix. Inspect automated metrics ($N$, $\langle r \rangle$, $R_{50}$, $R_{90}$) and export directly to ELSEPA .den format or inject into simulation.

Drag-Edit Negative Ions Normalization .den Export

Molecular Mode (ELSCATM)

Execute ELSEPA's molecular program using the independent-atom model (IAM) with coherent addition of atomic scattering amplitudes and orientation averaging. Built-in presets for $\text{H}_2\text{O}$, $\text{CO}_2$, $\text{CH}_4$, $\text{N}_2$, $\text{C}_6\text{H}_6$, and $\text{UF}_6$. Freely add, remove, and edit 3D atomic coordinates in Å. Computes coherent and incoherent DCS and cross sections.

ELSCATM 3D Cartesian Coherent DCS IAM

Energy Sweeps and Custom Grids

Compute total elastic ($\sigma_{\text{el}}$), first transport ($\sigma_1$), and second transport ($\sigma_2$) cross sections across energy spectrums plotted on interactive log–log axes. Choose between standard 16-point grids (10 eV to 1 MeV), logarithmic ranges ($1 \le N \le 100$ points, $10\text{ eV} \le E \le 10^9\text{ eV}$), or arbitrary custom lists with scientific notation (1e3, 2.5E4).

Log–Log Axes Transport $\sigma_1, \sigma_2$ Custom Energy Grids

User-Supplied Densities (MELEC 5)

Upload custom radial electron density tables in .den, .dat, .txt, or .csv format ($5 \le N \le 999$ points). Automatic trapezoidal normalization verification ensures $4\pi \int_0^\infty \rho(r)r^2 dr = Z - q$ with a 1% tolerance warning. Executed inside isolated temporary workspaces on the server and fresh in-memory filesystems in WebAssembly.

MELEC 5 Charge Check Isolated FS

Custom Angular Grids and Integration

Resample calculated differential cross sections, spin-rotation functions $T(\theta)$ and $U(\theta)$, and the Sherman function $S(\theta)$ onto custom user-defined angular steps. Calculate numerical cross-section integrals over customized angular sub-ranges alongside full $0^\circ$ to $180^\circ$ integration.

Resampling Partial Integrals Sherman S($\theta$)

Saved Runs and Comparative Analysis

Save complete simulation parameters and calculated results to browser localStorage. Overlay up to 6 saved runs simultaneously on unified charts, or inspect fine-grained percentage differences between any 2 calculations. Export runs as JSON, clone saved parameters straight back to the workbench, and run batch element sweeps.

6-Run Overlay % Difference Batch Series JSON Export

Experimental Dataset Overlay

Upload laboratory measurement files in .dat, .csv, or .txt format (up to 5 MB). The system parses angle and differential cross section pairs and renders them as discrete scatter points directly over theoretical ELSEPA curves for immediate visual validation.

5 MB Upload Data Overlay Literature Benchmarks

Offline PWA and Dual Theme

Engineered as an installable Progressive Web App with service-worker precaching of all UI assets, WebAssembly binaries, and 206 atomic database tables. Functions entirely offline on laptops, tablets, and mobile devices. Full scientific dark and light themes with system preference detection and persistence.

100% Offline PWA Ready Dark / Light UI Zero Setup

Dual Architecture: WebAssembly and Server

Zero-install in-browser WebAssembly execution in dedicated module Web Workers is the primary engine. An optional Node.js/Express server is available for researchers desiring native gfortran compilation. Both engines run the same Fortran 90 sources, and automated CI parity tests check that their results agree to within a relative tolerance of 10−5.

WASM Worker Native gfortran Parity-Tested Express Server

How It Works: Compilation & Execution Architecture

From the authors' pristine 2021 Fortran 90 source code to high-speed WebAssembly executing inside isolated browser Web Workers.

Compilation & Runtime Pipeline

1
Official ELSEPA 2021 Official Fortran 90 package (package elsepa-2020) and RADIAL wave library by Salvat, Jablonski, and Powell. Original author files remain completely unmodified.
2
Build-Time Extensions wasm/patch-elsepa.mjs prepares documented keyword extensions (overriding ATWGHT, NUCRAD, NUCSKN, VPOLB, negative ions) into a staging directory.
3
f90to77 & f2c Translation wasm/f90to77.py and f77fix.py reorder non-executable statements to strict Fortran 77, and netlib f2c translates Fortran routines to C.
4
Emscripten WebAssembly Compiled with emcc -O3 into elsepa.wasm (270 KB) and elsepa.data (4 MB containing 206 atomic Dirac–Fock density and screening tables).
5
Browser Web Worker Executes in a dedicated module Web Worker with a clean virtual filesystem per run. Client localApiFallback.ts transparently intercepts /api/* requests without requiring any backend.

System Architecture Figures

Click any architectural diagram to inspect it full size.

Diagram of system context showing researcher workflow, browser PWA, optional server, and CI
Figure 1: System Context User interaction model, React PWA client, dual execution pathways (WebAssembly in-browser Web Worker vs. optional native gfortran server), offline storage, and GitHub Actions CI.
Diagram showing physics engine from interface settings to ELSEPA results
Figure 2: Physics Engine Pipeline From UI parameters to ELSCATA/ELSCATM input decks, central potentials, Dirac partial-wave equations, phase shifts, amplitudes $f(\theta)$ and $g(\theta)$, and physical cross sections.
Diagram of simulation request data flow through the router, worker, parser, and UI
Figure 3: Simulation Request Data Flow Seven-stage request execution lifecycle: parameter configuration, transparent routing, isolated execution, output file parsing, and error transparency without silent fallback.
Diagram of technology stack and deployment layers
Figure 4: Technology Stack & Deployment Multi-tier architecture covering modern client frontend (React 19 / TypeScript 5.8), WebAssembly toolchain, Docker containerization, and continuous quality validation.

Automated CI Parity Validation

Every code change is verified by an automated GitHub Actions CI pipeline comparing the WebAssembly build against native gfortran ELSEPA and published reference tables.

21
Parity Benchmark Cases
Covering H, Cu, Au, Hg, and H₂O across electrons and positrons from 100 eV to 100 keV.
10-5
Relative Tolerance
Matches the exact 6 significant digits of precision printed by ELSEPA in all DCS tables.
10-9
Sherman Absolute Tolerance
Rigorous evaluation of the spin polarization Sherman function $S(\theta)$ near zero crossings.
0
Silent Fallbacks
If ELSEPA cannot run, real errors are surfaced immediately. Quantitative results are always authentic.

Validation Scope & Reference Comparison

The automated test suite in wasm/parity.test.ts runs under continuous integration (.github/workflows/elsepa-parity.yml). Thirteen benchmark cases compare the WebAssembly output directly against official reference output tables in validations/ generated with official ELSEPA 2021, including the authors' official 2021 publication test decks (elscata.in and h2o.in). Eight additional cases test newly added model options (positive ions, muffin-tin models, Helm nuclear distribution, TFM, TFD, DHFS densities, and user-supplied densities using Au z_079.den).

Unit test suites (wasm/features.test.ts, density.test.ts, overrides.test.ts) verify grid algorithms, normalization integrals, and parameter overrides, while wasm/browser.test.ts validates browser-only execution and offline service worker operation via headless Chrome DevTools Protocol.

Get Started in Seconds

Choose the execution model that best fits your scientific workflow: immediate in-browser use, local workstation development, or pre-configured Docker containers.

Method 1

Run in Browser

Zero install, runs immediately via WebAssembly on any modern browser.

Access the complete ELSEPA 2021 engine directly from your browser. Once loaded, the application installs as a Progressive Web App (PWA) and performs full relativistic calculations completely offline.

✓ Zero installation required ✓ 100% client-side WebAssembly ✓ Offline PWA operation
Method 2

Run Locally with Node

Clone the repository and run the local development server.

Requires Node.js ^20.19.0 || >=22.12.0. If gfortran is found on your PATH, the local server automatically compiles and runs ELSEPA natively; otherwise it runs via WebAssembly.

bash
git clone https://github.com/The-Studio-of-Sadiq/Electron-Scattering.git
cd Electron-Scattering
npm ci
npm run dev

Then open http://localhost:3000 in your browser.

Method 3

Run with Docker

Pre-packaged container with gfortran native compilation built in.

Run the multi-stage production container based on node:20-slim with native gfortran pre-compiled executables and static assets bundled.

bash
docker run -p 3000:3000 ghcr.io/the-studio-of-sadiq/electron-scattering:latest

Access the running service on port 3000.

Citation and Academic References

If you utilize this simulator or its visual workbench in your scientific research or academic coursework, please cite both this software and the underlying ELSEPA engine.

Software Citation

Golam Kuadir Khan Prince, Md. Mahabub Hossain, and Pankaj Bhowmik. Electron Scattering Simulator: a complete PWA of ELSEPA software with GUI. Version 2.0.0 (2026). URL: https://thestudioofsadiq.tech/Electron-Scattering/.

BibTeX Entry
@software{prince2026electronscattering,
  author       = {Prince, Golam Kuadir Khan and Hossain, Md. Mahabub and Bhowmik, Pankaj},
  title        = {{Electron Scattering Simulator: a complete PWA of ELSEPA software with GUI}},
  version      = {2.0.0},
  year         = {2026},
  url          = {https://thestudioofsadiq.tech/Electron-Scattering/},
  doi          = {10.5281/zenodo.21716740},
  publisher    = {Zenodo},
  howpublished = {\url{https://github.com/The-Studio-of-Sadiq/Electron-Scattering}}
}

Core ELSEPA Physics References

Please also cite the original publications describing the ELSEPA Dirac partial-wave formulation:

  • 1
    ELSEPA 2021 (New Version Announcement):
    F. Salvat, A. Jablonski, C. J. Powell, ELSEPA - Dirac partial-wave calculation of elastic scattering of electrons and positrons by atoms, positive ions and molecules, Computer Physics Communications 261 (2021) 107704.
    doi:10.1016/j.cpc.2020.107704
  • 2
    Original ELSEPA 2005 Method Description:
    F. Salvat, A. Jablonski, C. J. Powell, ELSEPA - Dirac partial-wave calculation of elastic scattering of electrons and positrons by atoms, positive ions and molecules, Computer Physics Communications 165 (2005) 157–190.
    doi:10.1016/j.cpc.2004.09.006
  • 3
    RADIAL Subroutine Library:
    F. Salvat, J. M. Fernandez-Varea, RADIAL: A Fortran subroutine package for the solution of the radial Schrödinger and Dirac equations, Computer Physics Communications 240 (2019) 165–177.
    doi:10.1016/j.cpc.2019.02.011

Research Team and Authors

Developed by researchers and software architects at Hajee Mohammad Danesh Science and Technology University (HSTU) and the HSTU Research Society.

GK

Golam Kuadir Khan Prince

Software Architecture & Development

Undergraduate Student
Department of Electrical and Electronic Engineering
Hajee Mohammad Danesh Science and Technology University (HSTU)
Dinajpur, Bangladesh

MH

Professor Dr. Md. Mahabub Hossain

Principal Research & Physics Direction

Faculty
Department of Electronics and Communication Engineering
Hajee Mohammad Danesh Science and Technology University (HSTU)
Dinajpur, Bangladesh

PB

Pankaj Bhowmik

Co-Researcher

Faculty
Department of Computer Science and Engineering
Hajee Mohammad Danesh Science and Technology University (HSTU)
Dinajpur, Bangladesh

Research Group: HSTU Research Society, Hajee Mohammad Danesh Science and Technology University, Dinajpur 5200, Bangladesh.

Licensing and Attribution

Clear intellectual property boundaries separating open-source application software from third-party physics engine code.

MIT License

Application Code and Interface

The application software, interactive user interface, Express server, WebAssembly build scripts, test suites, and documentation are open-source under the MIT License.

CC BY-NC 3.0

ELSEPA 2021 Physics Code & Data

The official ELSEPA 2021 Fortran sources (elsepa2020.f, radial.f, elscata.f, elscatm.f), atomic database tables, and WebAssembly build are the intellectual property of F. Salvat, A. Jablonski, and C. J. Powell.

Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License (CC BY-NC 3.0). Permitted for non-commercial research and educational use with appropriate attribution.

Notice: At the request of the ELSEPA authors, the earlier (2005) version of ELSEPA is no longer distributed with this software. All calculations utilize the official 2021 release (package elsepa-2020 with RADIAL library).

Support the Project

Help maintain open-access scientific software and enable future research innovations for computational atomic physics.

Support Sustainable Open Scientific Computing

Developing and maintaining high-precision scientific tools requires continuous effort in physics verification, server hosting, and web standards maintenance. Your support helps ensure these tools remain freely accessible to students and researchers worldwide.