This session will cover following topics

 

Tutorial topics

  • Installation and configuration of NX client
  • Configuration of the IMAS environment
  • Database initialization

 

1.  1. Connecting to remote working space

1.1. 1.1 Connecting to ITER cluster

You will probably want to use an SSH client that supports remote X for graphical environment. The host hpc-login4.iter.org supports NX clients such as NoMachine whilst you can connect to hpc-app1.iter.org with X2go.
You can use your ITER username and password, which is the same for the collaborative websites 

1.2. 1.2 Connection to the EUROfusion Gateway

In order to use Gateway, you have to meet following requirements:

  • You have to have Gateway account (in case you don't have one, you have to request it) - refer to this link
  • You have to install NX client

 

NX Connection to the Gateway

Gateway specific configuration of NX can be found here: here

 

2. 2.Setting IMAS

Loading all the IMAS modules. You will get access to libraries and most commonly used tools (FC2K, Kepler, Matlab interfaces, Python interfaces, etc.)

 

2.1. 2.1. Setting IMAS @ ITER Cluster

The fastest way to setup the environment for Kepler, IMAS and all the other dependencies is to load kepler module

module load fc2k kepler 

 

 Please follow this  >link<  to get detailed instructions how to set-up IMAS environment on ITER cluster

2.2. 2.2. Setting IMAS @ EUROfusion Gateway

You can switch to IMAS environment using:

module load imasenv

2.3. 2.3. Setting IMAS @ JET (Freia)

You can switch to IMAS environment using:

module load imas-modules    # add all imas modules to module path
module load imas/3.17.1     # or other version of your choice; default is older
module swap mdsplus/7.7.11  # the default version 6.1 loaded by JAC module is too slow with IMAS
module load pyual

The JET installation is maintained by Jonathan Hollocombe.

3. 3. Database initialization

In order to work with MDSPlus database you have to create and initialize MDSPlus database structure. This can be done by issuing following command:

imasdb <machine_name>
e.g.:
imasdb test

4. 4. Getting tutorial sources and input data

4.1.1. 4.1. Copying examples

Copy tutorial examples. You can install them by issuing following command from Terminal.

 

4.1.1.1. 4.1.1 IMAS @ ITER

shell> mkdir $HOME/tutorials
shell> cp -r /work/imas/training/2018-03-ITER $HOME/tutorials

4.1.1.2. 4.1.2 IMAS @ EUROfusion Gateway

shell> mkdir $HOME/tutorials
shell> cp -r /gw/swimas/resources/tutorials/2018-03-ITER $HOME/tutorials

4.1.2. 4.2. Copying input data

Copy data files used throughout the tutorial:

4.1.2.1. 4.2.1 IMAS @ ITER

# copy data files
shell> cp /work/imas/training/2018-03-ITER/pulsefiles/* $MDSPLUS_TREE_BASE_0

4.1.2.2. 4.2.2 IMAS @ EUROfusion Gateway

 

# copy data files
shell> cp /gw/swimas/resources/tutorials/2018-03-ITER/pulsefiles/* $MDSPLUS_TREE_BASE_0

4.1.3. 4.3. Set TUTORIAL_DIR variable

4.1.3.1. 4.3.1 IMAS @ ITER

shell> export TUTORIAL_DIR=$HOME/tutorials/2018-03-ITER

4.1.3.2. 4.3.2 IMAS @ EUROfusion Gateway

shell> setenv TUTORIAL_DIR $HOME/tutorials/2018-03-ITER

 

5. 5. Java memory settings

Please do not forget to set JAVA memory settings:

export _JAVA_OPTIONS="-Xss20m -Xms1g -Xmx4g"
  • No labels