Files
TRIMSP/Readme.md
T
2026-04-14 17:41:15 +02:00

3.5 KiB

Trim.SP - TRIM simulation

Contents

This repository contains the Fortran source code and an accompanying graphical user interface (GUI) for TrimSP - an application for performing Monte Carlo simulations of ion implantation.

  • This code is specifically tuned to simulate implantation of low-energy projectiles in materials.
  • The code is maintained by the Low Energy Muons (LEM) group at the Paul Scherrer Institute (PSI).
  • The GUI is written in Node.js, JavaScript and Electron.
  • The binary (statically linked) from the Fortran code is also included.
  • RPM and DEB packages are also included.

Further information can be found in the following publications:

Supported platforms

Installation

For a simple installation you may use the included RPM or Debian packages which come with statically linked binaries. See instructions below if you prefer a manual installation.

Fortran code compilation

Install the gfortran compiler, then:

cd trimsp/fortran
make
make install

This will install the trimspNL binary in /usr/local/bin, but it can be moved to any other directory in your PATH.

Running the GUI

Install Node.js (nodejs, nodejs-libs and npm), then run:

cd trimsp
npm install
npm start

Note: you do not need to run npm install every time. Next time you can simply run npm start only.

Deploying on a web server

The browser version requires a server-side setup in addition to the static HTML/JavaScript files.

In particular:

  • the browser build uses TrimSPweb.js rather than the Electron-specific TrimSPelec.js
  • the simulation backend must be available on the server
  • a web-exposed helper/CGI layer is required to create input files, run the backend, and return the generated output

Notes:

  • this repository does not currently include the CGI/backend helper used by the online deployment
  • a plain static web server is therefore not sufficient for running web simulations from this checkout
  • static hosting can still be used to test page loading only

Contact

Zaher Salman zaher.salman@psi.ch