從數(shù)據(jù)文件里添加雙折射材料 5Jq~EB{" 該文檔描述一個
FRED腳本
程序,它通過一個數(shù)據(jù)文件往FRED程序文件里添加雙折射材料。不像抽樣材料,目前在GUI環(huán)境下沒有通過文件添加雙折射材料的選項。該腳本程序本身是用基本的對話框功能使用戶快速瀏覽材料名、文件位置和光軸。
{4Y@DQ- 腳本代碼為:
!7!xJ&/V 1. Prompt user to select file path
\]}|m<R 2. Prompt user to enter material name
{.$5:<8aC 3. Open the file, read data, and add sampled birefringent material
!s#25}9zX5 4. Prompt user to enter the crystal axis vector
tWQ_.,ld 文本文件格式很簡單, 只有三列數(shù)據(jù),可很容易地進行修改,以支持額外的gyrotropic系數(shù),這些值在腳本程序里初始設(shè)為0.
8R