Skip to main content

ZOS-API interface 2024 R2 SP02

Example 23: Ray Fan User Analysis

Last update: 17.07.2025

Ex 23: Using a batch ray trace, a Ray Fan analysis is generated via both the native OpticStudio code as well as manually via the IBatchRayTrace interface. The results, including proper scaling and execution time, are displayed for comparison purposes.

Input:      Sequential\Objectives\Double Gauss 28 degree field.zos

Output: Graph (Matlab, Python) API\e23_ray_fan_native_manual_comparison.txt (C++, C#)

C#

C++

Matlab

Python

Connect with Ansys