TALYS is a software package for the simulation of nuclear reactions below 200 MeV.
TALYS is based on state-of-the-art nuclear structure and reaction models.
A description of the code and its options can be found in the TALYS Tutorial (pdf).
The reference to be used for TALYS is
Arjan Koning, Stephane Hilaire and Stephane Goriely, TALYS: modeling of nuclear reactions, European Physical Journal A59 (6), 131 (2023).
The following are the prerequisites for compiling TALYS:
- GNU make
- a recent Fortran compiler, such as GNU Fortran (gfortran)
- git, only when TALYS is downloaded using
git clone
TALYS can be downloaded in one of the following ways.
The frozen TALYS-2.2 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/talys.tar
tar zxf talys.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 talys-main.tar.gz \
https://github.com/arjankoning1/talys/archive/refs/heads/main.tar.gz
tar zxf talys-main.tar.gz
mv talys-main talysThis produces the same talys/ 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/talys.gitThe advantage of this method is that the local TALYS installation can subsequently be updated with
cd talys
git pull --ff-onlyFor the frozen tar distribution:
cd talys
./install_talys.bashafter which you will be prompted for your name, which will appear in the output files.
An alternative option is
cd talys/source
makeThe above will invoke the default compiler gfortran.
The compiler and its flags can be set in either source/Makefile or code_build.bash.
The installation procedure is identical whether the latest beta version was obtained as a GitHub tar snapshot or using git clone.
From the talys/ directory, run
./install_talys.bashwhich automatically executes the Makefile in talys/source.
An alternative is
cd talys/source
makeThe executable is installed as
talys/bin/talys
At the end, install_talys.bash prints the recommended shell configuration.
Set TALYS_DIR to the TALYS installation directory. This variable is required unless the fallback path in source/machine.f90 has been set manually. For example:
export TALYS_DIR="/Users/koning/talys"If you want to run talys from anywhere, set
export PATH="$TALYS_DIR/bin:$PATH"To include your name in the output files, set
export TALYS_USER="Your Name"These lines can be added to ~/.zshrc or ~/.profile.
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 to the Makefile through install_talys.bash. For example:
# GNU Fortran
./install_talys.bash FC=gfortran FFLAGS="-O3 -ffp-contract=off"
# Intel Fortran
./install_talys.bash FC=ifx FFLAGS="-O3"For old computers with very small RAM, or for installation on Windows, the total allocated memory may be too large.
In that case, edit A0_talys_mod.f90 in the source directory and reduce the value of the memorypar variable.
The talys/ directory contains the following directories and files:
README.mdthis README fileLICENSEthe license fileinstall_talys.bashinstallation scriptsource/the Fortran source code of TALYS and the Makefilebin/thetalysexecutable after successful installationstructure/the nuclear structure and reaction database in various subdirectoriesmisc/miscellaneous files such as a gnuplot script to plot TALYS results versus EXFOR datadoc/the tutorial in pdf formatsamples/the input and output files of the sample cases and theverifyscript to run the sample cases
In total, you will need about 8 GB of free disk space to install TALYS.
The sample cases provide examples of the use of TALYS and can be used to verify a successful installation.
The samples/ directory contains various sample cases with a subdirectory org/ containing the reference results and a subdirectory new/ containing results produced by the user.
The entire sample set takes about 1 hour.
To run the sample cases:
cd samples
./verifyFor the latest beta version, the same check can be started from the top-level TALYS directory with
make -C source checkYou may create your own input file, for example talys.inp, after which TALYS can be run as
talys < talys.inp > talys.outassuming that talys/bin has been added to PATH.
The cross sections calculated by TALYS can be compared with experimental data from the EXFOR database using the misc/tplot script.
For this, the EXFORTABLES database needs to be installed in your home directory.
Run
misc/tplotto see all available options.
tplot needs to be called from the working directory containing the TALYS output files.
This software is distributed and copyrighted according to the LICENSE file.