wisteria |
2011-01-17 09:48 |
FRED——从数据文件里添加双折射材料
从数据文件里添加双折射材料 %K>.lh@ 该文档描述一个FRED脚本程序,它通过一个数据文件往FRED程序文件里添加双折射材料。不像抽样材料,目前在GUI环境下没有通过文件添加双折射材料的选项。该脚本程序本身是用基本的对话框功能使用户快速浏览材料名、文件位置和光轴。 5g9; +}X; 脚本代码为: I =1+h 1. Prompt user to select file path l'\pk<V 2. Prompt user to enter material name |i ZfYi&^ 3. Open the file, read data, and add sampled birefringent material O9g{+e` 4. Prompt user to enter the crystal axis vector `&-Mi[1 文本文件格式很简单, 只有三列数据,可很容易地进行修改,以支持额外的gyrotropic系数,这些值在脚本程序里初始设为0. 5!EJxP9 F$^Su<w5l
该脚本程序可点击链接下载:http://fred-kb.photonengr.com/files/2010/12/readBirefringentData.frs
|
|