API reference#

This section is under construction.

class remsol.BackEnd#

Enum for schosing the back end of the simulation.

Scattering = BackEnd.Scattering#
Transfer = BackEnd.Transfer#
class remsol.IndexData#

Struct representing the index data of the multi-layer. This is also available in the Python API.

n#

The index of refraction of the multi-layer.

x#

The x values of the index data.

class remsol.Layer(n, d)#

Struct representing a layer in the stack. This class is also available in the Python API.

class remsol.MultiLayer(layers)#

Structs repressenting the multilayer structure. Implements methods for calculating the modes and fields of the structure. This is also available in the Python API.

field(omega, polarization=None, mode=None)#

Calculates the field profile of the requested mode. # Arguments * omega - The angular frequency of the mode. * polarization - The polarization of the mode. * mode - The mode number. # Returns The field profile of the mode. # Errors Returns an error if the mode is not found.

index()#

Returs the index profile of the multi-layer.

neff(omega, polarization=None, mode=None)#

Calculates neff of the requested mode. # Arguments * omega - The angular frequency of the mode. * polarization - The polarization of the mode. * mode - The mode number. # Returns The effective index of refraction of the mode. # Errors Returns an error if the mode is not found.

plot_step#

The step size for plotting the field.

class remsol.Polarization#

Enum for choosing the polarization of the light.

TE = Polarization.TE#
TM = Polarization.TM#