📄 connector3.sh
字号:
#!/bin/csh -f## shell script for generating a connector problem# usage: connector3.sh <plastic_permittivity> <passed_directly># all args must be given always (interface does no error checking)# use passed directly arg as "-d" to turn off all discretization (for plots)#set cubegen = "../bin/cubegen -e0"set ex = $1$2set offset = "0.0 0.0 0.0"set op = $2#### build the pins echo "* 9 pin connector, plastic permittivity = $1, options: ${op}" >connector3${ex}.lstpin 13.0 13.0 0.0 $1 3 $2pin 0.0 13.0 0.0 $1 3 $2pin 6.5 13.0 0.0 $1 3 $2pin 0.0 6.5 0.0 $1 3 $2pin 6.5 6.5 0.0 $1 3 $2pin 13.0 6.5 0.0 $1 3 $2pin 0.0 0.0 0.0 $1 3 $2pin 6.5 0.0 0.0 $1 3 $2pin 13.0 0.0 0.0 $1 3 $2#### build the sides${cubegen} $3 -xo-7.8 -yo-2.6 -zo5.2 -xh5.2 -yh19.5 -zh18.8 -b ${op} -n4 > side_l3${ex}.qui${cubegen} $3 -xo16.9 -yo-2.6 -zo5.2 -xh5.2 -yh19.5 -zh18.8 -b ${op} -n4 > side_r3${ex}.qui${cubegen} $3 -xo-7.8 -yo-2.6 -xh5.2 -yh19.5 -zh5.2 -t -pfl ${op} -n4 > corner_l3${ex}.qui${cubegen} $3 -xo16.9 -yo-2.6 -xh5.2 -yh19.5 -zh5.2 -t -pbr ${op} -n4 > corner_r3${ex}.qui${cubegen} $3 -xo-2.6 -yo-2.6 -xh19.5 -yh19.5 -zh5.2 -t -b -pfl -pbr ${op} -n4 > back3${ex}.qui#### add sides, side caps and back caps to .lst fileecho "* body3${ex}.lst" > body3${ex}.lstecho "D side_l3${ex}.qui 1.0 $1 ${offset} -3.5 0.0 7.0 -" >> body3${ex}.lstecho "D side_r3${ex}.qui 1.0 $1 ${offset} 17.5 0.0 7.0 -" >> body3${ex}.lstecho "D corner_l3${ex}.qui 1.0 $1 ${offset} -3.5 0.0 2.5 -" >> body3${ex}.lstecho "D corner_r3${ex}.qui 1.0 $1 ${offset} 17.5 0.0 2.5 -" >> body3${ex}.lstecho "D back3${ex}.qui 1.0 $1 ${offset} 0.0 0.0 2.5 -" >> body3${ex}.lstcat body3${ex}.lst >> connector3${ex}.lst
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -