How do I create a material from n, k values at a given frequency?#
Date |
Category |
---|---|
2023-12-05 18:51:47 |
Mediums |
To create a material from the real (\(n\)) and imaginary (\(k\)) parts of refractive index, use the tidy3d.Medium.from_nk(). For example:
nk_medium = tidy3d.Medium.from_nk(n=2.0, k=1.0, freq=freq0)
Negative \(k\) value corresponds to a gain medium. It is only allowed when the parameter
allow_gain
is set toTrue
.