從數(shù)據(jù)文件里添加雙折射材料
該文檔描述一個(gè)FRED腳本程序,它通過(guò)一個(gè)數(shù)據(jù)文件往FRED程序文件里添加雙折射材料。不像抽樣材料,目前在GUI環(huán)境下沒(méi)有通過(guò)文件添加雙折射材料的選項(xiàng)。該腳本程序本身是用基本的對(duì)話框功能使用戶快速瀏覽材料名、文件位置和光軸。 rV0X*[]J> 腳本代碼為: (q]_&%yW 1. Prompt user to select file path .*(xkJI3 2. Prompt user to enter material name zY=eeG+4s 3. Open the file, read data, and add sampled birefringent material G)G
257K"~ 4. Prompt user to enter the crystal axis vector !\6<kQg# 文本文件格式很簡(jiǎn)單, 只有三列數(shù)據(jù),可很容易地進(jìn)行修改,以支持額外的gyrotropic系數(shù),這些值在腳本程序里初始設(shè)為0. _P{f+HxU
該腳本程序可點(diǎn)擊鏈接下載: Ump$N# http://fred-kb.photonengr.com/files/2010/12/readBirefringentData.frs ~stJO])
|