pyoptools.raytrace.mat_lib.mat_eq module¶
File that define the Material class and subclasses that follow https://refractiveindex.info/database/doc/Dispersion%20formulas.pdf for the dispersion formulas
- class pyoptools.raytrace.mat_lib.mat_eq.Cauchy(coef, nd=None, vd=None)¶
Bases:
Material- n(wavelength=0.58929)¶
- class pyoptools.raytrace.mat_lib.mat_eq.Material(coef, cl, nd=None, vd=None)¶
Bases:
objectBase class to define an optical material. It receives the YML text as defined in https://refractiveindex.info/about
- property nd¶
- property vd¶
- exception pyoptools.raytrace.mat_lib.mat_eq.ModelNotImplemented¶
Bases:
ExceptionIndicates that the model to calculate the index of refraction is not implemented yet
- class pyoptools.raytrace.mat_lib.mat_eq.Polynomial(coef, nd=None, vd=None)¶
Bases:
MaterialClass that define a material that complies with the Polynomial dispersion model as defined at https://refractiveindex.info/database/doc/Dispersion%20formulas.pdf
- n(wavelength=0.58929)¶
- class pyoptools.raytrace.mat_lib.mat_eq.RefractiveIndex_Info(coef, nd=None, vd=None)¶
Bases:
Material
- class pyoptools.raytrace.mat_lib.mat_eq.Sellmeier(coef, nd=None, vd=None)¶
Bases:
MaterialClass that define a material that complies with the Sellmeier dispersion model as defined at https://refractiveindex.info/database/doc/Dispersion%20formulas.pdf
- n(wavelength=0.58929)¶
- class pyoptools.raytrace.mat_lib.mat_eq.Sellmeier_2(coef, nd=None, vd=None)¶
Bases:
MaterialClass that define a material that complies with the Sellmeier_2 dispersion model as defined at https://refractiveindex.info/database/doc/Dispersion%20formulas.pdf
- n(wavelength=0.58929)¶
- class pyoptools.raytrace.mat_lib.mat_eq.Tabulated_N(coef, nd=None, vd=None)¶
Bases:
MaterialClass that define a material that complies with the “tabulated n” format as provided by https://refractiveindex.info
- n(wavelength=0.58929)¶
- pyoptools.raytrace.mat_lib.mat_eq.from_yml(file_path)¶
Create a material instance from a YML file path as defined at https://refractiveindex.info/about