The library can be used for education or research purposes in optical system design area. It provides ready to use software functions for optical system simulation and analysis that developer can simply plug into their software development for different purposes, for example for some specific synthesis tasks or investigation of new optimization modes. In the paper we present an example of using the library for development of cemented doublet synthesis software based on Slusarev’s methodology. The library is used in optical system optimization recipes course for deep studying of optimization model and its application for optical system design. Development of such software is an excellent experience for students and help to understanding optical image modeling and quality analysis. This development is organized as student group joint project. We try to organize it as a group in real research and development project, so each student has his own role in the project and then use whole library functionality in his own master or bachelor thesis. Working in such group gives students useful experience and opportunity to work as research and development engineer of scientific software in the future. |
1.INTRODUCTIONToday, there are many different software for the design of the optical systems. It can be the small programs to calculate some characteristics of the system and the software for analysis the properties of the optical systems. Most of the tools are paid, but some of them have free demo versions for promotional purposes. Most of the optical system design tools are by Windows only, some of them (the very old ones, but still popular in Russia) are by DOS only. Mostly creators don’t provide source code of these products, and because of that developers have to reimplement the same functionality by themselves. The open source cross-platform OPAL-API library is currently being developed by Applied and Computer Optics department of ITMO University. The library provides ready software functions and classes for optical system design and analysis that developer can simply plug into their software development. We use some algorithms and ideology from OPAL-PC, developed by Applied and Computer Optics department of ITMO University in 1970th years [1]. The OPAL-PC was developed only for DOS, that is not always user-friendly. 2.DEVELOPMENT IN STUDENT GROUPDevelopment of the library is organized as student group joint project. We try to organize it as a group in real research and development project, so each student has his own role in the project and then use whole library functionality in his own master or bachelor thesis. Working in such group gives students useful experience and opportunity to work as research and development engineer of scientific software in the future. 3.API-LIBRARY DESCRIPTIONThe library performs most frequently used calculation for paraxial and real ray:
So far, we assume optical system is centered, with spherical or 2d order aspherical surfaces. Optical glasses can be set directly by refraction index or by dispersion coefficients. All functions are available via API-commands. An example of program development using the API-commands: Also this module can be using in Mathlab: The OPAL-API library can be used to make software for MS Windows, Linux or Mac OS X. It is being written in C++ and implemented in dll file for Microsoft Windows, so file for Linux and dylib file for Mac OS X. Open-source code grant abilities to modify available algorithms and add new functions in library. API allows to call functions in another programming language or in special engineering software such as Matlab. Technically, at a future date it can be used in mobile development or cloud computing etc.. 4.EXAMPLES OF OPAL-API USAGEUsing that library some tools have been developed by group of student of the department of Applied and Computer Optics of ITMO University:
Also the library is used in optical system optimization recipes course for deep studying of optimization model and its application for optical system design. 4.1.Tool for optical systems search according to specified parametersIn the tool (figure 2) it is possible to set some design parameters (count of lenses, mirror of aspherical surfaces presence), object, image and aperture stop parameters, spectral parameters, focal distance and magnification. The tool in make a list of all files (OPAL-PC or Zemax format) with specified parameters in given folder (including subfolder). This tool is allowing using already developed optical system again as a start point for further design. 5.CEMENTED DOUBLET SYNTHESIS SOFTWARESoftware of cemented doublet synthesis is presented in figure 2. The software allows calculating cemented doublet [5,6] based on the third-order aberration theory (Slusarev’s methodology [7,8]). Slusarev’s methodology is based on lookup tables that allow calculating doublet radii by given value of third-order aberration by specific algorithm. The input parameters for algorithm are desired values of parameters P (parameter defining the third-order spherical aberration), W (parameter defining the third-order coma) and C (parameter defining the chromatic aberration). Additionally, it is necessary to set focal length, entrance pupil diameter, main wavelength, thicknesses of “crown” and “flint” lenses and number of glass combinations for analysis. The software looks up several appropriate pairs of glasses and calculates radii for each combination. The resulted third-order aberrations (in fact the parameters P, W, C) are calculated for obtained system. Transverse and longitudinal aberrations for real rays on the edge of the pupil for an axial beam of rays are also calculated for each doublet and shown in the result table. The software also computes axial color and coma. Coma is defined for the edge of the pupil and the fixed value of the angular field preliminary given in the software. All these calculated aberration values allow to compare aberrational parameters with initially set and find the best (with most close to the initial parameters) system. The software allows comparing several doublets and choosing the best by calculated third-order and real aberration. Several doublets can be analyzed in result table and the chosen one can be imported into Zemax. The calculated cemented doublet parameters can be analyzed and optimized in optical system design software. The software allows to make the first step of optical system design fast and simple. It allows to design not only the system which is free of the third-order spherical aberration, coma and axial color, but obtain necessary value of aberration for compensation of aberrations in another part of optical system. Possibility to automatically choose optical glasses and compare the real aberration of the preliminary designed system is especially important features of the developed software. The OPAL-API library using in this software for real ray aberration calculation and for import of result system to Zemax. 6.CONCLUSIONThus, the API library described in this paper performs paraxial and real ray tracing, calculates 3d order (Seidel) aberration and real ray aberration of axis and non-axis beams and finally, approximate wave aberration by Zernike polynomials. The library can be used for education or research purposes in optical system design area. It provides ready to use software functions for optical system simulation and analysis that developer can simply plug into their software development for different purposes, for example for some specific synthesis tasks or investigation of new optimization modes. The library is used in optical system optimization recipes course for deep studying of optimization model and its application for optical system design. Development of such software is an excellent experience for students and help to understanding optical image modeling and quality analysis. Working in such group gives students useful experience and opportunity to work as research and development engineer of scientific software in the future. REFERENCESRodionov, S.,
“Automatization of optical design,”
269 Mashinostroenie, Leningrad
(1982). Google Scholar
“Zemax Optical Design Program User’s Manual,”
805
(2011). Google Scholar
Domnenko, V., Ivanova, T., Gantvorg, M.,
“New object-oriented model of an arbitrary optical system,”
in Proc. SPIE 5249,
608
–615
(2004). Google Scholar
Ivanova, T.V., Zhukova, T.I.,
“Optical systems parameters conversion specifics,”
Journal of Optical Technology, 84
(1),
(2017). https://doi.org/10.1364/JOT.84.000012 Google Scholar
Romanova, G., Ivanova, T., Korotkova, N.,
“Automation design of cemented doublet,”
in Proc. SPIE 9626,
(2015). Google Scholar
Ivanova, T.V., Romanova, G.E., Zhukova, T.I., Kalinkina, O.S.,
“Method of achromatic and aplanatic cemented doublet design and analysis,”
Journal of Optical Technology, 84
(8),
(2017). https://doi.org/10.1364/JOT.84.000548 Google Scholar
Slusarev, G.G.,
“Optical Systems Design,”
Mashinostroenie, Leningrad, In Russian
(1975). Google Scholar
Trubko, S.V.,
“Calculation of Two Lens Cemented Objectives,”
Mashinostroenie, Leningrad, In Russian
(1984). Google Scholar
|