(C8H8)n (Polystyrene, PS)
5 datasets, together covering 0.4–25.02 µm. Default: Sultanova et al. 2009: n 0.437–1.05 µm.
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
# (C8H8)n (Polystyrene, PS): Sultanova et al. 2009: n 0.437–1.05 µm
polystyrene = ls.fetch_refractiveindex("organic", "polystyrene", "Sultanova", ref="c5c2f188e848453def5970e347399d653df2ffc2")
print(polystyrene.range_nm) # (436.8, 1052) nm
eps = polystyrene.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_62de37cb1e4e/lightsmith"
polystyrene = ls.Tabulated.model_validate(json.load(urllib.request.urlopen(url)))
print(polystyrene.source) # citation and provenance travel with the data
Any dataset here, as the library's Tabulated material (polystyrene/sultanova-2009).
# ... load polystyrene as above, then:
sim = ls.Simulation(
particles=[ls.Particle(shape=ls.Sphere(radius_nm=50), material=polystyrene)],
medium_index=1.0,
wavelengths=ls.WavelengthRange(start_nm=437, 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"]).
import json, urllib.request
import lightsmith as ls
url = "https://materials.lightsmith.dev/v1/datasets/ds_62de37cb1e4e/lightsmith?model=drude_lorentz"
polystyrene_dl = ls.DrudeLorentz.model_validate(json.load(urllib.request.urlopen(url)))
A dispersive Drude–Lorentz model for time-domain solvers.
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 (C8H8)n (Polystyrene, PS)
Styrene (C8H8) is a colorless to yellowish organic compound that exists as a liquid with a distinctive sweet smell, though its odor can be sharp and unpleasant in higher concentrations. It is an essential monomer used in the production of polystyrene, a versatile plastic. Styrene polymerizes readily; this property has led to its widespread use in producing a variety of polymer materials. Styrene can be found in various consumer products, such as food containers and packaging materials. In addition to its role in plastics, styrene's refractive properties are of interest in the optical domain. Prolonged exposure to its vapors should be avoided as it is considered a potential human carcinogen and can affect the central nervous system. Chemical formula: C6H5CH=CH2
Other names: C8H8)n (Polystyrene, PS, Styrene, C8H8, Phenylethene, Ethenylbenzene, Vinyl benzene, Cinnamene, Styrol, Diarex HF 77, Styrolene, Styropol, Vinylbenzene, Phenylethylene
Also listed in
API: /v1/materials/mat_be7257cd7f58 · slug polystyrene