📄 xvelconv
字号:
#! /bin/sh# build velocity profiles with unif2WIDTH=320HEIGHT=300WIDTHOFF1=0WIDTHOFF2=330WIDTHOFF3=0WIDTHOFF4=330HEIGHTOFF1=50HEIGHTOFF2=50HEIGHTOFF3=400HEIGHTOFF4=400HEIGHTOFF5=275WIDTHOFF5=860outfile=templateinprofile=inprofileoutprofile=outprofilen1=100n2=100d1=10d2=10# use unif2 to output test datafile# $outfile is an ascii file that shows the type of input unif2 requiresunif2 tfile=$outfile # create and display a velocity functionunif2 <$outfile n1=$n1 n2=$n2 > vintz.bin# display original dataWOFF=$WIDTHOFF1HOFF=$HEIGHTOFF1ximage < vintz.bin n1=$n1 n2=$n2 d1=$d1 d2=$d2 \ title="original v(z) interval" \ wbox=${WIDTH} hbox=${HEIGHT} xbox=${WOFF} ybox=${HOFF} &# now apply velconv to the velocity profile, considered now as# a v(z,x) where z is the fast dimension.dt=.004dz=10ntout=250 #must specify enough output points to see full profile# convert v(x,z) interval to v(x,t) intervalvelconv intype=vintz outtype=vintt nt=$ntout dt=$dt dz=$dz nz=$n1 nx=$n2 < vintz.bin > vintt.bin# displayWOFF=$WIDTHOFF2HOFF=$HEIGHTOFF2ximage < vintt.bin n1=$ntout n2=$n2 d1=$dt \ title="v(x,t) interval from v(z) interval" \ wbox=${WIDTH} hbox=${HEIGHT} xbox=${WOFF} ybox=${HOFF} &# make the output from the previous operation the input for the next operation# convert v(x,t) interval to v(x,t) RMSvelconv intype=vintt outtype=vrmst nt=$ntout dt=$dt < vintt.bin > vrmst.bin# displayWOFF=$WIDTHOFF3HOFF=$HEIGHTOFF3ximage < vrmst.bin n1=$ntout n2=$n2 d1=$dt d2=$d2 \ title="v(x,t) RMS from v(x,t) interval" \ wbox=${WIDTH} hbox=${HEIGHT} xbox=${WOFF} ybox=${HOFF} &# convert v(x,t) RMS into v(x,z)velconv intype=vrmst outtype=vintz nt=$ntout dt=$dt < vintt.bin > vintzout.bin# displayWOFF=$WIDTHOFF4HOFF=$HEIGHTOFF4ximage < vrmst.bin n1=$ntout n2=$n2 d1=$dt d2=$d2 \ title="v(z) interval from v(x,t) RMS (compare with 1st plot)" \ wbox=${WIDTH} hbox=${HEIGHT} xbox=${WOFF} ybox=${HOFF} &exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -