legume.PlaneWaveExp.run

PlaneWaveExp.run(kpoints=array([[0], [0]]), pol='te', numeig=10)

Run the simulation. The computed eigen-frequencies are stored in PlaneWaveExp.freqs, and the corresponding eigenvectors - in PlaneWaveExp.eigvecs.

Parameters:
  • kpoints (np.ndarray, optional) – Numpy array of shape (2, Nk) with the [kx, ky] coordinates of the k-vectors over which the simulation is run.
  • pol ({'te', 'tm'}, optional) – Polarization of the modes.
  • numeig (int, optional) – Number of eigen-frequencies to be stored (starting from lowest).