Skip to main content

Python Zemax to SPEOS BSDF converter: version in progress

  • February 1, 2023
  • 1 reply
  • 270 views

Forum|alt.badge.img+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.

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+2

To access the branch, click here:

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings