Software/TOPAS: Difference between revisions

From PBTWiki
Jump to navigation Jump to search
Line 6: Line 6:
** [https://opentopas.readthedocs.io/en/latest/getting-started/install.html OpenTOPAS Installation Guide]
** [https://opentopas.readthedocs.io/en/latest/getting-started/install.html OpenTOPAS Installation Guide]


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.  
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 ==
== Running TOPAS Simulations ==

Revision as of 14:16, 20 June 2025

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 BDSIM. To check that it is working correctly, test the built-in help function:

$ bdsim --help

This should produce an output explaining all the possible options that can be used within BDSIM.

Required Software

BDSIM requires the following software to be installed:

  • Recent compiler with full C++11 support - proven compiler versions are GCC v4.9 or higher, or Clang 6 or higher.
  • CMake v2.8.12 or higher
  • CLHEP v2.1.3.1 or higher
  • ROOT v6.x or higher
  • Geant4 v4.10 or higher
  • Flex v2.5.37 or higher
  • Bison v2.3 or higher

These are all installed on the UCL HEP cluster.

Details

Website
https://twiki.ph.rhul.ac.uk/twiki/bin/view/PP/JAI/BdSim
Latest Version
0.9.9.2 (19th October 2017)

Installation Instructions

The installation process follows the general process described on the UCL HEP Linux Cluster page. The basic method used is as follows:

  1. Check that all the prerequisites for building BDSIM are installed (see above);
  2. Download the latest version of the source code;
  3. Create a build folder;
  4. Configure, build and install BDSIM from within the build folder.

Download BDSIM from its central repository

The BDSIM source code can be downloaded from its git repository using:

 $ git clone --recursive https://bitbucket.org/jairhul/bdsim 

This creates a /bdsim folder within your current folder. This folder contains all the code, examples, documentation and associated Python packages.

Configure, build and install BDSIM