pado.material.Material

class Material(material_name)[source]
Parameters:

material_name (Literal['PDMS', 'FUSED_SILICA', 'VACUUM', 'NOA61'])

__init__(material_name)[source]

Create optical material instance with specified refractive index.

Parameters:

material_name (str) – Material name: PDMS, FUSED_SILICA, VACUUM, or NOA61

Examples

>>> glass = Material("FUSED_SILICA")
>>> ri = glass.get_RI(500e-9)  # Get RI at 500nm
get_RI(wvl)[source]

Return refractive index at specified wavelength.

Parameters:

wvl (float, torch.Tensor, or numpy.ndarray) – Wavelength in meters. Tensor inputs are evaluated entirely in PyTorch, retaining the input device, float32/float64 dtype, shape, and autograd connection. Values must be real, finite, and strictly positive.

Returns:

Refractive index. Scalars

return a scalar and arrays are evaluated elementwise. VACUUM preserves the legacy scalar 1.0 return for non-tensor inputs; tensor inputs return ones with a zero wavelength derivative.

Return type:

float, torch.Tensor, or numpy.ndarray

Examples

>>> pdms = Material("PDMS")
>>> n = pdms.get_RI(633e-9)  # Get RI at 633nm