tidy3dclient.Medium.from_nk

classmethod Medium.from_nk(n, k, freq, name=None)

Define a material through the real and imaginary part of the refractive index at a given frequency.

Parameters
  • n (float) – Real part of the refractive index.

  • k (float) – Imaginary part of the refractive index.

  • freq (float) – Frequency in Hetz

  • name (str, optional) – Custom name of the material.