Preprint
Article

This version is not peer-reviewed.

Nexus-NRS (Nuclear Reaction Suite): Open Modern Functional-Programming Software for Nuclear Reaction Modeling with DWBA

Submitted:

14 April 2026

Posted:

15 April 2026

You are already at the latest version

Abstract
Nexus-NRS is an open and reproducible software framework for nuclear reaction calculations, implemented in a functional-programming style (Clojure), with a focus on workflows relevant to halo systems: stable radial solvers for weakly bound states, scattering observables, and transfer reactions. The package includes optical-model potentials, Riccati–Numerov integration with regular near-origin initialization options, discrete Wronskian diagnostics for numerical stability, and a Distorted Wave Born Approximation (DWBA) implementation for single-nucleon transfer in the post form. Recent development extends the reaction layer with multipole/angular ingredients in the spirit of Austern (complex radial integrals for zero-range cluster transitions, Coulomb-barrier phase factors on multipole blocks) and with a literature-aligned benchmark for 11Li(p,p′) inelastic scattering using published global optical parameters. Nexus-NRS supports both scripting/REPL-driven studies and an interactive web dashboard for parameter exploration and visualization; a public instance is deployed at https://www.nexus-nrs.uz, and the dashboard exposes representative benchmarks through JSON endpoints (including angular dσ/dΩ for the 11Li paper workflow). The project plans to support use from an LLM chatbot for guided workflows. This manuscript describes the numerical formulation and software architecture and outlines a validation workflow aimed at producing reproducible conference-scale results.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Quantitative nuclear reaction modeling often requires combining multiple ingredients—optical-model distorted waves, bound-state overlaps, and stable numerical solvers—while preserving reproducibility across parameter scans and reaction systems. Many workflows remain fragmented across scripts and codes with heterogeneous interfaces, complicating validation and reuse. Nexus-NRS (Nuclear Reaction Suite) was developed as a unified, transparent toolkit to support:
  • elastic scattering and phase-shift analysis;
  • transfer reactions via DWBA amplitudes using distorted waves;
  • inelastic scattering through form factors/couplings; and
  • weakly bound (halo) bound-state wave functions and asymptotic behavior diagnostics.
The primary design goals are (i) numerical stability for oscillatory/evanescent radial equations, (ii) consistent “physics-level” APIs rather than low-level helper calls, and (iii) end-to-end reproducibility using plain-text configuration, REPL evaluation, and automated test coverage. For halo-nucleus applications, these goals are particularly important because weak binding amplifies sensitivity to asymptotic behavior and to numerical contamination by irregular solutions. Experimental evidence for spatially extended matter distributions in very neutron-rich light nuclei—often cited as the inception of the halo picture—was established early through interaction-cross-section and radius measurements along the p shell [1].
By adopting a functional-programming style (Clojure on the JVM), the physical problem is treated as a series of immutable data transformations: a potential is a function, a wave function is derived from pure numerical kernels. This avoids “state creep” common in legacy codes and makes every calculation reproducible by design.
For mathematically inclined users, Clojure is a comfortable host language: expressions compose in the same way formulas do, persistent data structures behave like explicit mathematical objects (rather than hidden mutable state), and the read–eval–print loop encourages an exploratory workflow familiar from symbolic and numeric environments. The emphasis on pure functions and explicit inputs supports scientific calculation, where one wants the same physical parameters to yield the same result traceably across batches, publications, and collaborator handoffs. Because many reaction workloads are embarrassingly parallel—independent energies, partial waves, or angle samples—Clojure’s concurrency-oriented design and built-in support for parallel collection operations (e.g., parallel map and reduce over immutable data) help scale heavy parameter scans without ad hoc threading boilerplate, while still running on the mature Java Virtual Machine ecosystem for numerical libraries and deployment.

2. Methods

2.1. Radial Schrödinger Equation and Optical Potentials

The fundamental object in Nexus-NRS is the reduced radial wave function u ( r ) . Nexus-NRS solves the reduced radial equation for partial waves,
d 2 u ( r ) d r 2 + k 2 2 μ 2 V ( r ) ( + 1 ) r 2 u ( r ) = 0 ,
where k = 2 μ E / is the wave number, μ is the reduced mass, and is the orbital angular momentum. For halo nuclei, the asymptotic behavior of u ( r ) as r is critical for the Asymptotic Normalization Coefficient (ANC) and transfer cross sections.
The nuclear potential V ( r ) includes central, Coulomb, and spin-orbit terms. The nuclear part uses the Woods–Saxon form factor
f ( r , R , a ) = 1 + exp r R a 1 ,
and the total potential is
V ( r ) = V v f ( r , R v , a v ) i W v f ( r , R w , a w ) + V c ( r ) + V s o ( r ) ,
where V v and W v are the real and imaginary depths. The Coulomb potential for a uniformly charged sphere of radius R c is
V c ( r ) = Z Z e 2 2 R c 3 r 2 R c 2 for r R c Z Z e 2 r for r > R c .
Real and complex Woods–Saxon forms are used to generate distorted waves for scattering and reaction calculations.

2.2. Riccati–Numerov Integration and Near-Origin Initialization

For second-order linear ODEs of the form u ( r ) = g ( r ) u ( r ) , the Numerov algorithm gives a local truncation error of O ( h 6 ) . The recurrence is
1 h 2 12 g n + 1 u n + 1 = 2 + 5 h 2 6 g n u n 1 h 2 12 g n 1 u n 1 .
A key practical issue is stable initialization near r 0 , especially when centrifugal terms or Coulomb behavior are present.
Nexus-NRS supports physically motivated starts for the regular solution:
  • Finite power-series start for bound states and regular solutions, u ( r ) r + 1 for sufficiently small r.
  • Hybrid/Bessel-type start (Riccati–Bessel/Hankel-inspired) for scattering-oriented integrations: the solution is initialized using a linear combination of Riccati–Bessel functions at the first two grid points, which suppresses numerical growth of the irregular solution w ( r ) that would otherwise contaminate u ( r ) in the classically forbidden region.
In practice, for bound-state calculations the normalized regular solution is often insensitive to the specific regular start when integration is stable and normalization is enforced; however, for scattering observables the initialization can influence Wronskian drift and phase-shift convergence at coarse step sizes.

2.3. Discrete Wronskian Diagnostics

To monitor numerical stability, Nexus-NRS includes a discrete Wronskian diagnostic aligned with the Numerov recurrence. For two independent solutions u and v, the discrete Wronskian should be conserved under stable propagation. In scattering applications, Wronskian conservation provides a compact proxy for (i) remaining on the physical solution manifold, (ii) suppressing growth of the irregular component, and (iii) obtaining reliable phase shifts and cross sections under step-size and boundary variations.

2.4. Transfer Reactions in Post-Form DWBA

Single-nucleon transfer reactions such as ( d , p ) and ( p , d ) are treated in the DWBA. The transition matrix element for A ( a , b ) B is
T b a = d r a d r b χ b ( ) * ( r b ) ψ b ψ B | V | ψ a ψ A χ a ( + ) ( r a ) ,
where χ are the distorted waves and V is the transition operator. Nexus-NRS can evaluate the transition in the Post form ( V = V b B U b ) or the Prior form ( V = V a x U a ); both should agree in an exact calculation. The central numerical object is the partial-wave decomposed transition amplitude T L , built from:
  • initial and final distorted waves (from optical potentials),
  • bound-state overlap(s) from the structure-side solver, and
  • a transfer interaction model (e.g., zero-range or finite-range approximations, depending on the workflow).
The 6D integral is decomposed into 1D radial integrals involving distorted waves and bound-state overlaps; these overlaps are treated as form factors, pre-computed and cached for fast angular distribution scans. The implementation emphasizes consistent handling of complex-valued distorted waves and integrals, separation of kinematics from wave-function generation, and testable building blocks for the radial integrals.
For validation against textbook and literature angular distributions, the suite also implements DWBA building blocks following Austern’s multipole reduction: radial “multi-pole-to-multi-pole” integrals for zero-range cluster transfer (including Simpson integration of complex integrands) and angular momentum coupling through the reduced amplitudes that enter d σ / d Ω . Coulomb distortion is incorporated in the usual way via Sommerfeld parameters and σ factors carried on partial-wave rows. These routines underpin benchmark namespaces (e.g., Ca isotope stripping and halo-induced inelastic cases) and complement the schematic single-channel inelastic module described below.

2.5. Inelastic Scattering and Form Factors

The default inelastic pathway uses macroscopic form factors (e.g., surface-derivative couplings) and multipole selection rules: the user specifies multipolarities (often denoted λ ), and the code returns integrated or decomposed contributions suitable for energy-dependent cross checks.
In parallel, a dedicated benchmark workflow targets published 11 Li ( p , p ) data-parameter conventions [7]. It fixes 11 Li + proton kinematics and Woods–Saxon + spin–orbit + Coulomb optics with imaginary terms taken from the paper’s Table 1 (“Set V” volume absorption vs. “Set S” derivative-surface absorption). A collective transition operator is represented through a macroscopic proxy form factor scaled by an adjustable strength parameter ( β scale ) so that absolute cross sections can be aligned with figures while optics and angular momentum coupling remain fixed. This path is intended for method comparison rather than as a substitute for full coupled-channels or microscopic form-factor libraries.

3. Software Architecture and Usage

The calculation is structured as a pipeline: (1) Configuration—a plain data structure (e.g., EDN) defining the reaction; (2) Potential generation—a pure function mapping configuration to a potential grid; (3) Solver—takes the grid and returns wave function data; (4) Observable—reduces wave function data to cross sections. This data-in, data-out design supports parallel parameter scans and automated validation.

3.1. Code Organization

The core physics is organized into Clojure namespaces (examples):
  • dwba.transfer: bound states, transfer form factors, DWBA amplitudes and cross sections;
  • dwba.inelastic: inelastic couplings and cross sections (macroscopic form-factor pathway);
  • dwba.benchmark.*: reproducible literature-style calculations (e.g., 11 Li ( p , p ) paper parameters, Ca stripping, handbook stripping presets);
  • dwba.halo_nuclei: halo bound-state workflows and asymptotic diagnostics;
  • dwba.global_potentials: parameterizations for global optical potentials;
  • functions: shared numerics (special functions, Numerov kernels, stability utilities).

3.2. Reproducible Workflows

Nexus-NRS supports:
  • REPL workflows for exploratory development and diagnostics;
  • scripted examples under examples/ for end-to-end calculations; and
  • unit/integration tests under test/ for regression control.

3.3. Web Dashboard

The web-dashboard/ subproject provides a Ring/Compojure backend and a JavaScript (Plotly) frontend for interactive parameter exploration. A production deployment of the dashboard is available at https://www.nexus-nrs.uz (same-origin access to the JSON API). JSON POST endpoints cover core phase-shift and potential workflows, elastic nuclear + Coulomb differential cross sections, inelastic scattering, and transfer reactions—including a preset angular distribution for 16 O ( d , p ) benchmark kinematics. The inelastic tab supports a selectable model: the legacy macroscopic workflow (energy-dependent cross section at fixed angle grids encoded in the API contract) and the 11 Li ( p , p ) literature pipeline, which returns d σ / d Ω in mb/sr as a function of center-of-mass angle at user-specified proton laboratory energies (typically 6  MeV in normal kinematics, equivalent in the paper to high-energy 11 Li inverse kinematics on hydrogen targets). Optional fields control optical Set V/S, radial grids, multipole order, and β scale . Figure 1 shows a screenshot of the Nexus-NRS web dashboard.

4. Representative Results and Validation Workflow (HALO-40 Benchmarks)

This section summarizes two benchmark reaction workflows included with Nexus-NRS and intended to be expanded into the final Special Issue submission. In both cases, stability checks (step size, boundary radius, Wronskian drift) should be reported alongside physics outputs.

4.1. Halo Benchmark: 10 Be(d,p) 11 Be (Post-Form DWBA)

The halo-focused example uses 11 Be as a neutron-halo bound state ( 1 / 2 + ground state, S n = 504 keV) and computes the ( d , p ) transfer amplitude in post form. The hybrid Numerov start maintains stability out to 100 fm, which is needed to capture the full halo overlap. The workflow is implemented in examples/halo_nuclei_examples.clj:
  • Bound state (halo): 11 Be, E b 0.504 MeV, = 0 , with an adaptive asymptotic matching radius (halo-tail controlled).
  • Distorted waves: global optical potentials are selected automatically for entrance/exit channels (deuteron entrance, proton exit).
  • Transfer observable: a zero-range post-form DWBA amplitude and a corresponding d σ / d Ω . In the provided default configuration (L=0 transfer), the angular distribution is isotropic; this makes the example a compact diagnostic for bound-state normalization and numerical stability.
Reproducibility (from project root).
lein repl
then:
(load-file "examples/halo_nuclei_examples.clj")
Hybrid vs. finite Numerov-start check. The example includes an explicit comparison in which the 11 Be bound-state wave function is computed using (i) a hybrid/Bessel-type regular start and (ii) a finite regular start u ( h ) = h + 1 . The transfer cross section is computed with each bound state, and the ratio
( d σ / d Ω ) hybrid ( d σ / d Ω ) finite
is expected to be close to unity when both integrations are stable and the overlap is normalized. This provides a physics-relevant validation signal for the bound-state initialization choice in halo workflows.
Recommended reporting. (i) binding energy and matching radius; (ii) normalized overlap/ANC-related asymptotic diagnostics; (iii) d σ / d Ω and hybrid/finite ratio; (iv) convergence under h and r max .

4.2. Transfer Benchmark: 16 O(p,d) 15 O (Angular Distribution with L 7 )

The second benchmark targets a more structured angular distribution by including partial-wave contributions up to L max = 7 (for typical energies, e.g., E p 30 MeV, the suite achieves 1% convergence with L max = 25 ). The workflow is implemented in examples/example_16Opd.clj and computes:
  • Bound states: neutron overlap in 16 O (pickup orbital i = 1 , separation energy E 15.67 MeV) and neutron bound in the deuteron ( f = 0 , E 2.214 MeV), followed by explicit normalization.
  • Distorted waves: entrance (p+ 16 O) and exit (d+ 15 O) distorted waves from optical-model potentials.
  • Transfer amplitudes: a map { L T L } for L = 0 , , L max , followed by an angular differential cross section d σ / d Ω ( θ ) using the partial-wave sum with selection rules enforced through the bound-state values.
Reproducibility (from project root).
(load-file "examples/example_16Opd.clj")
The example prints d σ / d Ω in mb/sr at multiple angles (including 70° for quick comparison) and attempts to save a plot to output/16Opd_dcs.png (the output/ directory is typically gitignored).
Recommended reporting. (i) | T L | spectrum to show dominant partial waves; (ii) d σ / d Ω ( θ ) on a linear or semi-log scale; (iii) sensitivity to L max , h, and r max ; (iv) comparison to representative experimental points once a dataset and spectroscopic normalization are fixed.

4.3. Halo Inelastic Benchmark: 11 Li ( p , p ) (Published Optical Parameters)

This benchmark ties together multipole DWBA ingredients and published global optical-model parameters for a neutron-rich Borromean nucleus, following Tanaka et al. [7]. Experimental context on a low-lying soft dipole in 11 Li also includes isoscalar 11 Li ( d , d ) scattering [8]. In normal kinematics, a proton beam of order a few MeV impinges on 11 Li at rest; the same energy system corresponds, up to two-body kinematics, to inverse-kinematics measurements attempted in that work.
Physics content.
  • Optics: Woods–Saxon real well, Thomas spin–orbit, Coulomb, and imaginary depth with radius and diffuseness from Table 1 of Ref. [7], with “Set V” (volume imaginary) vs. “Set S” (derivative surface imaginary) selectable in code and in the dashboard.
  • Transition: dipole-dominated ( Δ L = 1 ) coupling with radial integrals in the Austern zero-range multipole picture and Coulomb σ factors applied consistently on partial-wave rows entering the angular reduction.
  • Normalization: the macroscopic surface-peaked form factor used here is a proxy for more complete E1 response treatments; an overall strength β scale (implemented as :beta-scale in the benchmark namespace) should be adjusted when comparing absolute cross sections to experimental figures, while relative angular shapes primarily probe optics and the DWBA couplings.
Reproducibility. From the project root, load examples/example_11Li_pp_paper1708_dwba.clj in a REPL, or call namespace dwba.benchmark.li11-pp-paper1708. Automated smoke tests under test/dwba/ assert finite cross sections on representative angle grids.
Web dashboard. Use the public site https://www.nexus-nrs.uz or run locally from web-dashboard/ (lein run). Open the Inelastic tab, select the Tanaka/ 11 Li paper model, set the main Energy range field to the desired proton laboratory energies (comma-separated), set E x 0.80  MeV for the lowest excitation discussed in the reference workflow, and compute.

4.4. Halo Transfer Context: 11 Li ( p , d ) 10 Li with Unbound 10 Li

One-neutron pickup on 11 Li populates 10 Li, which is unbound; experiments resolve strength in the low-lying resonance region rather than a bound final state [9]. The corresponding DWBA analysis in that work used inverse kinematics with a high-energy 11 Li beam on a hydrogen target and reported a narrow peak at E r 0.62  MeV, consistent with dominant p 1 / 2 removal strength and a spectroscopic factor of order unity. Nexus-NRS currently wires pickup angular distributions most directly for bound final nucleon states (dwba.transfer overlaps); treating the 10 Li continuum (including width-matched resonance or Gamow-state conventions) is left as an extension on top of the same distorted-wave infrastructure. The repository includes examples/example_11Li_pd_10Li.clj, which documents those references and prints entrance-channel kinematics for the beam energy regime of Ref. [9] without claiming a full continuum cross section.

5. Software Availability

  • Name: Nexus-NRS (Nuclear Reaction Suite)
  • Language: Clojure / ClojureScript
  • Live web dashboard:https://www.nexus-nrs.uz
  • License: EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0 (core); MIT (web dashboard subproject)
  • Platform: JVM (Java 8+), Leiningen 2+

6. Future Directions

Nexus-NRS is designed with AI-assisted research in mind. The reliance on plain-text data structures makes it suitable for integration with large language models (LLMs). A “Guided Workflow” agent is under development to help users choose optical potentials from a database of global parameters and to suggest error-correction steps when numerical instabilities are detected.

7. Conclusions

Nexus-NRS provides an integrated, open, and reproducible platform for nuclear reaction calculations across scattering, transfer, inelastic, and halo-structure use cases. By bridging high-performance numerics and functional programming, it combines Numerov-based radial solvers with stability diagnostics (discrete Wronskian monitoring), physics-level APIs, and a web dashboard (public deployment: https://www.nexus-nrs.uz) that lowers the barrier to exploratory studies. Recent extensions add Austern-style multipole DWBA integrals (with complex radial kernels where required), curated dwba.benchmark workflows, and dashboard-backed access to angular distributions for 11 Li ( p , p ) using published optical parameters. The software is suitable for conference dissemination and can serve as a basis for community extensions, including broader optical-potential libraries, improved finite-range transfer operators, expanded validation against curated datasets, and planned support for use from an LLM chatbot.

Author Contributions

Conceptualization, A.S.; software, A.S.; validation, A.S. and M.B.; writing—original draft preparation, A.S.; writing—review and editing, A.S. and M.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No external datasets are required to run the included examples. The open-source code is available at https://github.com/alishsan/nexus-nrs. An interactive dashboard is deployed at https://www.nexus-nrs.uz. Users may supply experimental datasets for their own validation studies.

Acknowledgments

The authors thank colleagues working on low-energy reaction theory and rare-isotope observables for community context around DWBA benchmarking.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DWBA Distorted Wave Born Approximation
REPL Read–Eval–Print Loop
JVM Java Virtual Machine
ANC Asymptotic Normalization Coefficient
API Application Programming Interface

References

  1. Tanihata, I.; et al. Measurements of Interaction Cross Sections and Nuclear Radii in the Light p-Shell Region. Phys. Rev. Lett. 1985, 55, 2676. [Google Scholar] [CrossRef] [PubMed]
  2. Satchler, G.R. Direct Nuclear Reactions; Oxford University Press: Oxford, U.K., 1983. [Google Scholar]
  3. Austern, N. Direct Nuclear Reaction Theories; Wiley: New York, NY, USA, 1970. [Google Scholar]
  4. Thompson, I.J.; Nunes, F.M. Nuclear Reactions for Astrophysics; Cambridge University Press: Cambridge, U.K., 2009. [Google Scholar]
  5. Numerov, B.V. A Method of Extrapolation of Perturbations. Mon. Not. R. Astron. Soc. 1924, 84, 592–602. [Google Scholar] [CrossRef]
  6. Fernández, F.M. Wronskian Method for One-Dimensional Quantum Scattering. Am. J. Phys. 2011, 79, 877–881. [Google Scholar] [CrossRef]
  7. Tanaka, J.; et al. Halo-induced Large Enhancement of Soft Dipole Excitation of 11Li Observed via Proton Inelastic Scattering. Phys. Lett. B 2017, arXiv:1708.07719776, 235–241. [Google Scholar] [CrossRef]
  8. Kanungo, R.; et al. Evidence of Soft Dipole Resonance in 11Li with Isoscalar Character. Phys. Rev. Lett. 2015, 114, 192502. [Google Scholar] [CrossRef] [PubMed]
  9. Sanetullaev, A.; et al. Investigation of the Role of 10Li Resonances in the Halo Structure of 11Li through the 11Li(p,d)10Li Transfer Reaction. Phys. Lett. B 2016, 755, 481–485. [Google Scholar] [CrossRef]
Figure 1. Screenshot of the Nexus-NRS web dashboard for interactive parameter exploration and visualization of reaction calculations.
Figure 1. Screenshot of the Nexus-NRS web dashboard for interactive parameter exploration and visualization of reaction calculations.
Preprints 208361 g001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated