查看: 2523|回复: 1

FRED案例--从数据文件里添加双折射材料

[复制链接]
发表于 2011-1-17 10:20:20 | 显示全部楼层 |阅读模式


该文档描述一个FRED脚本程序,它通过一个数据文件往FRED程序文件里添加双折射材料。不像抽样材料,目前在GUI环境下没有通过文件添加双折射材料的选项。该脚本程序本身是用基本的对话框功能使用户快速浏览材料名、文件位置和光轴。

脚本代码为:

1. Prompt user to select file path

2. Prompt user to enter material name

3. Open the file, read data, and add sampled birefringent material

4. Prompt user to enter the crystal axis vector

文本文件格式很简单, 只有三列数据,可很容易地进行修改,以支持额外的gyrotropic系数,这些值在脚本程序里初始设为0.

该脚本程序可点击链接下载:

http://fred-kb.photonengr.com/fi ... irefringentData.frs



 楼主| 发表于 2011-1-19 09:21:00 | 显示全部楼层






您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

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

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

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