Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Material database


We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

This advanced function returns the permittivity of a material in the database as it will be used in an actual FDTD simulation, including the effects of a finite time step, dt. In FDTD, the relationship between the displacement field, D, and the electric field, E, is given by

In the limit where dt tends to zero, we have

where n(ω) is the refractive index returned by the script function getfdtdindex, or shown in the Materials Explorer. If you set dt to zero when calling this function, it will return exactly the same result as the square of getfdtdindex.


The name of the function is a reminder that it returns the numerical permittivity, i.e., the ratio of D and E, which is different from the refractive index, i.e. the ratio of the speed of light in a vacuum to the phase velocity of light in the medium. To understand the relationship between them, we must consider the full, numerical dispersion relation between ω and k, which is given by


In the limit where dt, dx, dy and dz tend to zero, it is easy to show that we have the expected result

The spatial FDTD mesh and time step are generally chosen to obtain a desired level of simulation accuracy, essentially by ensuring that the arguments of the sine functions are sufficiently small that sin(x)~x and that the simulation is stable. For some materials, it may be desired to further reduce the value of the time step, dt, without modifying the spatial FDTD mesh, in order to obtain a higher level of accuracy for εr(ω,dt). This script function makes it possible to calculate, in advance, the value of dt required to obtain the desired accuracy for the permittivity.


The results from getnumericalpermittivity will be different if the Broadband Fixed Angle Source Technique (BFAST) is used. Since the script function does not require a calculation being performed beforehand, the user needs to specify if the computation uses BFAST or not. See the BFAST page for more details about this technique.



Supported Product: FDTD, MODE




out = getnumericalpermittivity ( "materialname", f, fmin, fmax, dt);

Returns the complex permittivity of the material with the given name. The permittivity is returned for the specified frequency f. This is similar to getfdtdindex except for the additional parameter dt. All frequency units are in Hz.

getnumericalpermittivity("materialname", f,fmin, fmax, dt, component);

Optional argument component can be 1, 2 or 3 to specify the x, y or z component for anisotropic materials. The default is 1.

getnumericalpermittivity("materialname", f,fmin, fmax, dt, component, use_bfast);

Optional argument use_bfast can be 0 or 1. It indicates whether the simulation is performed using the Broadband Fixed Angle Source Technique (BFAST) or not. The default is 0.



This example shows how to get the material permittivity with the getindex, getfdtdindex and getnumerical permittivity functions. In this case, we compare the experimental permittivity data to the theoretical FDTD fit of the that data as well as to the numerical permittivity that will result using a finite value of dt.

material="Si (Silicon) - Palik";   # material 

source_min_f=c/800e-9;      # source min frequency

source_max_f=c/200e-9;      # source max frequency


component = 1;         # desired permittivity component x (1), y (2) or z (3). Relevant for anisotropic materials, default 1

use_bfast = 0;         # Change to 1 if using BFAST, default 0 


# get experimental data


# get FDTD fit of experimental data



# get the numerical FDTD result for 3 different values of dt

Tmin = 1/max(f_vector);

dt = Tmin * [ 0.1; 0.05; 0.01 ];

# alternate way to get dt values: 100%, 10%, 1% of current dt value

# dt = getnamed("FDTD","dt");

# dt = [dt; dt*0.1; dt*0.01];






# plot results


if (use_bfast==1){fdtd_method = "FDTD - BFAST";}

else{fdtd_method = "FDTD";}






          "wavelenth (nm)","Re(eps)",material);

legend("experimental data","FDTD fit",

    fdtd_method+", dt="+num2str(dt(1)*1e15)+"fs",

    fdtd_method+", dt="+num2str(dt(2)*1e15)+"fs",

    fdtd_method+", dt="+num2str(dt(3)*1e15)+"fs");




          imag(eps_numerical3),"wavelenth (nm)","Im(eps)",material);


legend("experimental data","FDTD fit",

    fdtd_method+", dt="+num2str(dt(1)*1e15)+"fs",

    fdtd_method+", dt="+num2str(dt(2)*1e15)+"fs",

    fdtd_method+", dt="+num2str(dt(3)*1e15)+"fs");


See Also

Material database, getindex, addmaterial, setmaterial, getfdtdindex

Copyright Lumerical Inc. | Privacy | Site Map