ZEMAX宏学习4

本文档介绍了如何在ZEMAX中通过宏设置求解参数,例如根据F数调整曲率,并展示了读取求解参数的方法。同时,讲解了如何编写和使用ZPL宏进行曲率计算,并给出了调用外部ZPL宏文件的示例。
摘要由CSDN通过智能技术生成

学习4: 通过宏使用求解器:通过F数确定参数以及自定义求解器
REM ex30601
REM This program shows how to set solve parameters
REM assume the len system is defined in ex30401

surf = 4
code$ = “CG” #solve type is “Curvature:F/#”
arg1 = 8 #F/# = 8

SOLVETYPE surf, CODE$, arg1 #only 1 argument is needed
UPDATE

#########
REM ex30602
REM this program shows how to read solve parameters
REM assume the solve type is defined in ex30601

surf = 4
code = 0 #solve type is “Curvature”
param = 1 #want to know the first argument, F/#

returnValue = SOLV(surf, code, param)

PRINT
PRINT "The solve parameter is ", returnValue

REM ex30603M
REM this program shows an example of ZPL macro
REM it will be called by program “ex30603.zpl”

nVacuum = 1
nAir = 1.0008

surf = 4
culvatureVacuum

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值