📄 testgen.sh
字号:
#!/bin/csh## script to generate test problems --- run with testrun.sh# - problems are meant to exercised interface, not engine## set up parametersset exam = .set exe = ../binset dest = .set cubegen = ${exe}/cubegenset pyragen = ${exe}/pyragenset busgen = ${exe}/busgenset top_perm = 3set bot_perm = 1## generate tetrahedron (single conductor in its own file)# translate in list file by (0 3 0)${pyragen} -naPYRAMID > ${dest}/pyramid.qui## generate 1x1 bus crossing (single file with multiple conductors)# no translation in list file${busgen} -c1 -xo2 -yo1 > ${dest}/bus.qui## generate L-shape (single object built from 3 separate files)${cubegen} -naLSHAPE -pfl -pfr > ${dest}/lcntr.qui# translate in list file by (1 0 0)${cubegen} -naLSHAPE -pbr > ${dest}/lleft.qui# translate in list file by (0 1 0)${cubegen} -naLSHAPE -pbl > ${dest}/lright.qui## generate top an bottom ground planes (one file, called 3x in list file)# translate by (-1 -1 -1), (-1 -1 5) and (-1 -1 4)${cubegen} -naGND -p -t -xh7 -yh6 -e0 -n10 > ${dest}/plane.qui## generate dielectric interface skirt for high permittivities# translate by (-1 -1 4)${cubegen} -t -b -xh7 -yh6 -e0 -n2 > ${dest}/skirt.qui## generate list file echo "*" > ${dest}/test.lstecho "* test geometry to show how interface works" >> ${dest}/test.lstecho "* - a pyramid, an L-shape and a 1x1 bus xing btwn gnd planes" \>> ${dest}/test.lstecho "* - two dielectric slabs between ground planes" >> ${dest}/test.lstecho "*" >> ${dest}/test.lstecho "** pyramid (single conductor in its own file)" >> ${dest}/test.lstecho "C ${dest}/pyramid.qui ${bot_perm} 0 3 0" >> ${dest}/test.lstecho "** 1x1 bus crossing (single file with multiple conductors)" \>> ${dest}/test.lstecho "G BUS" >> ${dest}/test.lstecho "C ${dest}/bus.qui ${bot_perm} 0 0 0" >> ${dest}/test.lstecho "** L-shaped conductor (single object built from 3 separate files)" \>> ${dest}/test.lstecho "C ${dest}/lcntr.qui ${bot_perm} 0 0 0 +" >> ${dest}/test.lstecho "C ${dest}/lleft.qui ${bot_perm} 1 0 0 +" >> ${dest}/test.lstecho "C ${dest}/lright.qui ${bot_perm} 0 1 0" >> ${dest}/test.lstecho "** ground planes (use of same file repeatedly)" >> ${dest}/test.lstecho "C ${dest}/plane.qui ${bot_perm} -1 -1 -1 +" >> ${dest}/test.lstecho "C ${dest}/plane.qui ${top_perm} -1 -1 5" >> ${dest}/test.lst#echo "C ${dest}/plane.qui ${bot_perm} -1 -1 5" >> ${dest}/test.lstecho "** dielectric interface (same file as ground planes)" \>> ${dest}/test.lstecho "D ${dest}/plane.qui ${top_perm} ${bot_perm} -1 -1 4 0 0 5" \>> ${dest}/test.lstecho "D ${dest}/skirt.qui ${bot_perm} ${top_perm} -1 -1 4 0 0 4.5 -" \>> ${dest}/test.lst
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -