Simple Glass-Silver-Air Slab

I have tried solving this same example but I am not getting the resonance plot as shown on the lumerical application. I have attached my simulation file. Also resonance plot from lumerical application is attached
for reference. Please can you help me with the simulation

trial example1.fsp (250.4 KB)

trial example1.lsf (917 Bytes)

Dear @chaudharinikhil.pita

I noticed that the Bloch boundary conditions from FDTD Boundary condition settings has changed:

For simulations like this, since you are changing the source angle, this box has to be checked. You can read more about this here:

In Bloch boundary conditions the box has been checked Still I am not getting the optimized result.

Dear @chaudharinikhil.pita

I spent some time to replicate the results of the KB page, but unfortunately it was not successful. I am working with the R&D team to find the problem and will get back to you when the problem is solved.

Thank you for your patience

Dear @chaudharinikhil.pita

Luckily I found a workaround for you to run the simulations while our team is working to fix the bug. In your simulation file, since you are performing a single frequency simulation with refractive index of glass (n=1.46). set a constant dielectric constant for glass and perform the sweep.

This should give you identical plots as the KB page.


Sorry for the intrusion, but I wonder if there was any further progress on this other than the workaround in the previous post?
I would like to adapt this example which includes sweeping the wavelength and ‘manually’ changing the index each time is not ideal.
Many thanks.

Yes I tried solving for getting the plasmons interference pattern using the SPR resonance angle

Dear @ie5003_allison

Unfortunately this bug is not fixed yet. I will keep you updated if there was any progress.

I was thinking maybe you can export SiO2 (Glass) - Palik material index data, and then assign the single index value to glass object at wavelength of interest? This will require some scripting, but I will be happy to be of a help.

I understand that this is not the optimal approach for this problem, and sorry for any inconvenience.


Thanks for the quick reply. I think I understand. Would the relevant part of the script be something like this?

> index = [a,b,c,d,e,...]
> for(i=1:length(index)) {
>     setnamed( "glass", "index",i);
>     }

Where “a,b,c,d,e,…” are the single index values that I predetermined.
Or is there a method where I could extract the single index values from the SiO2 (Glass) - Palik material index data having assigned the wavelengths, such as (in pseudo code):

wavelength = [a,b,c,d,e,...]
for(i=1:length(wavelength)) {
    j = SiO2index@i
    setnamed( "glass", "index",j);

I can imagine that this may be a bit tricky if the exact wavelengths a,b,c,d,e,… are not in the database. I only need a few wavelengths, so the former is ok, but perhaps in the future the latter may be useful, so it is more out of curiosity than anything…

Dear @ie5003_allison

The first method works fine, but for more complicated cases and if you want to use material index or FDTD index, you can use this script:

# Specify material
material="Si (Silicon) - Palik";
# Specify frequency range
# Get material data
n_exp = getindex(material,f);  #Experimental raw data, real and imaginary part
n_FDTD = getfdtdindex(material,f,fmin,fmax);  # FDTD fit data, real and imaginary part
# plot data
plot(f/1e12,real(n_exp),real(n_FDTD),"f (THz)","Re(n)");
legend("experimental data","FDTD fit");
plot(f/1e12,imag(n_exp),imag(n_FDTD),"f (THz)","Im(n)");
legend("experimental data","FDTD fit");
# Find Re(n) at the wavelength of interest

lambda      = [500,550,600,650]*1e-9;
freq 	 = c/lambda;

?index = find(f,freq);

?n_sim = real(n_FDTD(index)); # or you can use  n_sim = real(n_exp(index));  to use material data

Once the index parameter are defined, you can use your script to assign them as constant material index. Please note that find command calculates the closest value in the matrix as explained in the link below:

I hope this answered your question and will be a good workaround at the moment.

Thank you. That will be a great help.

1 Like

Dear @chaudharinikhil.pita and @ie5003_allison

Thank you for your patience.

This bug is fixed in the latest release and will be available for download in the upcoming weeks (one or two weeks).

We had a great push on fixing many reported bugs, thanks to our R&D and developers.


1 Like