Welcome to the Optical Ray-trace TOOLBOX (RT TB), version 1.0 beta, for MATLAB (Trademark of the MathWorks, Inc.)
from the University of Applied Sciences Heilbronn, November 2002.
Please direct any questions and comments to the Author:
Prof. Dr.-Ing. Peter Ott
Mechatronics Department
University of Applied Sciences Heilbronn
Max-Planck-Str. 39
D-74081 Heilbronn
Germany
ott@fh-heilbronn.de
For further information please visit my web site:
http://www.mm.fh-heilbronn.de/ott/
This Optical Ray-trace Toolbox (RT TB) is intended to aid teaching on
geometrical optics, ray-tracing and lens design.
The RT TB is free to use. It is aimed to give the 'look and feel'
of professional software with all possibilities to alter and add
graphical output, algorithms and code
All functions of the RT TB are documented in the same way as MATLAB functions, i.e. in the header of the files.
Call 'help FUNCTION_NAME' in the command window to show the documentation.
All functions are listed at the end of this file (ReadMe.txt).
In short, the capabilities of the RT TB are:
- to easily add or modify code!
- to input surfaces of the following kind: Sphere, Asphere, Cylinder, Mirror, Ideal Lens
- to do full paraxial analysis, including basic data (efl, bfl, ...), marginal and principal rays, pupils, ...
- to perform exact sequential ray-trace on the above mentioned surfaces
- to plot the layout of an optical system together with a bunch of rays
- to plot spot diagrams, tangential and sagittal plots, curvature, distortion, lateral color
- to calculate and display the wavefront in the exit pupil and the point spread function (PSF)
- to optimize an optical system by the aid of the MATLAB OPTIMIZATION TOOLBOX
- to adapt for special use, e.g. to simulate the sensor signal of an astigmatic-optical sensor for distance measurement
Not yet realized:
- graphical user interface to input an optical system (work in progress...)
- decentered and tilted surfaces (work in progress...)
- third order aberration contribution of each surface
- error handling
- ...
To explore the capabilities and the handling of the software, please take some time.
Software is as least as complicated as the subject it covers...
Instead of a user manual, instructive and documented examples are included.
Perform the following steps:
- You must have installed MATLAB version 5.3 or later
(for use of the optimization capabilities, the MATLAB OPTIMZATION TOOLBOX must be installed)
- Please extract all files from RTTB.ZIP, downloaded from http://www.mm.fh-heilbronn.de/ott/
- Add all paths of the RT TB files to your MATLAB path list
- Run the following examples which are located in the home directory of the RT TB, one by one and in the below
mentionded order. Have a carefull look on the code and on the functions called in these examples.
- Play around with the examples...
Examples to explore the RT TB:
(just execute the name in capital letters in the command window)
%TEST_PAR test paraxial functions and draw the system togehter with the principal and marginal ray
%TEST_PLOT_LAYOUT plot the layout of a of simple spherical system with the object at finite distance
%TEST_PLOT_LAYOUT_INF plot the layout of a of simple spherical system with object point at infinity
%TEST_SPOT_DIAG generate a single spot diagramm of simple spherical system with object point at infinity
%TEST_IDEAL plots the layout of an optical system consisting of ordinary spherical surfaces and an ideal lens
%TEST_CYL_SPOT_DIAG generate a single spot diagram of a simple sphero-cylindrical system with object point at infinity
%TEST_PLOT_DIAGRAMMS show spot and plot diagrams and the layout of a triplet for an object at finite distance
%TEST_PLOT_DIAGRAMMS_INF show spot and plot diagrams and a layout of a triplet
%TEST_PLOT_DIAGRAMMS_ASPH_INF show spot and plot diagrams and the layout of a triplet with an aspheric surface
%TEST_PSF show the wavefront in the exit pupil and the point spread function of a triplet for an off-axis object point at infinity;
% The data of the entrance pupil is calculated from the data of the stop.
% The wavefront is calculated in the elliptical shape of the exit pupil for off-axis object points.
%TEST_OPT_LANDSCAPE test the optimization of a landscape lens (a simple lens with small stop used in the field);
% the initial system is shown together with the spot and plot diagrams and the system after optimization.
% The optimization will take some time (~1 min on a Pentium)...
% As variable parameters for optimization the two curvatures of the lens, the thickness of the lens, the location
% of the detector plane and the location of the entrance pupil are used.
% The optimization function used here is FMINCON from the MATLAB OPTIMIZATION TOOLBOX.
% The merit function is the average rms-spot-size on-axis, zone and full field for three wavelengths.
%TEST_OPT_LANDSCAPE_PLOT test the optimization of a landscape lens while plotting the actual status of the optimization;
% the initial system is shown together with the spot and plot diagrams.
% The opimization process is monitored in another window...
% The result afer optimzation is also shown.
% The optimization will take some time (~1 min on a Pentium)...
% As variable parameters for optimization the two curvatures of the lens, the thickness of the lens, the location
% of the detector plane and the location of the entrance pupil are used.
% The optimization function used here is FMINCON from the MATLAB OPTIMIZATION TOOLBOX.
% The merit function is the average rms-spot-size on-axis, zone and full field for three wavelengths.
% A bunch of paramters for the merit function is used, see below.
%TEST_QUAD_DIAG shows an astigmatic sensor with 4-element detector for distance measurement, e.g. in optical disk drives.
% For details see http://www.mm.fh-heilbronn.de/ott/ and download the presentation given at the DGaO 2001
% The layout of the system is shown, containing an ideal lens, a mirror and a cylindrical surface
% The sensor signal is caluculated for different object locations based on exact ray trace together with approximative first order layout.
% The calculation of the sensor signal takes some time (~ 1 min on a PENTIUM)...
% The accuracy of the sensor signal calculation can be increased if more rays are traced, of course.
% The beamsplitter, which is necessary in real world, is ommitted here in the simulation.
Your input is very welcome!
Peter Ott
Heilbronn, 5th of June 2001
Descirbtion of the structure OPT_SYS, which defines an optical system (some fields are not needed in all functions)
% OPT_SYS.N_SURF (number of optical surfaces including the detector plane)
% OPT_SYS.C (OPT_SYS.N_SURF-by-1 element vector of the curvatures of the surfaces including the detector plane)
% OPT_SYS.D (OPT_SYS.N_SURF-by-1 element vector of the distances between the surfaces;
% the first distance OPT_SYS.D(1) is the distance from a starting surface
% to the first refracting surface, which is not relevant in this function
% OPT_SYS.N (OPT_SYS.N_SURF-by-N_C element matrix of the refraction indices of the media, where N_C is the
% number of wavelength)
% OPT_SYS.H (OPT_SYS.N_SURF-by-1 element vector of the heights of the surfaces, i.e. semi-diameter)
% OPT_SYS.H_EP (the radius of the entrance pupil)
% OPT_SYS.D_EP (the distance of the entrance pupil from the starting surface
% OPT_SYS.A (OPT_SYS.N_SURF-by-? element matrix specifing the typ of surface and additional surface parameters
% OPT_SYS.A(i,1) = 0 specifies the i-th surface to be of spherical typ
% OPT_SYS.A(i,1) = 1 specifies the i-th surface to be of aspherical typ
% OPT_SYS.A(i,2) specifies in this case the conical constant
% OPT_SYS.A(i,3:N_ASPH) specify in this case the higher order terms (x^2+y^2)^(2:N_ASPH-1)
% OPT_SYS.A(i,1) = 2 specifies the i-th surface to be of sphero-cylindrical typ
%
没有合适的资源?快使用搜索试试~ 我知道了~
matlab-光学组件工具包-可以仿真spot,几何像差,如慧差,球差,mtf
共250个文件
m:173个
htm:25个
c:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 15 下载量 197 浏览量
2022-06-25
23:43:46
上传
评论 2
收藏 1.1MB ZIP 举报
温馨提示
matlab_光学组件工具包_可以仿真spot,几何像差,如慧差,球差,mtf
资源推荐
资源详情
资源评论
收起资源包目录
matlab-光学组件工具包-可以仿真spot,几何像差,如慧差,球差,mtf (250个子文件)
ComponentUpdate.c 62KB
radarFDTD.c 56KB
ToyFDTD1.c 32KB
ReadConfig.c 23KB
ComputeBoundarySigma.c 15KB
Output.c 12KB
MyAlloc.c 4KB
Order.c 3KB
units.c 3KB
PMLFunctions.c 3KB
Whirl.c 1KB
sim.cfg 2KB
sim.cfg 2KB
changelog 4KB
chengGbry.cmap 5KB
COPYRIGHT 18KB
bcwdef.csm 67KB
pic_00000.dat 23KB
pic_00020.dat 23KB
output.dat 9KB
README file for ToyFDTD1 v1.doc 74KB
radarFDTD.exe 132KB
ToyFDTD1.exe 61KB
opt.exmpl 788B
lens.exmpl 174B
ToyFDTD1.f90 34KB
EOP_B.GIF 4KB
EAP3_B.GIF 3KB
ZAP_B.GIF 3KB
EA12_B.GIF 2KB
SLD_B.GIF 2KB
OPM_B.GIF 2KB
CMP_B.GIF 2KB
RST_B.GIF 1KB
opt_plotoptics.htm 7KB
opt_refraction.htm 6KB
opt_trace.htm 6KB
opt_flens.htm 6KB
opt_lens.htm 6KB
opt_absorption.htm 6KB
opt_prism.htm 5KB
opt_intersection.htm 5KB
opt_grid.htm 4KB
opt_refrindx.htm 4KB
opt_build.htm 4KB
opt_slit.htm 4KB
opt_screen.htm 4KB
opt_aperture.htm 4KB
opt_elem.htm 3KB
opt_exempel.htm 3KB
Contents.htm 3KB
opt_rot.htm 3KB
opt_ray.htm 2KB
index1.htm 2KB
opt_f2r.htm 2KB
opt_findstr.htm 2KB
index.htm 478B
title.htm 398B
details.htm 344B
radarFDTD.html 16KB
opt_tool_pv.jpg 59KB
ToyFDTD.m 28KB
trace_ray_mirror.m 13KB
FOPTIC.M 13KB
trace_ray.m 10KB
plot_surf.m 10KB
plot_diagramms_inf.m 8KB
plot_diagramms.m 8KB
OPD_AP_wave_inf.m 7KB
init_fmin.m 7KB
diag_plot_ast_inf.m 6KB
find_obj_xy_for_im_xy.m 6KB
test_opt_landscape_plot.m 6KB
par_trace_opt_sys.m 5KB
find_AP_elip_inf.m 5KB
diag_plot_lc_inf.m 5KB
plot_layout_inf.m 5KB
test_quad_diag.m 5KB
find_EP_elip_inf.m 5KB
spot_size_radau_inf.m 5KB
plot_layout.m 5KB
opt_plotoptics.m 5KB
efl_opt_sys.m 5KB
diag_plot_dist_inf.m 5KB
plot_spot_inf_single.m 5KB
diag_plot_ast.m 4KB
test_opt_landscape.m 4KB
spot_size_radau_color_inf.m 4KB
diag_plot_x_inf.m 4KB
diag_plot_y_inf.m 4KB
test_psf.m 4KB
diag_plot_dist.m 4KB
plot_spot_single.m 4KB
test_par.m 4KB
opt_refraction.m 4KB
diag_plot_lc.m 4KB
aber3_data_opt_sys_inf.m 3KB
par_data_opt_sys_inf.m 3KB
image_distance_opt_sys.m 3KB
opt_absorption.m 3KB
共 250 条
- 1
- 2
- 3
wouderw
- 粉丝: 268
- 资源: 2960
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页