Request a copy to Docker container by completing this form.
After your request is approved, you will receive a link to download an archive with a Docker container. Once downloaded, you will need to unarchive the file using your preferred extraction tool up to the .tar level.
To use TRANSP in a Docker container, you need to install Docker:
Load previously downloaded and unarchived TRANSP docker container into Docker by running the following command:
docker load -i <file_name>
TRANSP’s Docker container will open an X11 terminal by default. X11 support is required to run native TRANSP visualization tools like rplot
.
docker run
command:-v /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY
For Windows and Mac, refer to the guide at: X11 with Docker.
X11 is optional. If you don’t need visualization tools, you can disable X11 by adding:
--env XDG_RUNTIME_DIR=/tmp --env QT_QPA_PLATFORM=offscreen
Example command:
docker run --env XDG_RUNTIME_DIR=/tmp --env QT_QPA_PLATFORM=offscreen -it --rm --privileged -e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $HOME/work:/home/transp_user/work transp_v24.5.0 /usr/bin/bash
Ensure that you mount your local file system to Docker so that results persist after the container is closed. Example:
docker run --env XDG_RUNTIME_DIR=/tmp --env QT_QPA_PLATFORM=offscreen -it --rm --privileged -e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $HOME/work:/home/transp_user/work transp_v24.5.0
When the container starts, navigate to your work directory:
cd work
Create a directory for your tokamak and run ID:
mkdir -p NSTX/123456A01
cd NSTX/123456A01
Place your input files here.
pretr [MPI] <runid>
trdat <runid> wq
label <runid>
copy_expert_for <runid>
tr_build.py trexe <runid>
<runid>TR.EXE <runid>
Set the number of cores in TR.DAT
using NBI_NPROCS
and PTR_NPROCS
. Example for a 16-core run:
export NBI_NPROCS=16
export PTR_NPROCS=16
mpirun -np 16 <runid>TR.EXE <runid>
If the run was interrupted, restart it with:
<runid>TR.EXE <runid>r
mpirun -np <number_of_cores> <runid>TR.EXE <runid>r
poplt2 <runid>
cdfcon <runid> 0
This generates <runid>.CDF
, which can be visualized using:
rplot <runid>
Run rplot
from an X11 terminal (xterm
), or use Python’s matplotlib
for visualization.
We release two Docker versions:
IMAS-enabled TRANSP Docker is available only for organizations that have signed the user agreement with ITER, as it includes IMAS Data Dictionary, Access Layer libraries, and related tools.