N2 (Nitrogen)
4 datasets, together covering 0.145–2.059 µm. Default: Peck and Khanna 1966: n 0.47–2.06 µm; 0 °C.
Compare datasets
Tick datasets in the list to add them to the plot (up to 12).
Datasets
Use it in Lightsmith
Load this data in Python, simulate in one more line
pip install lightsmith
import lightsmith as ls
# N2 (Nitrogen): Peck and Khanna 1966: n 0.47–2.06 µm; 0 °C
n2 = ls.fetch_refractiveindex("main", "N2", "Peck-0C", ref="c5c2f188e848453def5970e347399d653df2ffc2")
print(n2.range_nm) # (467.9, 2058.7) nm
eps = n2.eps([633]) # complex permittivity
Downloads the original record once (pinned to the imported snapshot) and caches it.
import json, urllib.request
import lightsmith as ls
url = "https://materials.lightsmith.dev/v1/datasets/ds_4829f802446a/lightsmith"
n2 = ls.Tabulated.model_validate(json.load(urllib.request.urlopen(url)))
print(n2.source) # citation and provenance travel with the data
Any dataset here, as the library's Tabulated material (n2/peck-khanna-1966-0c).
# ... load n2 as above, then:
sim = ls.Simulation(
particles=[ls.Particle(shape=ls.Sphere(radius_nm=50), material=n2)],
medium_index=1.0,
wavelengths=ls.WavelengthRange(start_nm=468, stop_nm=1000, num=81),
)
res = ls.solve(sim) # exact Mie for a sphere
print(res.q_ext) # extinction efficiency at each wavelength
Same spec runs with DDA, FDTD, BEM or T-matrix: ls.compare(sim, ["mie", "dda"]).
Lightsmith is open source (MIT): Mie, T-matrix, BEM, DDA, FDTD, RCWA, TMM, mode solvers and inverse design behind one spec, on CPU or GPU. GitHub.
About N2 (Nitrogen)
Nitrogen (N2) is a diatomic gas that makes up approximately 78% of the Earth's atmosphere by volume. It is a colorless, odorless, and tasteless gas that is largely inert under standard conditions, resulting in its use as an unreactive blanket in many industrial applications. In the context of optics, nitrogen is commonly used as a purge gas to displace air and prevent condensation or contamination in high-power laser systems, optical instruments, and other sensitive equipment. Liquid nitrogen, which is nitrogen in its cryogenic liquid state, is employed as a coolant for infrared detectors and other electronic components. Its transparency in the visible and infrared regions makes it an ideal medium for certain optical experiments and applications.
Other names: Nitrogen
API: /v1/materials/mat_1a1cc1ab4965 · slug n2