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.
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).
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/
RESONANCETABLES can be downloaded in one of the following ways.
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.tarThis version is fixed and will not change.
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 resonancetablesThis 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.
Users with git can clone the repository with
git clone https://github.com/arjankoning1/resonancetables.gitThe advantage of this method is that the local RESONANCETABLES installation can subsequently be updated with
cd resonancetables
git pull --ff-onlyFor the frozen tar distribution:
cd resonancetables
./install_resonancetables.bashAn alternative is:
cd resonancetables/source
makeThe frozen distribution retains its own installation scripts and settings.
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.bashwhich automatically executes the Makefile in resonancetables/source.
An alternative is:
cd resonancetables/source
makeThe 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/ directory contains:
README.mdthis README fileLICENSEthe license fileinstall_resonancetables.bashinstallation scriptsource/the Fortran source code and Makefilebin/the executable after successful installationdoc/the tutorialfiles/original input databaseslibs/results extracted from nuclear data librariesthermal/produced thermal cross-section tablesmacs/produced Maxwellian-averaged cross-section tablesresonance/produced resonance and average-resonance-parameter tables
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.outassuming 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 checkmake 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.
This software is distributed and copyrighted according to the LICENSE file.