從數(shù)據(jù)文件里添加雙折射材料 J+
S]Qoz 該文檔描述一個(gè)
FRED腳本
程序,它通過一個(gè)數(shù)據(jù)文件往FRED程序文件里添加雙折射材料。不像抽樣材料,目前在GUI環(huán)境下沒有通過文件添加雙折射材料的選項(xiàng)。該腳本程序本身是用基本的對(duì)話框功能使用戶快速瀏覽材料名、文件位置和光軸。
y1PyH 腳本代碼為:
g\.$4N 1. Prompt user to select file path
~ *"iLf@, 2. Prompt user to enter material name
vWeY[>oGur 3. Open the file, read data, and add sampled birefringent material
kI@<H< 4. Prompt user to enter the crystal axis vector
G&1bhi52 文本文件格式很簡(jiǎn)單, 只有三列數(shù)據(jù),可很容易地進(jìn)行修改,以支持額外的gyrotropic系數(shù),這些值在腳本程序里初始設(shè)為0.
WfG +_iP? Fc