Software/TOPAS

From PBTWiki
Jump to navigation Jump to search

TOPAS

TOPAS (Tool for Particle Simulation) is a program that uses the Geant4 Monte Carlo toolkit to build 3D models of medical physics systems and simulate particle transport through treatment heads, patients, and detectors

This is a tutorial about installing and using TOPAS. TOPAS is installed on the HEP Linux cluster at UCL. You will need an account on that cluster to be able to use this software, run example tutorials and create your own simulations.

Running TOPAS Simulations

In order to run TOPAS simulations, you will either need to download and install the software yourself or make use of the existing installation on the UCL HEP Linux cluster.

In order to use the UCL HEP Linux cluster, you will need a HEP account: please contact Prof. Simon Jolly for more details.

Running on the UCL HEP Linux Cluster (via CVMFS)

In order to run TOPAS simulations on the UCL HEP Cluster, you must source the TOPAS PBT environment from a system within the cluster. This can be done using the following command:

$ source /unix/pbt/software/TOPAS/topas.sh

This sets up all the required Geant4 modules over CVMFS and environment variables. This sets up the most recent version of OpenTOPAS (OpenTOPAS v4.0.0), however the script can be run using different flags in order to run oder versions if necessary. Now your system is ready to use TOPAS.

Running a simple OpenTOPAS Simulation on the UCL HEP Linux Cluster (via CVMFS)

To run the simple OpenTOPAS example of dose being scored inside a water phantom:

$ cd /unix/pbt/software/TOPAS/OpenTOPAS-install/examples/Scoring
$   ../../bin/topas Dose.txt