legume.Layer

class legume.Layer(lattice, z_min: float = 0, z_max: float = 0)

Class for a single layer in the potentially multi-layer PhC.

__init__(lattice, z_min: float = 0, z_max: float = 0)

Initialize a Layer.

Parameters:
  • lattice (Lattice) – A lattice defining the 2D periodicity.
  • z_min (float, optional) – z-coordinate of the bottom of the layer.
  • z_max (float, optional) – z-coordinate of the top of the layer.

Methods

__init__(lattice, z_min, z_max) Initialize a Layer.
compute_ft(gvec) Compute the 2D Fourier transform of the layer permittivity.
get_eps(points) Compute the permittivity of the layer over a ‘points’ tuple containing a meshgrid in x, y defined by arrays of same shape.

Attributes

eps_eff