查看: 2735|回复: 0

[其它] Tip #7: Visualizing Extreme Rays in ASAP

[复制链接]
发表于 2013-6-17 16:46:44 | 显示全部楼层 |阅读模式
Using the AXIS and EXTREMES POSITION commands in ASAP®, one can easily find the minimum and maximum radial coordinates of rays on a given surface. This is particularly useful when you have a non-rotationally symmetric distribution of rays on a surface and would like to find the radial position of the outer or innermost rays.

For example, if the surface of interest is in the XY plane, issue an AXIS Z command, followed by STATS POSITION and EXTREMES POSITION to determine the radial distance of the extreme rays from the Z axis. The AXIS Z command changes the coordinate system in which the STATS POSTION data is reported to cylindrical coordinates while the EXTREMES POSITION command reports the location of the extreme rays. If your script continues on, don't forget to reset your coordinate system to the global Cartesian coordinate system with AXIS OFF.

Example script:

UNITS MM

GRID ELLIPSE Z 0 -2 2 -4 4 101 101
SOURCE DIRECTION 0 0 1
SHIFT 20 30 0
RETURN

PIXELS 51
WINDOW Y -50 50 X -50 50

SPOTS POSITION

STATS POSITION

AXIS Z

STATS POSTION

EXTREMES POSITION

$GRAB 'Ray with MINIMUM R component' 1 1 RMIN
$GRAB 'Ray with MAXIMUM R component' 1 1 RMAX

$REG RMIN RMAX

AXIS OFF

该贴已经同步到 asdoptics的微博
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:admin@discuz.vip

Powered by Discuz! X5.0 Licensed © 2001-2026 Discuz! Team.|鄂ICP备17021725号-1

在本版发帖
关注公众号
QQ客服返回顶部