ZEMAX宏学习2

zemax 专栏收录该内容
5 篇文章 0 订阅

学习2:利用宏设置评价函数

REM ex30501
REM this program shows how to set default merit function
REM assume the lens is defined in ex30401

tp = 0 #type is RMS
data = 1 #spot radius
ref = 0 #centroid reference
method = 1 #gaussian quadrature
ring = 3
arm = 6
grid = 4
delornot = 0 #not delete vignetted rays
ax=1 #assume axial symmetry
lat = 1 #ignore lateral color
st = 1 #put the default merit function start at the beginning
ow = 1 #no xweight, overall weight = 1

DEFAULTMERIT tp,data,ref,method,ring,arm,grid,delornot,ax,lat,st,ow

PRINT
PRINT "The final merit function value is ", MFCN()

  • 0
    点赞
  • 1
    评论
  • 1
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值