OpenTOPAS (Interactive, Cray) on LANTA

Updated: 20 September 2024


1. Load required modules and set environment variables [Step 1-4]

Paste the below lines into your terminal. (Do NOT put these directly in ~/.bashrc.)

module purge module load expat/2.5.0 module load X11/20231019-cpeCray-23.03 module load libGLU/9.0.3-cpeCray-23.03 module load HarfBuzz/8.2.2-cpeCray-23.03 module load CMake/3.26.4 export CC=cc CXX=CC FC=ftn F77=ftn F90=ftn

2. Download Geant4 [Step 5]

mkdir $HOME/Applications mkdir $HOME/Applications/GEANT4 cd $HOME/Applications/GEANT4 wget https://gitlab.cern.ch/geant4/geant4/-/archive/v11.1.3/geant4-v11.1.3.tar.gz tar -zxf geant4-v11.1.3.tar.gz

3. Install Geant4 [Step 7]

cd $HOME/Applications/GEANT4/ rm -rf geant4-install geant4-build mkdir geant4-{build,install} cd geant4-build cmake ../geant4-v11.1.3 -DGEANT4_INSTALL_DATA=OFF -DGEANT4_BUILD_MULTITHREADED=ON -DCMAKE_INSTALL_PREFIX=../geant4-install -DGEANT4_USE_QT=OFF -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON make -j8 install cd $HOME/Applications/GEANT4/geant4-install ln -s lib64 lib
  • -DCMAKE_PREFIX_PATH=/usr/lib/qt5 -DGEANT4_USE_QT=ON is changed to -DGEANT4_USE_QT=OFF.

  • /geant4-install/lib is symbolically linked to /geant4-install/lib64.

4. Download G4DATA [Step 6]

5. Download OpenTOPAS [Step 8.1]

6. Install GDCM [Step 8.2-8.3]

7. Install OpenTOPAS [Step 8.4]

8. Create a wrapper script of topas [Step 9.1.b]

9. Run OpenTOPAS on LANTA

You can request an interactive session by executing, for example,

The X11 forwarding feature may require further setup.

  • If you use MobaXterm, the X11 forwarding should be supported by default.

  • If you login from a Linux terminal, set ForwardX11Trusted in /etc/ssh/ssh_config to yes and then login using ssh -Y username@lanta.nstda.or.th.

  • If you login from a Windows/Mac terminal, you need to install and run a X11 server, such as Xming and XQuartz, while using. Then login using ssh -Y username@lanta.nstda.or.th.

Please visit Interactive session for more details.

After the requested resources are allocated, you can use this session to run topas and interactively execute commands afterwards. A graphic window should appears when objects are rendered. For example, run

messageImage_1726466983050.jpg

Contact Us
ThaiSC support service : thaisc-support@nstda.or.th