CN116661138B - An optical design method for grating spectrometer - Google Patents
An optical design method for grating spectrometer Download PDFInfo
- Publication number
- CN116661138B CN116661138B CN202310686263.1A CN202310686263A CN116661138B CN 116661138 B CN116661138 B CN 116661138B CN 202310686263 A CN202310686263 A CN 202310686263A CN 116661138 B CN116661138 B CN 116661138B
- Authority
- CN
- China
- Prior art keywords
- grating
- design
- sampling
- reconstruction
- light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B27/00—Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
- G02B27/0012—Optical design, e.g. procedures, algorithms, optimisation routines
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Spectrometry And Color Measurement (AREA)
- Diffracting Gratings Or Hologram Optical Elements (AREA)
Abstract
本发明涉及光学设计技术领域,尤其涉及一种光栅光谱仪的光学设计方法,包括步骤:S1、产生初始亲本种群;S2、基于所述初始亲本种群交叉变异,产生子代种群;所述交叉变异包括采样特征光线,并对每条所述采样光线赋值;S3、基于所述子代种群,进行系统重建;所述系统重建包括刻线分布重建、记录结构重建以及光栅面型重建中的至少一种;S4、使用遗传算法进行优化迭代设计,基于所述系统重建,判定和挑选新一轮的亲本种群;本发明的设计方法不需要构建复杂的像差展开模型,减少设计人员的人力工作;整个设计过程不存在高阶展开忽略的问题,设计结果更为精确;可针对任意类型的光谱仪均能够展开设计,设计更为普适。
The present invention relates to the field of optical design technology, and in particular to an optical design method for a grating spectrometer, comprising the steps of: S1, generating an initial parent population; S2, generating a progeny population based on crossover mutation of the initial parent population; the crossover mutation comprises sampling characteristic light rays, and assigning a value to each of the sampled light rays; S3, performing system reconstruction based on the progeny population; the system reconstruction comprises at least one of line distribution reconstruction, record structure reconstruction and grating surface reconstruction; S4, performing optimized iterative design using a genetic algorithm, and determining and selecting a new round of parent populations based on the system reconstruction; the design method of the present invention does not require the construction of a complex aberration expansion model, thereby reducing the manpower work of designers; the entire design process does not have the problem of neglecting high-order expansion, and the design result is more accurate; the design can be carried out for any type of spectrometer, and the design is more universal.
Description
技术领域Technical Field
本发明涉及光学设计技术领域,尤其涉及一种栅光谱仪的光学设计方法,能够执行该方法的计算机设备以及计算机可读存储介质。The present invention relates to the field of optical design technology, and in particular to an optical design method of a grating spectrometer, a computer device capable of executing the method, and a computer-readable storage medium.
背景技术Background technique
光谱仪能够实现对复色光束的波长-能量占比的精确分析,在金属冶炼、生化分析、环境监测以及组分鉴定等领域应用广泛。其中,光栅光谱仪具有色散线性、衍射效率高等优点,因此广泛应用在各类光谱仪中作为核心的分光原件。以光栅作为核心分光原件的光谱仪类型主要由使用平面光栅的CT和交叉CT结构光谱仪,使用凹面光栅的罗兰圆结构和Ⅲ型Ⅳ型光栅光谱仪结构,使用凸面光栅的Offner结构成像光谱仪以及一些用于特殊领域的自由曲面光栅光谱仪;几种典型的光谱仪系统结构示意图分别如图1~图3所示。Spectrometers can accurately analyze the wavelength-energy ratio of complex light beams and are widely used in metal smelting, biochemical analysis, environmental monitoring, and component identification. Among them, grating spectrometers have the advantages of dispersion linearity and high diffraction efficiency, so they are widely used in various spectrometers as the core spectroscopic element. The types of spectrometers with gratings as the core spectroscopic element mainly include CT and cross-CT structure spectrometers using plane gratings, Rowland circle structures and type III and IV grating spectrometer structures using concave gratings, Offner structure imaging spectrometers using convex gratings, and some free-form surface grating spectrometers used in special fields; the schematic diagrams of several typical spectrometer system structures are shown in Figures 1 to 3.
针对光谱仪的设计,传统的方法是构建针对目标系统的像差模型,一般会使用矢量像差理论、光程函数像差理论等方法,在针对构建像差模型中的像差系数配合优化算法进行优化设计。由于这些像差模型在构建过程中需要进行一定的展开项忽略,因此模型与真实光线路径存在固有的展开残余误差,最终设计结果与真是结果存在差异,需要进一步的分析验证;同时,这种设计方法也对设计人员的设计经验提出了要求,设计人员累积的设计经验能够帮助设计过程更为快速高效地得到满足设计指标的设计结果。但是随着现代光谱分析提出的更高光谱分辨力的指标需求以及具有不同用途的新型光谱仪结构,传统的设计方法在解决这些全新问题时不可避免地存在设计周期长,设计难度大等问题。因此,针对光栅光谱仪的高效快速设计方法对于更高性能光谱仪的研制是十分必要的。For the design of spectrometers, the traditional method is to construct an aberration model for the target system. Generally, methods such as vector aberration theory and optical path function aberration theory are used, and the aberration coefficients in the aberration model are optimized with the optimization algorithm. Since these aberration models need to ignore certain expansion items during the construction process, there is an inherent expansion residual error between the model and the real light path, and the final design result is different from the real result, which requires further analysis and verification; at the same time, this design method also puts forward requirements on the design experience of designers. The accumulated design experience of designers can help the design process to obtain design results that meet the design indicators more quickly and efficiently. However, with the requirements for higher spectral resolution indicators proposed by modern spectral analysis and new spectrometer structures with different uses, traditional design methods inevitably have problems such as long design cycle and high design difficulty when solving these new problems. Therefore, an efficient and fast design method for grating spectrometers is very necessary for the development of higher performance spectrometers.
针对光栅光谱仪的设计,国内外已开展诸多研究,并提出了多种解决方案:Many studies have been conducted at home and abroad on the design of grating spectrometers, and a variety of solutions have been proposed:
论文《Analytical representation of spot diagrams and its applicationto the design of monochromators》给出了一种典型的光程函数像差理论用于设计凹面光栅光谱仪的方法,通过构建系统的像差模型并对系统参数进行优化设计实现光谱仪设计。这种方法在构建像差展开模型时有选择的忽略了其中的高阶项,因此最终设计结果与实际追迹结果存在差异,设计精度较低。The paper "Analytical representation of spot diagrams and its application to the design of monochromators" presents a typical optical path function aberration theory for the design of concave grating spectrometers. The spectrometer design is achieved by building a system aberration model and optimizing the system parameters. This method selectively ignores the high-order terms when building the aberration expansion model, so the final design result is different from the actual tracking result, and the design accuracy is low.
论文《光谱仪用平场凹面光栅的凸面母光栅的消像差设计思路》给出了一中通过设计记录结构实现凹面光栅光谱仪的方法,同样使用像差模型进行优化。The paper "Design Ideas for Aberration-Correcting Convex Master Gratings of Flat-Field Concave Gratings for Spectrometers" presents a method for realizing a concave grating spectrometer by designing a recording structure, and also uses an aberration model for optimization.
论文《变间距凸面光栅成像光谱仪的消像散设计》中提出了一种基于集合光线追迹分析点列图配合梯度下降法的设计方法用于计算凸面变栅距光栅的刻线分布,这追踪方法不存在展开残余误差;但是需要选择若干个采样波长并赋予对应的权重因子,并在整个设计过程中根据设计结果重复调整权重,无法实现全视场、全波段的优化。The paper "Anti-Aberration Design of Variable-Pitch Convex Grating Imaging Spectrometer" proposes a design method based on collective ray tracing analysis of point diagrams combined with the gradient descent method to calculate the line distribution of convex variable-pitch gratings. This tracing method does not have any unfolding residual error; however, it is necessary to select several sampling wavelengths and assign corresponding weight factors, and repeatedly adjust the weights according to the design results during the entire design process, which makes it impossible to achieve optimization of the entire field of view and the entire band.
论文《Imaging spectrometer with single component of freeformconcavegrating》给出了一种自由曲面光栅光谱仪的设计方法,采用光线追迹手段重建光栅面型和刻线分布,但是并未对光谱仪系统参数进行寻优设计,并且缺乏对完整工作视场和波段内性能的均衡化优化设计策略。The paper "Imaging spectrometer with single component of freeform concave grating" proposes a design method for a freeform grating spectrometer, using ray tracing to reconstruct the grating surface shape and line distribution. However, it does not optimize the spectrometer system parameters, and lacks a balanced optimization design strategy for the complete working field of view and performance within the band.
发明内容Summary of the invention
本发明为解决上述问题,提供一种使用光线追迹手段为核心的光栅光谱仪的光学设计方法,通过从光谱仪结构出发逆向推导重建光栅特征,实现快速高效的光栅光谱仪设计。In order to solve the above problems, the present invention provides an optical design method of a grating spectrometer using ray tracing as the core, which realizes fast and efficient grating spectrometer design by reversely deducing and reconstructing grating features based on the spectrometer structure.
本发明提供一种光栅光谱仪的光学设计方法,所述光学设计方法包括步骤:The present invention provides an optical design method for a grating spectrometer, the optical design method comprising the steps of:
S1、通过设定系统参数寻优中心以及设定系统参数寻优范围,产生初始亲本种群;S1. Generate an initial parent population by setting the system parameter optimization center and setting the system parameter optimization range;
S2、基于所述初始亲本种群交叉变异,产生子代种群;所述交叉变异包括采样特征光线,并对每条所述采样光线赋值一个随机的波长和随机的视场;S2. generating a progeny population based on the crossover mutation of the initial parent population; the crossover mutation includes sampling characteristic light rays, and assigning a random wavelength and a random field of view to each of the sampled light rays;
S3、基于所述子代种群,进行系统重建;所述系统重建包括刻线分布重建、记录结构重建以及光栅面型重建中的至少一种;S3, based on the offspring population, performing system reconstruction; the system reconstruction includes at least one of the following: line distribution reconstruction, record structure reconstruction, and grating surface reconstruction;
S4、使用遗传算法进行优化迭代设计,基于所述系统重建,判定和挑选新一轮的亲本种群;S4, using a genetic algorithm to perform an optimized iterative design, and based on the system reconstruction, determine and select a new round of parent populations;
若所述亲本种群不满足设计目标,则用所述亲本种群替换所述初始亲本种群,循环执行S2~S4进行迭代,直至所述亲本种群满足设计目标,则输出设计结果;If the parent population does not meet the design goal, the initial parent population is replaced by the parent population, and S2 to S4 are iterated in a loop until the parent population meets the design goal, and then the design result is output;
若所述亲本种群满足设计目标,则结束迭代,输出设计结果。If the parent population meets the design goal, the iteration is terminated and the design result is output.
一些实施方式中,所述系统参数包括工作波段、工作视场以及口径参数;所述赋值包括赋值随机的视场、赋值的波长、赋值口径以及赋值权重因子。In some implementations, the system parameters include working band, working field of view and aperture parameters; the assignment includes assigning a random field of view, an assigned wavelength, an assigned aperture and an assigned weight factor.
一些实施方式中,所述产生初始亲本种群包括设置种群数量、设置优化策略以及设置迭代控制。In some embodiments, generating an initial parent population includes setting a population size, setting an optimization strategy, and setting an iteration control.
一些实施方式中,所述系统重建为刻线分布重建,所述系统重建包括步骤:In some implementations, the system reconstruction is a scoreline distribution reconstruction, and the system reconstruction comprises the steps of:
S311、在所述光栅光谱仪的入射狭缝上,随机取样若干个特征点,赋值随机的波长和光栅面上的特征点位置;根据理想物象关系,确定采样特征点在像面上对应的像点坐标;S311, randomly sampling a number of feature points on the incident slit of the grating spectrometer, assigning random wavelengths and feature point positions on the grating surface; and determining the image point coordinates corresponding to the sampled feature points on the image plane according to the ideal object-image relationship;
S312、针对S311中获得的采样光线在光源面、光栅面和像面的坐标点,求解所述采样光线在光栅面采样特征点上的入射方向、衍射方向以及光程;同时,求解具有相同视场、相同波长,并经过系统口径光阑中心光线的光程;按照衍射方程计算对应光栅面采样特征点的刻线函数和刻线密度分布;S312, for the coordinate points of the sampling light obtained in S311 on the light source plane, grating plane and image plane, solve the incident direction, diffraction direction and optical path of the sampling light on the sampling feature point of the grating plane; at the same time, solve the optical path of the light having the same field of view and the same wavelength and passing through the center of the system aperture stop; calculate the ruling function and ruling density distribution corresponding to the sampling feature point of the grating plane according to the diffraction equation;
S313、使用最小二乘法对S312中获得的所述刻线函数和所述刻线密度分布的数据进行拟合,通过所述拟合获得目标光栅的刻线分布表述;S313, fitting the data of the line function and the line density distribution obtained in S312 using the least square method, and obtaining the line distribution description of the target grating through the fitting;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使刻线数据的拟合残余误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: minimizing the peak-to-valley value or the root mean square value of the fitting residual error of the scribed line data through the genetic algorithm; at the same time, randomly changing the sampling of the characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
一些实施方式中,所述系统重建为记录结构重建,所述系统重建包括步骤:In some implementations, the system reconstruction is a record structure reconstruction, and the system reconstruction comprises the steps of:
S321、获得的采样光线在光源面、光栅面和像面的坐标点,求解所述采样光线在光栅面采样点上的入射方向、衍射方向以及光程;同时,求解具有相同视场、相同波长,并经过系统口径光阑中心光线的光程;按照衍射方程计算对应光栅面采样点的刻线函数和刻线密度分布;S321, obtain the coordinate points of the sampling light on the light source plane, grating plane and image plane, solve the incident direction, diffraction direction and optical path of the sampling light on the grating plane sampling point; at the same time, solve the optical path of the light with the same field of view and the same wavelength and passing through the center of the system aperture stop; calculate the ruling function and ruling density distribution of the corresponding grating plane sampling point according to the diffraction equation;
S322、在已知单个记录光源点位置的前提下,计算从已知曝光臂到光栅面采样特征点的光线光程和方向信息;S322, on the premise that the position of a single recorded light source point is known, calculating the optical path and direction information of the light from the known exposure arm to the sampling feature point on the grating surface;
S323、求解光栅面上每个采样特征点在未知记录臂中对应的相对光程差和光线入射方向,统计分析对应的记录臂长,并由中心处等效光栅密度联立已知记录臂的角度和记录波长,确定角度参量;S323, solving the relative optical path difference and light incident direction corresponding to each sampling feature point on the grating surface in the unknown recording arm, statistically analyzing the corresponding recording arm length, and combining the known recording arm angle and recording wavelength with the equivalent grating density at the center to determine the angle parameter;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使光栅面上每个采样特征点在S323中求解得的对应位置的记录光源点分布误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: using a genetic algorithm to minimize the peak-to-valley value or root mean square value of the recorded light source point distribution error at the corresponding position of each sampling feature point on the grating surface solved in S323; at the same time, randomly changing the sampling of the characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
一些实施方式中,所述系统重建为光栅面型重建,所述系统重建包括步骤:In some implementations, the system reconstruction is a grating surface reconstruction, and the system reconstruction comprises the steps of:
S331、按照随机采样的方法,确定一系列的狭缝上的特征点、对应的口径采样点以及波长;根据理想物象关系,确定每个狭缝采样特征点在像面上对应的像点坐标;S331, determining a series of characteristic points on the slit, corresponding aperture sampling points and wavelengths according to a random sampling method; determining the image point coordinates corresponding to each slit sampling characteristic point on the image plane according to an ideal object-image relationship;
S332、求解与S331中具有相同视场、相同波长,并经过未知光栅中心点的参考光线的光程信息;求解S331中采样光线与未知光栅面的交点,使所述采样光线的光程与对应的参考光线的光程一致;S332, solving the optical path information of the reference light having the same field of view and the same wavelength as that in S331 and passing through the center point of the unknown grating; solving the intersection point of the sampling light and the unknown grating surface in S331, so that the optical path of the sampling light is consistent with the optical path of the corresponding reference light;
S333、按照衍射方程针对S331中获得的采样特征点,求解对应的法线方向,并使用最小二乘法拟合获得面型;S333, solving the corresponding normal direction for the sampling feature points obtained in S331 according to the diffraction equation, and obtaining the surface shape by fitting using the least square method;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使面型拟合残余误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: minimizing the peak-to-valley value or the root mean square value of the surface fitting residual error through the genetic algorithm; at the same time, randomly changing the sampling of characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
一些实施方式中,任意一轮的拟合残余误差被额外拟合为如下的多项式:In some implementations, the residual error of any round of fitting is additionally fitted to the following polynomial:
其中,Fweight表示用于后续最小二乘法拟合的权重函数,aijmn表示拟合系数结果,λ为波长,field为视场,xaperture和zaperture表示口径坐标;i、j、m、n均为取值非负整数的拟合幂数,且0<i+j+m+n≤3。Among them, F weight represents the weight function used for subsequent least squares fitting, a ijmn represents the fitting coefficient result, λ is the wavelength, field is the field of view, x aperture and z aperture represent the aperture coordinates; i, j, m, and n are all fitting powers with non-negative integer values, and 0<i+j+m+n≤3.
一些实施方式中,所述多项式作为下一轮拟合过程的权重系数,参与所述最小二乘法拟合。In some implementations, the polynomial is used as a weight coefficient in the next round of fitting process and participates in the least squares fitting.
本发明还提供一种计算机设备,包括:The present invention also provides a computer device, comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明所述的一种光栅光谱仪的光学设计方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the optical design method of a grating spectrometer described in the present invention.
本发明还提供一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行本发明所述的一种光栅光谱仪的光学设计方法。The present invention also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the optical design method of a grating spectrometer described in the present invention.
与现有技术相比,本发明能够取得如下有益效果:Compared with the prior art, the present invention can achieve the following beneficial effects:
本发明所提供的光栅光谱仪的光学设计方法,不需要构建复杂的像差展开模型,减少设计人员的人力工作;整个设计过程不存在高阶展开忽略的问题,设计结果更为精确;可针对任意类型的光谱仪均能够展开设计,设计更为普适;采用遗传算法进行全局寻优,能够搜寻到更为合适的设计结果;而且,多种不同的设计策略可被自由选择,根据设计需求的不同选择不同的设计策略能够进一步降低设计难度并减少设计时间。The optical design method of the grating spectrometer provided by the present invention does not need to construct a complex aberration expansion model, thereby reducing the manpower work of designers; the problem of ignoring high-order expansion does not exist in the entire design process, and the design result is more accurate; the design can be carried out for any type of spectrometer, and the design is more universal; the genetic algorithm is used for global optimization, and more suitable design results can be searched; moreover, a variety of different design strategies can be freely selected, and selecting different design strategies according to different design requirements can further reduce the design difficulty and reduce the design time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是现有技术中Offner凸面光栅成像光谱仪的结构示意图;FIG1 is a schematic diagram of the structure of an Offner convex grating imaging spectrometer in the prior art;
图2是现有技术中含光栅记录结构的Ⅲ型凹面光栅光谱仪的结构示意图;FIG2 is a schematic diagram of the structure of a type III concave grating spectrometer containing a grating recording structure in the prior art;
图3是现有技术中用自由曲面光栅作为二阶色散元件的中阶梯光栅光谱仪的结构示意图;FIG3 is a schematic diagram of the structure of an echelle grating spectrometer using a free-form surface grating as a second-order dispersion element in the prior art;
图4是本发明具体实施方式中光栅光谱仪组成结构划分示意图以及光栅记录结构示意图;4 is a schematic diagram of the composition structure division of a grating spectrometer and a schematic diagram of a grating recording structure in a specific embodiment of the present invention;
图5是本发明具体实施方式中第一种系统重建方式的过程示意图;5 is a schematic diagram of a process of a first system reconstruction method in a specific implementation mode of the present invention;
图6是本发明具体实施方式中第二种系统重建方式的过程示意图;6 is a schematic diagram of a process of a second system reconstruction method in a specific implementation manner of the present invention;
图7是本发明具体实施方式中第三种系统重建方式的过程示意图;7 is a schematic diagram of a process of a third system reconstruction method in a specific implementation manner of the present invention;
图8是本发明具体实施方式中光栅光谱仪的光学设计方法的流程示意图;8 is a schematic flow chart of an optical design method of a grating spectrometer in a specific embodiment of the present invention;
图9是本发明具体实施方式中适于用来实现本发明实施方式的示例性计算机设备的框图。FIG. 9 is a block diagram of an exemplary computer device suitable for implementing embodiments of the present invention in accordance with a specific embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,而不构成对本发明的限制。In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.
通常,一个光栅光谱仪系统,从光源面上发射的光线经过若干个光学元件(或直接)照射在光栅表面上,经过光栅后不同波长的光线衍射到空间的不同方向并经过后续的若干个原件(或直接)汇聚在系统的像面上。如图4所示,本发明具体实施方式中,整个光栅光谱仪系统被划分为前置部分,光栅部分以及后置部分,其中前置部分从光源到光栅前的部分,后置部分包括从光栅后到像面的部分。Usually, in a grating spectrometer system, the light emitted from the light source surface passes through several optical elements (or directly) and irradiates on the grating surface. After passing through the grating, the light of different wavelengths is diffracted to different directions in space and converges on the image plane of the system through several subsequent elements (or directly). As shown in FIG4 , in a specific embodiment of the present invention, the entire grating spectrometer system is divided into a front part, a grating part and a rear part, wherein the front part is from the light source to the part in front of the grating, and the rear part includes the part from the back of the grating to the image plane.
如图4所示,对于从光源面上任一点A发出的光线,其经过光栅上一点P后与相面相交于点B,其中,C和D表示两个曝光光源位置,N表示光栅上点P处的面型法线方向;图4用来表征结合曝光系统的光栅表面光线追迹计算,其光程函数可表示为式(1)所示,As shown in FIG4 , for a light ray emitted from any point A on the light source surface, it passes through a point P on the grating and intersects the phase plane at point B, where C and D represent the positions of two exposure light sources, and N represents the surface normal direction at point P on the grating. FIG4 is used to characterize the grating surface ray tracing calculation combined with the exposure system, and its optical path function can be expressed as shown in formula (1):
F=AP+PB+nPmλ (1)F=AP+PB+ nPmλ (1)
其中,nP表示光栅P点出的刻线函数值,λ表示计算光线波长,m为光栅的衍射级次;根据费马原理,光线的传播路径为光程极值,即光程函数F关于P点坐标的偏导数应该为0,具体如式(2)和式(3)所示,Where nP represents the value of the line function at point P of the grating, λ represents the wavelength of the calculated light, and m is the diffraction order of the grating. According to the Fermat principle, the propagation path of the light is the optical path extreme value, that is, the partial derivative of the optical path function F with respect to the coordinates of point P should be 0, as shown in equations (2) and (3).
另外,在图4所示的双球面波全息光栅记录结构中,光栅的刻线函数和刻线密度函数可表示为式(4)~(6)所示,In addition, in the double spherical wave holographic grating recording structure shown in FIG4 , the grating line function and line density function can be expressed as shown in equations (4) to (6):
λ0nP=(CP-DP)-(CO-DO) (4)λ 0 n P =(CP-DP)-(CO-DO) (4)
上述公式中,CP和DP表示从两个光源点C和D照射到光栅表面任一点P的光程,CO和DO表示从光源点照射到光栅中心的光程,δ表示求解偏导数符号;α,β,γ表示对应角标光线的方向余弦,x,y,z表示对应角标的空间坐标,λ0表示全息光栅的记录波长;在其他的具体实施方式中,采用其他的光栅记录结构时,公式(5)和公式(6)无需进行任何更改也同样适用。In the above formula, CP and DP represent the optical path from two light source points C and D to any point P on the grating surface, CO and DO represent the optical path from the light source point to the center of the grating, δ represents the sign of the partial derivative to be solved; α, β, γ represent the direction cosines of the corresponding index light, x, y, z represent the spatial coordinates of the corresponding index, and λ 0 represents the recording wavelength of the holographic grating; in other specific implementations, when other grating recording structures are used, formula (5) and formula (6) are also applicable without any changes.
本发明具体实施方式中,根据上述计算过程,确定在计算光谱仪光栅上光线的传播路径主要使用的参量可分为如下三类:光线的入射方向和衍射方向,光栅面型以及光栅的刻线分布(或光栅的记录结构)。当这三类量中的任意两部分已知时,即可通过上述推导求解出第三组量,本发明基于这一核心思想提出以下具体实施方案。In a specific implementation of the present invention, according to the above calculation process, the parameters mainly used to determine the propagation path of light on the grating of the computational spectrometer can be divided into the following three categories: the incident direction and diffraction direction of the light, the grating surface type and the grating line distribution (or the recording structure of the grating). When any two of these three types of quantities are known, the third group of quantities can be solved through the above derivation. Based on this core idea, the present invention proposes the following specific implementation scheme.
如图8所示,为本发明具体实施方式中光栅光谱仪的光学设计方法的流程示意图,从图中可以看出,本发明具体实施方式中,提供一种光栅光谱仪的光学设计方法,所述光学设计方法包括步骤:As shown in FIG8 , it is a schematic flow chart of an optical design method of a grating spectrometer in a specific embodiment of the present invention. As can be seen from the figure, in a specific embodiment of the present invention, an optical design method of a grating spectrometer is provided, and the optical design method comprises the steps of:
S1、通过设定系统参数寻优中心以及设定系统参数寻优范围,产生初始亲本种群;所述系统参数包括工作波段、工作视场以及口径参数;所述产生初始亲本种群包括设置种群数量、设置优化策略以及设置迭代控制;S1. Generate an initial parent population by setting a system parameter optimization center and a system parameter optimization range; the system parameters include a working band, a working field and an aperture parameter; generating the initial parent population includes setting a population size, setting an optimization strategy and setting an iterative control;
S2、基于所述初始亲本种群交叉变异,产生子代种群;所述交叉变异包括采样特征光线,并对每条所述采样光线赋值一个随机的波长和视场;所述赋值包括赋值随机的视场、赋值随机的波长、赋值口径以及赋值权重因子;S2. Based on the crossover mutation of the initial parent population, a progeny population is generated; the crossover mutation includes sampling characteristic light rays, and assigning a random wavelength and field of view to each of the sampled light rays; the assignment includes assigning a random field of view, a random wavelength, an assignment caliber, and an assignment weight factor;
S3、基于所述子代种群,进行系统重建;所述系统重建包括刻线分布重建、记录结构重建以及光栅面型重建;S3, based on the offspring population, performing system reconstruction; the system reconstruction includes reconstruction of grating distribution, reconstruction of recording structure and reconstruction of grating surface type;
S4、使用遗传算法进行优化迭代设计,基于所述系统重建,判定和挑选新一轮的亲本种群;S4, using a genetic algorithm to perform an optimized iterative design, and based on the system reconstruction, determine and select a new round of parent populations;
若所述亲本种群不满足设计目标,则用所述亲本种群替换所述初始亲本种群,循环执行S2~S4进行迭代,直至所述亲本种群满足设计目标,则输出设计结果;If the parent population does not meet the design goal, the initial parent population is replaced by the parent population, and S2 to S4 are iterated in a loop until the parent population meets the design goal, and then the design result is output;
若所述亲本种群满足设计目标,则结束迭代,输出设计结果。If the parent population meets the design goal, the iteration is terminated and the design result is output.
具体的实施方式中,通过遗传算法的迭代收敛,输出设计结果;具体包括两种控制策略,当二者满足任一条件时认为计算结果已经收敛,可以结束迭代;第一种方式,迭代轮数达到设定最大迭代轮数,最大迭代轮数可手动调整,优选的可以选取20轮;第二种方式,迭代判定函数值达到预设最小结果,具体的,这个结果根据本发明涉及到的三种不同实施方式对应的系统重建策略会有不同的结果。In a specific implementation manner, the design result is output through the iterative convergence of the genetic algorithm; specifically, two control strategies are included. When any one of the conditions is met, it is considered that the calculation result has converged and the iteration can be terminated; in the first way, the number of iteration rounds reaches the set maximum number of iteration rounds, and the maximum number of iteration rounds can be adjusted manually, preferably 20 rounds can be selected; in the second way, the iteration judgment function value reaches the preset minimum result. Specifically, this result will have different results according to the system reconstruction strategies corresponding to the three different implementation modes involved in the present invention.
本发明具体实施方式提供的光栅光谱仪的光学设计方法是一种基于光线追迹方法的光栅光谱仪设计方法,可避免传统像差模型展开方法导致设计精度差、设计周期长的问题;通过使用光栅衍射过程中光线方向、光栅面型和光栅刻线分布之间的相关关系,实现在任两类数据已知的情况下通过求解位置参量实现光谱仪设计。The optical design method of the grating spectrometer provided in the specific embodiment of the present invention is a grating spectrometer design method based on the ray tracing method, which can avoid the problems of poor design accuracy and long design cycle caused by the traditional aberration model expansion method; by using the correlation between the light direction, grating surface shape and grating line distribution in the grating diffraction process, the spectrometer design can be realized by solving the position parameters when any two types of data are known.
本发明具体实施方式提供的光栅光谱仪的光学设计方法,在使用遗传算法对设计过程进行优化设计时,使用随机的视场、波长和口径采样方式,每一轮迭代过程使用完全随机的采样结果,保证设计结果具有连续视场、连续波段的均衡高分辨力;同时,使用拟合方式求解未知设计参量,并以拟合残余误差的峰谷值或均方根值作为判定;在迭代设计过程中,使用上一轮设计目标的拟合残余误差相对于视场、波长和采样口径拟合的多项式作为下一轮设计的权重因子,指导下一轮的设计过程;在刻线分布拟合和面型拟合时,同时使用刻线函数值(或面型矢高值)和刻线函数密度值(或面型偏导数值)进行拟合,保证拟合结果更接近设计目标;通过更改在光谱仪系统中反向追迹的起始点(即像点)可以实现含像差容忍的设计;而且,这个过程通过追迹结果自动进行更改,降低人力参与。The optical design method of the grating spectrometer provided in the specific embodiment of the present invention uses a random field of view, wavelength and aperture sampling method when optimizing the design process using a genetic algorithm, and uses completely random sampling results in each round of iteration process to ensure that the design result has a balanced high resolution of a continuous field of view and a continuous band; at the same time, a fitting method is used to solve unknown design parameters, and the peak-to-valley value or the root mean square value of the fitting residual error is used as a judgment; in the iterative design process, the polynomial of the fitting residual error of the previous round of design goals relative to the field of view, wavelength and sampling aperture is used as the weight factor of the next round of design to guide the next round of design process; when fitting the line distribution and the surface shape, the line function value (or the surface shape vector height value) and the line function density value (or the surface shape partial derivative value) are used for fitting at the same time to ensure that the fitting result is closer to the design goal; by changing the starting point (i.e., the image point) of the reverse tracing in the spectrometer system, a design with aberration tolerance can be achieved; and this process is automatically changed through the tracing results to reduce human participation.
第一种具体实施方式中,所述系统重建可以为刻线分布重建,所述系统重建包括步骤:In a first specific implementation manner, the system reconstruction may be a scribe line distribution reconstruction, and the system reconstruction includes the steps of:
S311、在所述光栅光谱仪的入射狭缝上,随机取样若干个特征点,赋值随机的波长和光栅面上的特征点位置;根据理想物象关系,确定采样特征点在像面上对应的像点坐标;S311, randomly sampling a number of feature points on the incident slit of the grating spectrometer, assigning random wavelengths and feature point positions on the grating surface; and determining the image point coordinates corresponding to the sampled feature points on the image plane according to the ideal object-image relationship;
S312、针对S311中获得的采样光线在光源面、光栅面和像面的坐标点,求解所述采样光线在光栅面采样特征点上的入射方向、衍射方向以及光程;同时,求解具有相同视场、相同波长,并经过系统口径光阑中心光线的光程;按照衍射方程计算对应光栅面采样特征点的刻线函数和刻线密度分布;S312, for the coordinate points of the sampling light obtained in S311 on the light source plane, grating plane and image plane, solve the incident direction, diffraction direction and optical path of the sampling light on the sampling feature point of the grating plane; at the same time, solve the optical path of the light having the same field of view and the same wavelength and passing through the center of the system aperture stop; calculate the ruling function and ruling density distribution corresponding to the sampling feature point of the grating plane according to the diffraction equation;
S313、使用最小二乘法对S312中获得的所述刻线函数和所述刻线密度分布的数据进行拟合,通过所述拟合获得目标光栅的刻线分布表述;S313, fitting the data of the line function and the line density distribution obtained in S312 using the least square method, and obtaining the line distribution description of the target grating through the fitting;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使刻线数据的拟合残余误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: minimizing the peak-to-valley value or the root mean square value of the fitting residual error of the scribed line data through the genetic algorithm; at the same time, randomly changing the sampling of the characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
具体如图5所示,为本发明具体实施方式中第一种系统重建方式的过程示意图,以图1所示的凸面消像差光栅Offner成像光谱仪为例,系统重建的目的是获得满足当前结构下的目标光栅刻线分布模型,即公式(7)中的刻线函数各项系数n0,n1,n2和n3,Specifically, as shown in FIG5 , it is a schematic diagram of the process of the first system reconstruction method in a specific implementation mode of the present invention. Taking the convex aberration-free grating Offner imaging spectrometer shown in FIG1 as an example, the purpose of system reconstruction is to obtain a target grating line distribution model that satisfies the current structure, that is, the line function coefficients n 0 , n 1 , n 2 and n 3 in formula (7),
n=n0+n1z+n2z2+n3z3 (7)n=n 0 +n 1 z +n 2 z 2 +n 3 z 3 (7)
公式(7)是以四阶多项式形式获得目标光栅刻线密度分布模型;具体设计过程包括以下步骤:Formula (7) is a fourth-order polynomial form to obtain the target grating line density distribution model; the specific design process includes the following steps:
(0)假定系统中各个元件(如图1所示,包括入射狭缝,1、3反射镜,凸面光栅和相面)的位置的姿态均已确定,同时各个光学元件的面型也已经确定;(0) Assume that the positions and postures of all components in the system (including the incident slit, 1 and 3 reflectors, convex grating and phase plane as shown in FIG1 ) have been determined, and the surface shapes of all optical components have also been determined;
(1)在入射狭缝上随机取样若干个特征点,并赋值随机的波长和光栅面上的特征点位置;根据理想物象关系确定这些特征点在像面上对应的像点坐标;(1) Randomly sample a number of feature points on the incident slit and assign random wavelengths and feature point positions on the grating surface; determine the image point coordinates corresponding to these feature points on the image plane based on the ideal object-image relationship;
(2)针对步骤(1)中采样光线在光源面、光栅面和像面的坐标点,按照反射定律求解这些采样光线在光栅面采样点上的入射方向和衍射方向和光程,同时求解具有相同视场、波长但是经过系统口径光阑中心光线的光程;按照衍射方程计算对应光栅面上采样点的刻线函数和刻线密度分布;(2) for the coordinate points of the sampling light rays on the light source plane, grating plane and image plane in step (1), the incident direction, diffraction direction and optical path of these sampling light rays on the sampling points on the grating plane are solved according to the law of reflection, and the optical path of the light rays having the same field of view and wavelength but passing through the center of the system aperture stop is solved at the same time; the ruling function and ruling density distribution of the sampling points on the grating plane are calculated according to the diffraction equation;
(3)使用最小二乘法对步骤(2)中获得的刻线函数和刻线密度数据进行拟合,拟合目标是获得目标光栅刻线分布表述;(3) fitting the line function and line density data obtained in step (2) using the least squares method, wherein the fitting goal is to obtain a distribution representation of the target grating line;
(4)使用遗传算法对上述过程进行优化求解,求解目标是使刻线数据的拟合残余误差有最小的峰谷值或均方根;同时在遗传算法的迭代过程中随即更改特征光线的采样,即每一轮迭代使用不同的光源面坐标、光栅面坐标和对应波长,以保证设计结果在连续视场和连续波段内具有均衡的分辨能力。(4) The above process is optimized and solved using a genetic algorithm. The solution goal is to minimize the peak-to-valley value or root mean square of the fitting residual error of the grating data. At the same time, the sampling of the characteristic light is randomly changed during the iteration of the genetic algorithm. That is, each round of iteration uses different light source plane coordinates, grating plane coordinates and corresponding wavelengths to ensure that the design result has balanced resolution in a continuous field of view and continuous band.
第二种具体实施方式中,所述系统重建为记录结构重建,所述系统重建包括步骤:In a second specific implementation manner, the system reconstruction is a record structure reconstruction, and the system reconstruction includes the steps of:
S321、获得的采样光线在光源面、光栅面和像面的坐标点,求解所述采样光线在光栅面采样点上的入射方向、衍射方向以及光程;同时,求解具有相同视场、相同波长,并经过系统口径光阑中心光线的光程;按照衍射方程计算对应光栅面采样点的刻线函数和刻线密度分布;S321, obtain the coordinate points of the sampling light on the light source plane, grating plane and image plane, solve the incident direction, diffraction direction and optical path of the sampling light on the grating plane sampling point; at the same time, solve the optical path of the light with the same field of view and the same wavelength and passing through the center of the system aperture stop; calculate the ruling function and ruling density distribution of the corresponding grating plane sampling point according to the diffraction equation;
S322、在已知单个记录光源点位置的前提下,计算从已知曝光臂到光栅面采样特征点的光线光程和方向信息;S322, on the premise that the position of a single recorded light source point is known, calculating the optical path and direction information of the light from the known exposure arm to the sampling feature point on the grating surface;
S323、求解光栅面上每个采样特征点在未知记录臂中对应的相对光程差和光线入射方向,统计分析对应的记录臂长,并由中心处等效光栅密度联立已知记录臂的角度和记录波长,确定角度参量;S323, solving the relative optical path difference and light incident direction corresponding to each sampling feature point on the grating surface in the unknown recording arm, statistically analyzing the corresponding recording arm length, and combining the known recording arm angle and recording wavelength with the equivalent grating density at the center to determine the angle parameter;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使光栅面上每个采样特征点在S323中求解得的对应位置的记录光源点分布误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: using a genetic algorithm to minimize the peak-to-valley value or root mean square value of the recorded light source point distribution error at the corresponding position of each sampling feature point on the grating surface solved in S323; at the same time, randomly changing the sampling of the characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
具体如图6所示,为本发明具体实施方式中第二种系统重建方式的过程示意图,以图2所示的Ⅲ型凹面光栅平场光谱仪为例,具体步骤包括:Specifically, as shown in FIG6 , it is a schematic diagram of the process of the second system reconstruction method in a specific implementation mode of the present invention. Taking the type III concave grating flat-field spectrometer shown in FIG2 as an example, the specific steps include:
(0)假定光谱仪结构(如图2所示,包括入射狭缝,光栅和像面的位置以及光栅基底曲率半径)已知,仍按照随机采样的方法确定一系列的狭缝上的特征点、以及对应的光栅采样点和波长,并按照理想物象关系确定每个狭缝采样点对应在像面上的像点;同时假定光栅记录结构中任一个光源位置(假定为C)已知;(0) Assuming that the spectrometer structure (as shown in FIG. 2 , including the positions of the incident slit, grating and image plane, and the curvature radius of the grating base) is known, a series of characteristic points on the slit, as well as the corresponding grating sampling points and wavelengths are determined according to the random sampling method, and the image point corresponding to each slit sampling point on the image plane is determined according to the ideal object-image relationship; at the same time, assuming that the position of any light source in the grating recording structure (assuming it is C) is known;
(1)按照针对刻线分布的求解中相同的逻辑,获得光栅面上采样点的刻线函数值和刻线函数密度值;(1) Obtain the scoreline function value and scoreline function density value of the sampling point on the grating surface according to the same logic as that in solving the scoreline distribution;
(2)在已知单个记录光源点位置的前提下,计算从已知曝光臂到光栅面采样特征点的光线光程和方向信息;(2) Under the premise of knowing the position of a single recorded light source point, calculate the optical path and direction information of the light from the known exposure arm to the sampling feature point on the grating surface;
(3)按照前面提到的公式(5)和公式(6)求解光栅面上每个采样特征点在未知记录臂中对应的相对光程差和光线入射方向,统计分析对应的记录臂长,角度参量可由中心处等效光栅密度联立已知记录臂角度和记录波长确定:(3) According to the aforementioned formulas (5) and (6), the relative optical path difference and light incident direction corresponding to each sampling feature point on the grating surface in the unknown recording arm are solved, and the corresponding recording arm length is statistically analyzed. The angle parameter can be determined by the equivalent grating density at the center combined with the known recording arm angle and recording wavelength:
(4)使用遗传算法对上述过程中假定的全部已知参量进行优化设计,优化的目标是使每一个光栅采样点在步骤(3)中解得的对应位置记录光源点分布误差的峰谷值或均方根值最小;同时在遗传算法的迭代过程中随即更改特征光线的采样,即每一轮迭代使用不同的光源面坐标、光栅面坐标和对应波长,以保证设计结果在连续视场和连续波段内具有均衡的分辨能力。(4) A genetic algorithm is used to optimize the design of all known parameters assumed in the above process. The optimization goal is to minimize the peak-to-valley value or root mean square value of the light source point distribution error recorded at the corresponding position of each grating sampling point solved in step (3); at the same time, the sampling of characteristic light rays is randomly changed during the iteration process of the genetic algorithm, that is, each round of iteration uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths to ensure that the design result has balanced resolution within a continuous field of view and a continuous band.
第三种具体实施方式中,所述系统重建为光栅面型重建,所述系统重建包括步骤:In a third specific implementation manner, the system reconstruction is grating surface reconstruction, and the system reconstruction comprises the steps of:
S331、按照随机采样的方法,确定一系列的狭缝上的特征点、对应的口径采样点以及波长;根据理想物象关系,确定每个狭缝采样特征点在像面上对应的像点坐标;S331, determining a series of characteristic points on the slit, corresponding aperture sampling points and wavelengths according to a random sampling method; determining the image point coordinates corresponding to each slit sampling characteristic point on the image plane according to an ideal object-image relationship;
S332、求解与S331中具有相同视场、相同波长,并经过未知光栅中心点的参考光线的光程信息;求解S331中采样光线与未知光栅面的交点,使所述采样光线的光程与对应的参考光线的光程一致;S332, solving the optical path information of the reference light having the same field of view and the same wavelength as that in S331 and passing through the center point of the unknown grating; solving the intersection point of the sampling light and the unknown grating surface in S331, so that the optical path of the sampling light is consistent with the optical path of the corresponding reference light;
S333、按照衍射方程针对S331中获得的采样特征点,求解对应的法线方向,并使用最小二乘法拟合获得面型;S333, solving the corresponding normal direction for the sampling feature points obtained in S331 according to the diffraction equation, and obtaining the surface shape by fitting using the least square method;
所述S4中,使用遗传算法进行优化迭代设计包括:通过遗传算法,使面型拟合残余误差的峰谷值或均方根值最小;同时,在遗传算法的迭代过程中随即更改特征光线的采样,每一轮迭代过程均使用不同的光源面坐标、光栅面坐标和对应波长。In S4, the use of a genetic algorithm for iterative optimization design includes: minimizing the peak-to-valley value or the root mean square value of the surface fitting residual error through the genetic algorithm; at the same time, randomly changing the sampling of characteristic light during the iterative process of the genetic algorithm, and each round of iterative process uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths.
具体如图7所示,为本发明具体实施方式中第三种系统重建方式的过程示意图,以图3所示的自由曲面光栅光谱仪为例,求解自由曲面光栅的基底面型,虽然第一种系统重建方式和第二种系统重建方式在针对这一类光栅光谱仪设计中仍能使用,但是将求解目标从刻线分布转换为光栅面型能够有效降低设计难度;具体步骤为:Specifically, as shown in FIG7 , it is a schematic diagram of the process of the third system reconstruction method in a specific implementation mode of the present invention. Taking the free-form surface grating spectrometer shown in FIG3 as an example, the base surface type of the free-form surface grating is solved. Although the first system reconstruction method and the second system reconstruction method can still be used in the design of this type of grating spectrometer, converting the solution target from the ruled line distribution to the grating surface type can effectively reduce the design difficulty; the specific steps are:
(0)假定整个光谱仪系统中除了目标光栅面型外其他参量均已知,包括各个元件的位置、其他原件的面型以及光栅刻线分布模型等;按照随机采样的方法确定一系列的狭缝上的特征点、以及对应的口径采样点和波长,并按照理想物象关系确定每个狭缝采样点对应在像面上的像点;(0) Assume that all parameters of the entire spectrometer system are known except for the target grating surface shape, including the position of each component, the surface shape of other components, and the grating line distribution model; determine a series of characteristic points on the slits, as well as the corresponding aperture sampling points and wavelengths according to the random sampling method, and determine the image point corresponding to each slit sampling point on the image plane according to the ideal object-image relationship;
(1)求解与(0)步骤中具有相同视场和波长采样但是经过未知光栅中心点的参考光线光程信息;并以此为参考求解(0)步骤中采样特征光线与未知光栅面的交点,使这些采样光线的光程与对应的参考光线的光程一致;(1) Solve the optical path information of the reference light beam having the same field of view and wavelength sampling as in step (0) but passing through the center point of the unknown grating; and use this as a reference to solve the intersection point of the sampling characteristic light beam in step (0) and the unknown grating surface, so that the optical path of these sampling light beams is consistent with the optical path of the corresponding reference light beam;
(2)按照衍射方程针对步骤(1)中获得的特征点求解对应的法线方向,并使用最小二乘法拟合获得面型;(2) solving the corresponding normal direction for the feature points obtained in step (1) according to the diffraction equation, and obtaining the surface shape by fitting using the least squares method;
(3)使用遗传算法对上述过程中假定已知的全部未知参量进行优化设计,优化目标是使面型拟合残余误差的峰谷值或均方根值最小;同时在遗传算法的迭代过程中随即更改特征光线的采样,即每一轮迭代使用不同的光源面坐标、光栅面坐标和对应波长,以保证设计结果在连续视场和连续波段内具有均衡的分辨能力。(3) Genetic algorithms are used to optimize the design of all unknown parameters assumed to be known in the above process. The optimization goal is to minimize the peak-to-valley value or root mean square value of the surface fitting residual error. At the same time, the sampling of characteristic light rays is randomly changed during the iteration process of the genetic algorithm. That is, each round of iteration uses different light source surface coordinates, grating surface coordinates and corresponding wavelengths to ensure that the design result has balanced resolution in a continuous field of view and continuous band.
具体实施方式中,上面第一种系统重建方式和第三种系统重建方式中涉及拟合过程,任意一轮的拟合残余误差被额外拟合为如下的多项式(7)所示,具体为一个对应视场、口径和波长的多项式:In a specific implementation manner, the first system reconstruction method and the third system reconstruction method involve a fitting process, and the residual error of any round of fitting is additionally fitted as shown in the following polynomial (7), which is specifically a polynomial corresponding to the field of view, aperture and wavelength:
其中,Fweight表示用于后续最小二乘法拟合的权重函数,aijmn表示拟合系数结果,λ为波长,field为视场,xaperture和zaperture表示口径坐标;i、j、m、n均为取值非负整数的拟合幂数,且0<i+j+m+n≤3。这个多项式可以作为下一轮拟合过程的权重系数,参与所述最小二乘法拟合;这个额外的权重调整步骤能够保证本发明的整个设计结果,在完整的工作波段和工作视场内实现均衡的高分辨力。Among them, F weight represents the weight function used for the subsequent least squares fitting, a ijmn represents the fitting coefficient result, λ is the wavelength, field is the field of view, x aperture and z aperture represent the aperture coordinates; i, j, m, n are all fitting powers with non-negative integer values, and 0<i+j+m+n≤3. This polynomial can be used as the weight coefficient of the next round of fitting process and participate in the least squares fitting; this additional weight adjustment step can ensure the entire design result of the present invention and achieve balanced high resolution in the complete working band and working field of view.
在其他的实施方式中,上述提到的全息光栅记录结构可替换为在曝光臂中添加非平面反射镜的设计,在这种情况下,相应的,本发明的方法在设计中可替换为针对辅助反射镜的重建过程。In other embodiments, the above-mentioned holographic grating recording structure can be replaced by a design in which a non-planar reflector is added to the exposure arm. In this case, the method of the present invention can be replaced by a reconstruction process for an auxiliary reflector in the design.
本发明所提供的光栅光谱仪的光学设计方法,不需要构建复杂的像差展开模型,减少设计人员的人力工作;整个设计过程不存在高阶展开忽略的问题,设计结果更为精确;可针对任意类型的光谱仪均能够展开设计,设计更为普适;采用遗传算法进行全局寻优,能够搜寻到更为合适的设计结果;而且,多种不同的设计策略可被自由选择,根据设计需求的不同选择不同的设计策略能够进一步降低设计难度并减少设计时间。The optical design method of the grating spectrometer provided by the present invention does not need to construct a complex aberration expansion model, thereby reducing the manpower work of designers; the problem of ignoring high-order expansion does not exist in the entire design process, and the design result is more accurate; the design can be carried out for any type of spectrometer, and the design is more universal; the genetic algorithm is used for global optimization, and more suitable design results can be searched; moreover, a variety of different design strategies can be freely selected, and selecting different design strategies according to different design requirements can further reduce the design difficulty and reduce the design time.
相应地,根据本发明的实施例,本发明还提供了一种计算机设备、一种可读存储介质和一种计算机程序产品。Accordingly, according to an embodiment of the present invention, the present invention also provides a computer device, a readable storage medium and a computer program product.
图9为本发明实施例中提供的一种计算机设备12的结构示意图。图9示出了适于用来实现本发明实施方式的示例性计算机设备12的框图。图9显示的计算机设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG9 is a schematic diagram of the structure of a computer device 12 provided in an embodiment of the present invention. FIG9 shows a block diagram of an exemplary computer device 12 suitable for implementing an embodiment of the present invention. The computer device 12 shown in FIG9 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present invention.
如图9所示,计算机设备12以通用计算设备的形式表现。计算机设备12旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。As shown in Figure 9, computer equipment 12 is in the form of a general-purpose computing device. Computer equipment 12 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and/or required herein.
计算机设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16 , a system memory 28 , and a bus 18 that connects various system components including system memory 28 and processing unit 16 .
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图9未显示,通常称为“硬盘驱动器”)。尽管图9中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM、DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 9 , commonly referred to as a “hard drive”). Although not shown in FIG. 9 , a disk drive for reading and writing to a removable non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data media interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and/or methods of the embodiments described herein.
计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input/output (I/O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and/or public network, such as the Internet) through a network adapter 20.
如图9所示,网络适配器20通过总线18与计算机设备12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。9, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that, although not shown in the figure, other hardware and/or software modules can be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的光栅光谱仪的光学设计方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the optical design method of the grating spectrometer provided in the embodiment of the present invention.
本发明实施例中还提供一种存储有计算机指令的非瞬时计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时本申请所有发明实施例提供的光栅光谱仪的光学设计方法。An embodiment of the present invention also provides a non-transitory computer-readable storage medium storing computer instructions, on which a computer program is stored, wherein when the program is executed by a processor, it is an optical design method of a grating spectrometer provided in all the inventive embodiments of the present application.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The program code included in the computer-readable medium can be transmitted with any appropriate medium, including but not limited to wireless, electric wire, optical cable, RF, etc., or any suitable combination of the above. The computer program code for performing the operation of the present invention can be written in one or more programming languages or their combinations, and the programming language includes object-oriented programming languages such as Java, Smalltalk, C++, and also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect to the Internet).
本发明实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据上述的光栅光谱仪的光学设计方法。An embodiment of the present invention further provides a computer program product, including a computer program, which implements the optical design method of the grating spectrometer described above when executed by a processor.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the disclosure of the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310686263.1A CN116661138B (en) | 2023-06-09 | 2023-06-09 | An optical design method for grating spectrometer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310686263.1A CN116661138B (en) | 2023-06-09 | 2023-06-09 | An optical design method for grating spectrometer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116661138A CN116661138A (en) | 2023-08-29 |
| CN116661138B true CN116661138B (en) | 2024-05-14 |
Family
ID=87727738
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310686263.1A Active CN116661138B (en) | 2023-06-09 | 2023-06-09 | An optical design method for grating spectrometer |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116661138B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119203858B (en) * | 2024-11-28 | 2025-01-28 | 吉林大学 | Spectrometer structure optimization method and device based on fluid model analysis and spectrometer |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1997021979A1 (en) * | 1995-12-12 | 1997-06-19 | Spectral Diagnostic Ltd. | Spectral bio-imaging methods for biological research, medical diagnostics and therapy |
| WO1999064829A1 (en) * | 1998-06-12 | 1999-12-16 | Varian, Inc. | Fast automated spectral fitting method |
| CN104297829A (en) * | 2014-09-30 | 2015-01-21 | 中国科学院长春光学精密机械与物理研究所 | Method for optimum design of planar variable-pitch grating |
| CN110631700A (en) * | 2019-08-29 | 2019-12-31 | 南京波思途智能科技股份有限公司 | Spectrometer light path design method |
| CN112666698A (en) * | 2021-01-27 | 2021-04-16 | 之江实验室 | Dispersive super-surface-based fiber bundle multi-azimuth three-dimensional confocal imaging device and method |
| CN114440772A (en) * | 2022-01-28 | 2022-05-06 | 合肥工业大学 | Blazed transmission grating spectrometer |
| CN114877995A (en) * | 2021-02-05 | 2022-08-09 | 清华大学 | Design method of free-form surface concave grating imaging spectrometer |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9612155B2 (en) * | 2004-03-20 | 2017-04-04 | Electronic Photonic Ic Inc. (Epic Inc.) | Curved grating spectrometer and wavelength multiplexer or demultiplexer with very high wavelength resolution |
-
2023
- 2023-06-09 CN CN202310686263.1A patent/CN116661138B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1997021979A1 (en) * | 1995-12-12 | 1997-06-19 | Spectral Diagnostic Ltd. | Spectral bio-imaging methods for biological research, medical diagnostics and therapy |
| WO1999064829A1 (en) * | 1998-06-12 | 1999-12-16 | Varian, Inc. | Fast automated spectral fitting method |
| CN104297829A (en) * | 2014-09-30 | 2015-01-21 | 中国科学院长春光学精密机械与物理研究所 | Method for optimum design of planar variable-pitch grating |
| CN110631700A (en) * | 2019-08-29 | 2019-12-31 | 南京波思途智能科技股份有限公司 | Spectrometer light path design method |
| CN112666698A (en) * | 2021-01-27 | 2021-04-16 | 之江实验室 | Dispersive super-surface-based fiber bundle multi-azimuth three-dimensional confocal imaging device and method |
| CN114877995A (en) * | 2021-02-05 | 2022-08-09 | 清华大学 | Design method of free-form surface concave grating imaging spectrometer |
| CN114440772A (en) * | 2022-01-28 | 2022-05-06 | 合肥工业大学 | Blazed transmission grating spectrometer |
Non-Patent Citations (3)
| Title |
|---|
| Computed-tomography imaging spectrometer: experimental calibration and reconstruction results;Michael Descour and Eustace Dereniak;《APPLIED OPTICS》;19950801;第34卷(第22期);全文 * |
| 双光栅平场全息凹面光栅光谱仪的优化设计;孔鹏, 巴音贺希格, 李文昊;《光学学报》;20110228;第31卷(第2期);全文 * |
| 变间距凸面光栅成像光谱系统的消像散设计;赵美红, 王新宇, 姜岩秀;《光学精密工程》;20201031;第28卷(第10期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116661138A (en) | 2023-08-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109407310B (en) | Design method of multi-pass tank | |
| CN116661138B (en) | An optical design method for grating spectrometer | |
| WO2006129791A1 (en) | Image processing system, 3-dimensional shape estimation system, object position posture estimation system, and image generation system | |
| CN111863141B (en) | Molecular force field multi-target fitting algorithm library system and workflow method | |
| CN119202625A (en) | Particle size distribution measurement method and system based on machine learning and light scattering | |
| Baker | Gaussian beam weak scintillation: low-order turbulence effects and applicability of the Rytov method | |
| CN116540407B (en) | Low polarization aberration three-reflector optical system design method, system, equipment and media | |
| Tang et al. | Parallel ray tracing through freeform lenses with NURBS surfaces | |
| CN116661139B (en) | A design method for free-form surface optical system | |
| CN113049534B (en) | Method and computing device for determining light spot distribution in multiple gas reflecting chambers | |
| CN217032971U (en) | Convex surface grating detection system based on CGH | |
| CN113687961B (en) | Cloud-based infrared hyperspectral radiation transmission rapid concurrency computing system and method | |
| CN118569002A (en) | Optical engine modeling method, device and equipment based on OPM pupil matching | |
| WO2023093070A1 (en) | Intelligent city network resource-oriented correlation analysis method and device | |
| CN114218100A (en) | Business model testing method, device, system, equipment, medium and program product | |
| CN119383526A (en) | Sound field optimization method, device, equipment and storage medium for multi-channel audio system | |
| CN113222767A (en) | Data processing method and device for indexing securities combination | |
| CN114972695B (en) | Point cloud generation method and device, electronic equipment and storage medium | |
| KR20220048393A (en) | Apparatus and method for calculating system usage charge for peer to peer energy trading | |
| CN118838053A (en) | Distortion control method for total reflection optical system | |
| CN118483821A (en) | Optical simulation method, device and equipment for refraction and diffraction optical system | |
| CN115901181B (en) | A convex grating detection system and design method based on CGH | |
| Bocchieri et al. | PAOS: a fast, modern, and reliable Python package for physical optics studies | |
| CN116907806A (en) | Method for calculating specular wave aberration and laser system | |
| Deng et al. | Three-mirror free-form off-axis antenna design of beam shaping on a circular substrate |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |