pyoptools.raytrace.surface.cylindrical module¶
- class pyoptools.raytrace.surface.cylindrical.Cylindrical¶
Bases:
SurfaceClass to define cylindrical optical surfaces.
The Cylindrical class represents a cylindrical optical surface. The surface is defined by specifying the aperture shape and the radius of curvature of the cylinder.
The vertex of the cylindrical surface is located at the origin of coordinates (0, 0, 0).
- Parameters:
curvature (double, optional) – The curvature of the cylindrical 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 cylindrical surface, as specified during initialization.
- Type:
double
Examples
Creating a cylindrical surface with a rectangular aperture and a specific curvature:
>>> cs = Cylindrical(shape=Rectangular(size=(10, 20)), 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¶