欢迎来到天天文库
浏览记录
ID:15113947
大小:46.00 KB
页数:18页
时间:2018-08-01
《火灾烟雾环境下人员逃生行为仿真研究》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、火灾烟雾环境下人员逃生行为仿真研究importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;publicclassxsextendsFrameimplementsRunnable{privatestaticintzsdleft,zsdright,zsdbefore,zsdafter,zsdopen;privatestaticintfzrs;privatestaticdoublefztime;privatestaticdoubletim
2、e=0;privatestaticdoublesteptime;privatestaticdoublePerspective;privatestaticdoubledynamicPlungerArea;privatestaticdoublev0[];privatestaticdoubleex[];privatestaticdoubleey[];privatestaticintr1;privatestaticintr=1;privatestaticintdr=20;privatestaticintx[]=newint[3600];privatest
3、aticinty[]=newint[3600];privatestaticintqx[]={50,50,950,950,100};privatestaticintqy[]={50,700,700,50,50};privatestaticintxposition[];privatestaticintyposition[];privatestaticdoubled[][];privatestaticdoublem[];privatestaticdoublesmoke[][];privatestaticdoubledsmoke[][];privates
4、taticdoubledvision[];privatestaticdoubledindicator[][];privatestaticdoubleangleindicator[][];privatestaticdoublevision[];privatestaticStringpedestrianStatus[];//墙和行人之间的质心距离与半径和的差privatestaticdoubledq[][];privatefinaldoubleA=2;privatefinaldoubleB=0.08*20;privatestaticfinaldoub
5、leLAIMUDA=0.5;//行人的身体半径为10像素privatefinaldoubleR=10;privatefinaldoubleK=12;privatestaticdoublepaichixishu[][];privatestaticdoublepaichilix[][];privatestaticdoublepaichiliy[][];privatestaticdoublenx[][];privatestaticdoubleny[][];privatestaticdoublevx[];privatestaticdoublevy[];p
6、rivatestaticdoublepAndPLx[];privatestaticdoublepAndPLy[];privateStringxiancheng;publicvoidxrts(){for(inti=0;i10)&(time<=20)){pedestrianStatus[i]="B";}else{pedestrianStatus[i]="C";}}//行人与其他行人的形成的力的计算for(inti=0;i7、s;i++){pAndPLx[i]=0;pAndPLy[i]=0;for(intj=0;j=0.01){paichixishu[i][j]=2*R-d[i][j];}else{paichixishu[i][j]=0;}nx[i][j]8、=-(yposition[i]-yposition[j])/d[i][j];ny[i][j]=(xposition[i]-xpositi
7、s;i++){pAndPLx[i]=0;pAndPLy[i]=0;for(intj=0;j=0.01){paichixishu[i][j]=2*R-d[i][j];}else{paichixishu[i][j]=0;}nx[i][j]
8、=-(yposition[i]-yposition[j])/d[i][j];ny[i][j]=(xposition[i]-xpositi
此文档下载收益归作者所有