pyoptools.raytrace.surface.spherical module¶
- class pyoptools.raytrace.surface.spherical.Spherical¶
Bases:
SurfaceClass to define spherical optical surfaces.
The Spherical class represents a spherical optical surface. The surface is defined by specifying the shape of the aperture and the radius of curvature of the sphere.
The vertex of the spherical surface is located at the origin of coordinates (0, 0, 0), and the aperture is centered at the origin as well.
- Parameters:
curvature (double, optional) – The curvature of the spherical surface. A positive curvature indicates a convex surface, while a negative curvature indicates a concave surface. The default is 0.0.
*args (tuple, optional) – Additional positional arguments passed to the Surface superclass.
**kwargs (dict, optional) – Additional keyword arguments passed to the Surface superclass.
- curvature¶
The curvature of the spherical surface, as specified during initialization.
- Type:
double
Examples
Creating a spherical surface with a circular aperture and specific curvature:
>>> cs = Spherical(shape=Circular(radius=60), curvature=0.15)
Notes
The curvature is defined as the reciprocal of the radius of curvature (i.e., curvature = 1 / radius). A flat surface would have a curvature of 0.
Refer to the Surface documentation for additional options and parameters that can be used when defining the surface.
- curvature¶