This repository includes FLUNED, a CFD-based tool for the simulation of activated coolant in fusion installations.
More detail on the usage, installation and testing is provided in the documentation pages: FLUNED Documentation
For additional information or contact: mdptr@mit.edu
FLUNED is a mesh-based tool for the simulation of the transport within fluids of radio-isotopes generated by a neutron source.
The tool takes as input the irradiation properties and a finished hydro-dynamic simulation performed with the code ANSYS FLUENT or OpenFOAM and creates a passive scalar simulation of the radio-isotope concentration.
The recommended way to install FLUNED is to use the installation script present in the FLUNED-Repository/installation-script/ folder.
The FLUNED components needs to run in a linux environment (linux or WSL2 in windows). FLUNED requires the installation of OpenFOAM v12, on which it is based. The installation script uses the uv python package manager for the python supporting scripts.
The simplest way is to download the script and run it with the following commands:
- Download
wget https://raw.githubusercontent.com/marco-de-pietri/FLUNED-repository/refs/heads/main/installation-script/fluned-repo-install.sh
- Make it executable
chmod +x fluned-repo-install.sh
- Install it
./fluned-repo-install.sh
- Restart shell or source the rc configuration file
source ~/.bashrc
The pre/post-processor scripts and the solver are designed to simplify the user simulation process. From the command line in the folder where the Ansys - FLUENT or OpenFOAM files are located the following workflow is recommended.
- Generate a FLUNED input template:
fluned -t
-
Modify the input_template file with the appropriate parameters. The file will contain the default values together with the available options.
-
Launch the FLUNED pre-processor:
fluned -i input-file
This will create a folder named as the FLUNED case reported in the input file. The created simulation files follow the OpenFOAM structure, therefore some additional tweaking in the simulation parameters can be done if the user has some previous knowledge of the OpenFOAM code. Thanks to the modularity of the OpenFOAM classes, FLUNED simulations can be natively run in parallel using the appropriate OpenFOAM commands.
- In the FLUNED case folder launch the solver by running:
FLUNED-solver
- Once the simulation is finished, the post-processor can be launched in the simulation folder by simply running:
fluned-post
When citing FLUNED, please consider the following publication:
De Pietri, M., Alguacil, J., Rodríguez, E. and Juárez, R., 2023. Development and validation in water of FLUNED, an open-source tool for fluid activation calculations. Computer Physics Communications, 291, p.108807. https://doi.org/10.1016/j.cpc.2023.108807
All the code present in the FLUNED-Repository is open-source software licensed under the GNU GPLv3 license.

