yeh_tm.insert_needle

yeh_tm.insert_needle(S, pos, M, d=0.01)

Insert a needle, i.e., a very thin layer with different refractive index into the center of the layer at a given position and return the resulting System class instance. The function creates a NEW System class using deepcopy and modifies this one. The old System instance remains unchanged.

Changed in version 11-05-2015: Changed input parameters to allow multiple materials.

Parameters:
  • S (System) – Optical system.
  • pos (int) – Position / index of layer into which the needle is inserted (0..N-1).
  • M (func) – Dielectric function of needle to insert.
  • d (float) – Thickness of the needle layer. Usually around 10nm (default 0.01 assumes units are um).
Returns:

New System class.