Skip to content

RSoft Photonics

Do you have a license?

In order to install RSoft Photonics on DelftBlue, you have to have a valid copy and/or be authorized by the owner of the TU Delft license to use it.

Installation steps are as follows (following official guide):

1) Copy your copy of the linux installation file to your /scratch folder.

2) Create the local installation folder:

mkdir /scratch/$USER/photonics-local-installation  

3) Make the installer executable and run the installer:

chmod +x photonicsolutions_v2021.03-1.bin
./photonicsolutions_v2021.03-1.bin

When prompted, enter the above local installation folder destination. Skip the Site ID questions.

4) Create a synopsis.lic license file with the following content:

SERVER flexserv11.tudelft.nl 001a4bcf06d4 29003
SERVER flexserv12.tudelft.nl 0018fe8a4478 29003
SERVER flexserv13.tudelft.nl 001a4baa0ca8 29003
USE_SERVER

5) Configure the environment:

Create an environment.sh file with the following content:

export PHOTONICS_SOLUTIONS_ROOT=/scratch/$USER/photonics-local-installation/photonicsolutions
export PHOTONICS_SOLUTIONS_VERSION=2021.03-1

export RSOFT_PROGRAMPATH=$PHOTONICS_SOLUTIONS_ROOT/$PHOTONICS_SOLUTIONS_VERSION/rsoft/bin
export OPTO_LINK_BASE=$PHOTONICS_SOLUTIONS_ROOT/$PHOTONICS_SOLUTIONS_VERSION/optodesigner/bin

export PATH=$OPTO_LINK_BASE:$PATH
export PATH=$RSOFT_PROGRAMPATH:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RSOFT_PROGRAMPATH

export SNPSLMD_LICENSE_FILE=/scratch/$USER/synopsys.lic

To activate this environment, execute the following command:

source /scratch/$USER/synopsys.lic

6) Finally, you can run RSoft Photonics without GUI, by submitting the following job script:

#!/bin/sh
#
#SBATCH --job-name="photonics"
#SBATCH --partition=compute
#SBATCH --time=01:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=1G
#SBATCH --account=research-<faculty>-<department>

module load intel/oneapi-all 
export I_MPI_HYDRA_TOPOLIB=ipl

source /scratch/sneji/environment.sh
export SNPSLD_LICENSE_FILE=29003@flexserv11.tudelft.nl

fwmpirun -np4 3support_perpendicular.ind prefix=run1 -hide wait=0