Appendix

Using AnsysHFSS on the HPC cluster

Connecting to the desktop environment

To launch ansys hfss you need to use x2go or a similar x11 forwarding program. Connect to the login node using the XFCE desktop environment setting in x2go.

Launching a job from ansysHFSS

When you have opened ansysHFSS click the submit button in the simulation tab

ansys_simulate_select

Next setup the simulation parameters as shown in the image and select the directory of the project that you want to simulate: ansys_submit_job_settings

In the compute resources tab select the ammount of cores, ram and the number of variations to distribute: ansys_submit_job_settings

In the scheduler options tab enter a custom job submission command. For example:

-l procs=180,pmem=2gb -q 'batch@rudens.hpc.rtu.lv' -N hfss -d /home_beegfs/<b>your user name</b>/ -l walltime=5:00:00 -j oe

ansys_submit_job_settings

Now just click submit job and everything should be running!

Ansys Remote Solver Manager (RSM)

For ansys Electronics Desktop see the other section “Using ansysHFFS on the cluster” in the guide

Prerequisites

Ansys RSM must be installed on your personal computer. You need to be connected to the RTU network - either directly or indirectly through a VPN

Setting up RSM

Open ansysRSM on your machine.

You should see the following screen. Press the button to add a new cluster(marked with a red arrow). ansys_simulate_select

Now enter a name for the new cluster on the right side under the HPC configuration header. For the HPC type choose “custom”. In the submit host enter “ui-2.hpc.rtu.lv”. In the custom HPC type enter “TORQUE”. Check the “Use HPC protocol…” checkbox and select “Able to directly submit and monitor HPC jobs”. Lastly click Apply at the bottom. ansys_simulate_select

In the second settings screen set everything as shown in the following image, but change the part “yourUserAccount” to your actual HPC account username. Click Apply. ansys_simulate_select

First double click on the credentials tab on the left side then click the button on the right panel to create new credentials. ansys_simulate_select

In the promt that appears enter your HPC username and the password that you use to login to the HPC cluster ansys_simulate_select

Select the cluster that you just created and any others where you wish to use this account. ansys_simulate_select

Go back to the cluster setup by double clicking on the cluster name

ansys_simulate_select

Select the queues tab(1.). Then press the button(2.) to load the queues from the cluster. Check the queues that you will need to use in the Enabled column. Finally, test if the queues work by clicking the submit button(3.) and if everything is setup correctly you should see a green checkmark next to the submit button. Click Apply.

ansys_simulate_select

Access to HPC cluster using MobaXterm

MobaXterm is a freeware that offers enhanced terminal for Windows with X11 server, SSH clients and other network tools. The personal home edition of MobaXterm can be downloaded from http://mobaxterm.mobatek.net/download-home-edition.html. The free personal edition supports 12 sessions, which is sufficient for our use.

  • Install and launch MobaXterm. When Windos Firewall prompted allow xwin_mobax only through private networks, and untick access via Public networks. Do not access these services from open networks.

MobaXterm_through_firewall

  • In a case of using portable version you need to setup right working directories: Settings => Configuration => General

  • For Persistent root directory use MobaXterm install directory

MobaXterm_portable

  • To create an SSH session, select Session and choose SSH in the Session settings.

  • Set remote host as ui-2.hpc.rtu.lv, tick Specify user_name and type your user_name in the box provided. Leave the port to be 22. Be sure that you mark Compression box in Advanced SSH settings. This is quite important for slow connections. Click OK.

MobaXterm_ssh_setup

  • You should now be able to see ui-2.hpc.rtu.lv(user_name) in the Sessions tab. Select this session. This should prompt you for your password. This is your RTU HPC password.

  • Make setting for X-Server (Settings => Configuration => X-server) like in a picture:

MobaXterm_X11

  • Connect with SSH : Sessions => User Sessions => your’s session name

Generating Keys on Windows using MobaXterm

There are multiple ways to generate SSH key pairs on a Windows system, and we present here instructions for generation and use SSH keys on MobaXterm as our preferred tool for its user friendliness. The MobaXterm application includes a tool to help you generate SSH key pairs. Before starting, you should login to RTU HPC with MobaXterm using your account username and password. Once you are logged in:

  • Click on Tools and MobaKeyGen (SSH key generator)

MobaXterm_keygen_01

In the section Parameters make sure to set the following properties:

  • Type of key to generate: RSA (this is the SSH-2 protocol)

  • Number of bits in a generated key: 4096

  • Hit the Generate button.

  • During generation, move the mouse cursor around in the blank area.

MobaXterm_keygen_02

  • When finished, make sure to protect your generated key with a passphrase. This passphrase is used for encrypting you private key to protect it against the private key file theft or being lost. When using the key for login, you will have to enter it (or the first time you load it into the SSH key agent). Note that when being asked for the passphrase this does not occur on the cluster but on your local computer.

  • Save the private and public key. The default name under Linux for the public key is id_rsa.pub and id_rsa for the private key, but you can name them however you want (the .pub is NOT automatically added). Note that the private key will be stored in Putty format (.ppk extension is added automatically).

MobaXterm_keygen_03

Converting Putty (.ppk) key into the OpenSSH format

  • Click Conversions and select Export OpenSSH key. Give the file the same name as your .ppk private key file above (just without the .ppk).

MobaXterm_converting_key

You should end up with three files:

  • id_rsa.pub This file yoy can paste into ~.ssh/authorized_keys file on yours HPC account

  • id_rsa.ppk This is your private key in Putty format

  • id_rsa This your private key in OpenSSH format.

Import key in Windows MobaXterm

  • Click Settings => Configuration => SSH tab

  • Be sure to activate the 4 options :

    • SSH keepalive

    • Use Internal SSH Agent

    • Use External Pageant

    • Forward Agent

  • Click on the + sign to import your private key (test_key.ppk in example ). It’s also possible to import a key generated on linux or MacOS.

MobaXterm_import_key