analysis.ray_fan#
Ray Aberration Fan Analysis
This module provides a ray fan analysis for optical systems.
Kramer Harrison, 2024
Classes
|
Represents a ray fan analysis referenced to the best-fit sphere center. |
|
Represents a ray fan aberration analysis for an optic. |
- class BestFitRayFan(optic, fields: str | list = 'all', wavelengths: str | list = 'all', num_points: int = 256, num_rays_for_fit: int = 15)[source]#
Represents a ray fan analysis referenced to the best-fit sphere center.
This class extends the standard RayFan analysis by changing the reference point for aberration calculations. Instead of using the chief ray’s intersection with the image plane, it uses the lateral coordinates (x, y) of the center of the wavefront’s best-fit sphere. This provides a measure of aberration relative to the point of optimal focus for the entire pupil.
The analysis plane for determining the ray intersection points is the nominal image plane (the final surface in the optical model).
Unlike the standard RayFan, this analysis does not recenter the plot on the chief ray. The origin (0,0) is the location of the best-fit sphere center. Therefore, the plot shows all aberrations, including distortion, relative to this optimal focal point.
- Parameters:
optic (Optic) – The optic object to analyze.
fields (str or list, optional) – The fields to analyze. Defaults to ‘all’.
wavelengths (str or list, optional) – The wavelengths to analyze. Defaults to ‘all’.
num_points (int, optional) – The number of points in each ray fan. Defaults to 256.
num_rays_for_fit (int, optional) – The number of rays (rings) in the hexapolar grid used to sample the pupil for the best-fit sphere calculation. A higher number provides a more accurate sphere center at the cost of computation time. Defaults to 15.
- Variables:
num_rays_for_fit (int) – The number of rays used for the sphere fit.
- class RayFan(optic, fields='all', wavelengths='all', num_points=256)[source]#
Represents a ray fan aberration analysis for an optic.
- Parameters:
- Variables:
- Methods:
view (figsize=(10, 3.33)) – Displays the ray fan plot.