Skip to content

About

Database for thermal cross sections, MACS and average resonance parameters

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

RESONANCETABLES

RESONANCETABLES is a software package to unify existing databases for thermal cross sections, resonance integrals, Maxwellian-averaged cross sections (MACS), resonance parameters and average resonance parameters. The final database is obtained through a priority selection among the original databases.

Most users can use the database supplied with this repository directly. Installing and running the code is mainly relevant when the database needs to be reconstructed.

Documentation and reference

A description of the code and its options can be found in the RESONANCETABLES tutorial (pdf).

The reference to be used for RESONANCETABLES is:

D. Rochman, A.J. Koning, J.-Ch. Sublet, A statistical analysis of evaluated neutron resonances with TARES for JEFF-3.3, JENDL-4.0, ENDF/B-VIII.0 and TENDL-2019, Nuclear Data Sheets 163, 163 (2020).

Installation

Prerequisites

The following are the prerequisites for compiling RESONANCETABLES:

  • GNU make
  • a recent Fortran compiler, such as GNU Fortran (gfortran)
  • git, only when RESONANCETABLES is downloaded using git clone

Reconstructing the complete database also requires external data installed as sibling directories of resonancetables/:

parent_directory/
├── resonancetables/
├── exfortables/
├── libraries/
└── tendl/

In particular, RESONANCETABLES uses:

parent_directory/
├── exfortables/special/
├── libraries/resbase/
└── tendl/

The required external databases can be obtained from the TALYS/TENDL distribution area at:

https://nds.iaea.org/talys/

Downloads

RESONANCETABLES can be downloaded in one of the following ways.

1. Frozen version (December 2025)

The frozen RESONANCETABLES distribution is available from the TALYS page. It can be retrieved by clicking on the download link or with

curl -LO https://nds.iaea.org/talys/codes/resonancetables.tar
tar zxf resonancetables.tar

This version is fixed and will not change.

2. Latest beta version without git

Users who do not have git can download a snapshot of the current main branch directly from GitHub:

curl -L \
  -o resonancetables-main.tar.gz \
  https://github.com/arjankoning1/resonancetables/archive/refs/heads/main.tar.gz

tar zxf resonancetables-main.tar.gz
mv resonancetables-main resonancetables

This produces the same resonancetables/ directory structure as the git version, but without the git history.

The downloaded snapshot contains the latest version of the main branch at the time of download. To obtain a newer version later, download the snapshot again.

3. Latest beta version using git

Users with git can clone the repository with

git clone https://github.com/arjankoning1/resonancetables.git

The advantage of this method is that the local RESONANCETABLES installation can subsequently be updated with

cd resonancetables
git pull --ff-only

Installation instructions

1. Frozen version

For the frozen tar distribution:

cd resonancetables
./install_resonancetables.bash

An alternative is:

cd resonancetables/source
make

The frozen distribution retains its own installation scripts and settings.

2. Latest beta version

The installation procedure is identical whether the latest beta version was obtained as a GitHub tar snapshot or using git clone.

From the resonancetables/ directory, run

./install_resonancetables.bash

which automatically executes the Makefile in resonancetables/source.

An alternative is:

cd resonancetables/source
make

The executable is installed as:

resonancetables/bin/resonancetables

For the latest beta version, the default compiler is gfortran. When gfortran is used and no FFLAGS are supplied, the Makefile uses:

-w -O3 -ffp-contract=off

For other compilers, no default compiler flags are imposed.

Compiler and compilation options can be passed through install_resonancetables.bash, for example:

# GNU Fortran
./install_resonancetables.bash FC=gfortran FFLAGS="-O3 -ffp-contract=off"

# Intel Fortran
./install_resonancetables.bash FC=ifx FFLAGS="-O3"

Set RESONANCETABLES_DIR to the RESONANCETABLES installation directory. For example:

export RESONANCETABLES_DIR="/Users/koning/resonancetables"

If you want to run resonancetables from anywhere, add its bin directory to PATH:

export PATH="$RESONANCETABLES_DIR/bin:$PATH"

These lines can be added to ~/.zshrc or ~/.profile.

If setting RESONANCETABLES_DIR is not possible, edit code_dir in source/machine.f90 and rebuild RESONANCETABLES.

No user-name environment variable is needed by RESONANCETABLES.

The RESONANCETABLES package

The resonancetables/ directory contains:

  • README.md this README file
  • LICENSE the license file
  • install_resonancetables.bash installation script
  • source/ the Fortran source code and Makefile
  • bin/ the executable after successful installation
  • doc/ the tutorial
  • files/ original input databases
  • libs/ results extracted from nuclear data libraries
  • thermal/ produced thermal cross-section tables
  • macs/ produced Maxwellian-averaged cross-section tables
  • resonance/ produced resonance and average-resonance-parameter tables

Reconstructing and checking the database

A successful installation can be tested by reconstructing the database. The full run takes roughly 10 minutes.

Important: RESONANCETABLES removes and recreates directories named thermal/, macs/ and resonance/ in the directory from which it is run. Therefore, run it in an empty or dedicated working directory unless you deliberately want those directories replaced.

For example:

mkdir resonancetables_test
cd resonancetables_test
resonancetables > resonancetables.out

assuming that resonancetables/bin has been added to PATH.

From the top-level RESONANCETABLES directory, the same check can be started safely with:

make -C source check

make check verifies that the required sibling exfortables/special/, libraries/resbase/ and tendl/ directories exist, then runs RESONANCETABLES in a temporary empty directory. The temporary output is removed after the check, so the database directories shipped in the repository are not overwritten.

License and Copyright

This software is distributed and copyrighted according to the LICENSE file.

About

Database for thermal cross sections, MACS and average resonance parameters

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages