资源描述:
《《隧道及地下工程FLAC解析方法》全部命令流汇总》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、第二章FLAC3D原理及入门指南2-1定义一个FISH函数newdefabcabc=25*3+5Endprintabc2-2使用一个变量newdefabchh=25abc=hh*3+5EndPrinthhPrintabc2-3对变量和函数的理解newdefabchh=25abc=hh*3+5Endsetabc=()hh=()printhhprintabcprinthhnewdefabcabc=hh*3+5endsethh=25printabcsetabc=Ohh=Oprinthhprintabcprinthh2-4获取变量的历史记录newgenzonebricksize12
2、1modelmohrpropshear=le8bulk=2e8cohes=1e5tens=lelOfixxyzrangey-0.10.1applyyvel-le-5rangey1.92.1plotsetrotation0045plotblockgroupdefgct_adadl=gp_near(0,2,0)ad2=gp_near(1,2,0)ad3=gp_near(0,2,1)ad4=gp_near(1,2,1)endget_addefloadload=gp_yfunbal(ad1)+gp_yfunbal(ad2)+gp_yfunbal(ad3)+gp_yfunbal(ad
3、4)endhistloadhistgpydis0,2,0step1000plothis1vs-22-5用FISH函数计算体积模量和剪砌模量newdefderives_mod=y_mod/(2.0*(1.0+p_ratio))b_mod=y_mod/(3.0*(1.0-2.0*p_ratio))endsety_mod=5e8p_ratio=0.25deriveprintb_modprints_mod2-6在FLAC输入中使用符号变量Newdefderives_mod=y_mod/(2.0*(1.0+p_ratio))b_mod=y_mod/(3.()*(1.()・2.0*p_
4、ratio))endsety_mod=5e8p_ratio=0.25derivegenzonebricksize2,2,2modelelasticpropbulk=b_modshear=s_modprintzonepropbulkprintzonepropshear2-7控制循环Newdefxxxsum=0prod=1loopn(1,10)sum=sum+nprod=prod*nend_loopendxxxprintsum,prodnewgenzonebrickpO(0,0,0)pl(-10,0,0)p2(0,10,0)p3(0,0,-10)modelelasplotset
5、rotation0045plotblockgroupdefinstallpnt=zone_headloopwhilepnt#nullz_depth=-z_zcen(pnt)y_mod=y_zcro+cc*sqrt(z_dcpth)z_prop(pnt,'shear')=y_mod/(2.0*(1.0+p_ratio))z_prop(pnt,5bulk5)=y_mod/(3.0*(1.0-2.0*p_ratio))pnt=zone_next(pnt)end_loopendsetp_ratio=0.25y_zero=1e7cc=1e8install2-8拆分命令行new;exa
6、mpleofasumofmanythingsdeflong_sumtemp=vl+v2+v3+v4+v5+v6+v7+v8+v9+vlOlong_sum=temp+vl1+vl2+vl3+v!4+vl5end2-9变量类型newdefhaveoneaa=2bb=3.4cc=5Haveaniceday9dd=aa*bbee=cc+oldchap'endhaveoneprintfish2-10IF条件语句newdefabcifxx>0thenabc=1000elseabc=-1000end_ifendsetxx=10printabcsetxx=0printabc2-11索单元
7、自动生成newgenzonebricksize1035plotsetrotation0045plotblockgroupdefplace_cablesloopn(1,5)z_d=float(n)-0.5nseg7commandseicablebeg0.0,1・5,z_dend7.0,1・5,z_dend_commandend_loopendplace_cablesplotgridseigeomrednewgenzonebricksize1035plotsetrotation15060plotblockgroupmo