Lumerical Palmetto

Drafted by Michelle, modified on 06/13/23

Given the challenges associated with opening an Ansys GUI on Palmetto, I propose creating the file on your personal computer and subsequently uploading it to Palmetto. Consequently, I will break this process down into three separate segments:

1.The procedure to construct a project locally

It is on license4.clemson.edu on port 28008.

For Ubuntu, the installation guide is https://optics.ansys.com/hc/en-us/articles/1500005392522-Ubuntu-Linux-installation-guide.

For Windows, the installation guide is https://optics.ansys.com/hc/en-us/articles/360024508974-Windows-installation-guide.

For Mac, the installation guide is https://optics.ansys.com/hc/en-us/articles/360020603033-macOS-installation-guide-deprecated-.

After entering the Ansys gui, please click Licenses and config it like the following figure.

Now, we can build the simulation in the interesting mode.

https://optics.ansys.com/hc/en-us/articles/360042800293-Ring-resonator-getting-started-Design-and-initial-simulation

The first step is setting up the model (create a ring resonator):

Press on arrow on the STRUCTURES button, and select a RECTANGLE from the pull-down menu. 

In 'Geometry', define the value of x, y, and z to decide the center location of the rectangle. x span, y span, and z span decide the size of the rectangle. Other parameters depend on the special simulation.

In 'Material',  we can choose the index from the library that Lumerical provides, or custom our own material.

For the other two options,  we can change the value depending on our requirements. If not necessary, it is better to keep the default value.

The second step is setting up the simulation (FDTD solution):

Lumerical provides different kinds of solvers and in the most condition, we will use 'Mode' and 'FDTD'.  

  2.5D varFDTD solver:  https://optics.ansys.com/hc/en-us/articles/360034917213-varFDTD

  Finite Difference Eigenmode (FDE) solver: https://optics.ansys.com/hc/en-us/articles/360034917233-FDE

          EigenMode Expansion (EME) solver: https://optics.ansys.com/hc/en-us/articles/360034396614-EME 

Finite Difference Time Domain (FDTD) solver: https://optics.ansys.com/hc/en-us/articles/360034914633-Finite-Difference-Time-Domain-FDTD-solver-introduction

The third step is setting up the source:

The fourth step is setting up the monitor:

The Fifth step is clicking the run button:

Before this operation, we can config the simulation resources. Changing the value of process and thread to accelerate the simulation job. 

   https://optics.ansys.com/hc/en-us/articles/360058790674-Resource-configuration-elements-and-controls

The sixth step is saving the project:

Then we will get the <file-name>.fsp file, we can load this file into the Palmetto and run it.

2. Steps to upload the file to Palmetto.

log in to the Palmetto and scp the local file into Palmetto.

For example,

>> ssh miaoxiy@login.palmetto.clemson.edu

>> Enter the password

>> cd /project/twei2/home/michelle

>> scp <file folder path>  ./

3. Guidelines for running the file on Palmetto.

Open Google, search 'Palmetto Documentation', and enter this website.  Then click the arrow at the right of 'Connecting', click 'Open OnDemand', click 'Introduction', and click a link 'openod.palmetto.clemson.edu'.  

In the upper bar, click 'Interactive Apps' and choose 'Palemtto Desktop'. Then we need to apply for the access. 

In the Resolution, it is upto the user.

Number of resource chunks means the number of PC is needed.

CPU cores per chunk(ncpus) and amount of memory per chunk is depending on the requirements.

Note: it is better to choose any in the Interconnect option, otherwise you will cann't find the PC.

Then click 'Launch'.

After this,  we will see the following figure, click 'Launch Palmetto Desktop'.  Open a terminal and input:

>> ping -c 4 license4.clemson.edu

>> module load lumerical/2021.2

>> scp /project/twei2/home/michelle/<file>.fsp ./

>> fdtd-solutions <file-name>.fsp  (i.e fdtd-solutions ring_resonator.fsp)

Then opening the Ansys GUI, we can click the run button directly.