Python Zemax to SPEOS BSDF converter: version in progress

  • 1 February 2023
  • 1 reply
  • 190 views

Userlevel 6
Badge +2

This example is a Python script to convert Zemax BSDF to Speos BSDF. The script is available here. It is not yet in the main branch as we are still running some tests but do feel free to use it and leave a comment.

https://github.com/ansys/optical-automation/blob/BSDF-converter/ansys_optical_automation/application/BSDF_converter_example.py

The user inputs are:

  • BSDF_inputFilepath: the Zemax BSDF. A window will appear to select the BSDF.
  • precisionTheta: the precision between theta values for the Speos BSDF. The default value is 1 degree.
  • precisionPhi: the precision between phi values for the Speos BSDF. The default value is 1 degree.

The script will create a Speos BSDF file in the same folder as the Zemax BSDF file.

 

For more information about Ansys optical_automation, click here.


1 reply

Userlevel 6
Badge +2

To access the branch, click here:

 

Reply