学习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