tidy3d.Medium

class tidy3d.Medium(name=None, **kwargs)

Base class for a custom defined material.

__init__(name=None, **kwargs)

Define a material. Various input artuments are possible which define either frequency-independent material parameters, or a dispersive, frequency-dependent model.

Parameters
  • epsilon (float or array_like, optional) – Real part of the dimensionless relative permittivity. For anisotropic materials an array of three elements giving the main diagonal values of the permittivity tensor can be provided.

  • sigma (float or array_like, optional) – (S/micron) Electric conductivity, s.t. Im(eps(omega)) = sigma/omega, where eps(omega) is the complex permittivity at frequency omega. For anisotropic materials an array of three elements giving the main diagonal values of the conductivity tensor can be provided.

  • n (float, optional) – Real part of refractive index.

  • k (float, optional) – Imaginary part of refractive index, where epsilon = (n + 1i*k)**2.

  • wl (float, optional) – (micron) Wavelength corresponding to n and k values.

  • freq (float, optional) – (Hz) Frequency corresponding to n and k values.

Note

Only the following combinations of arguments are supported:

  • Medium(epsilon)

  • Medium(epsilon, sigma)

  • Medium(n)

  • Medium(n, k, wl)

  • Medium(n, k, freq)

Methods

__init__([name])

Define a material.

epsilon([freqs, component])

Evaluate the (complex) relative permittivity of the medium.