欢迎来到天天文库
浏览记录
ID:15048420
大小: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;privatestaticdoubletime=0;privatesta
2、ticdoublesteptime;privatestaticdoublePerspective;privatestaticdoubledynamicPlungerArea;privatestaticdoublev0[];privatestaticdoubleex[];privatestaticdoubleey[];privatestaticintr1;privatestaticintr=1;privatestaticintdr=20;privatestaticintx[]=newint[3600];privatestaticinty[]=newint[3600];priv
3、atestaticintqx[]={50,50,950,950,100};privatestaticintqy[]={50,700,700,50,50};privatestaticintxposition[];privatestaticintyposition[];privatestaticdoubled[][];privatestaticdoublem[];privatestaticdoublesmoke[][];privatestaticdoubledsmoke[][];privatestaticdoubledvision[];privatestaticdoubledi
4、ndicator[][];privatestaticdoubleangleindicator[][];privatestaticdoublevision[];privatestaticStringpedestrianStatus[];//墙和行人之间的质心距离与半径和的差privatestaticdoubledq[][];privatefinaldoubleA=2;privatefinaldoubleB=0.08*20;privatestaticfinaldoubleLAIMUDA=0.5;//行人的身体半径为10像素privatefinaldoubleR=10;priva
5、tefinaldoubleK=12;privatestaticdoublepaichixishu[][];privatestaticdoublepaichilix[][];privatestaticdoublepaichiliy[][];privatestaticdoublenx[][];privatestaticdoubleny[][];privatestaticdoublevx[];privatestaticdoublevy[];privatestaticdoublepAndPLx[];privatestaticdoublepAndPLy[];privateString
6、xiancheng;publicvoidxrts(){for(inti=0;i10)&(time<=20)){pedestrianStatus[i]="B";}else{pedestrianStatus[i]="C";}}//行人与其他行人的形成的力的计算for(inti=0;i7、[i]-xposition[j])*(xposition[i]-xposition[j])+(yposition[i]-yposition[j])*(yposition[i]-yposition[j]));if((2*R-d[i][j])>=0.01){paichixishu[i][j]=2*R-d[i][j];}else{paichixishu[i][j]=0;}nx[i][j]=-(yposition[i]-yposition[j])/d[i][j];ny[i][j]=(xposition[i]-xpositi
7、[i]-xposition[j])*(xposition[i]-xposition[j])+(yposition[i]-yposition[j])*(yposition[i]-yposition[j]));if((2*R-d[i][j])>=0.01){paichixishu[i][j]=2*R-d[i][j];}else{paichixishu[i][j]=0;}nx[i][j]=-(yposition[i]-yposition[j])/d[i][j];ny[i][j]=(xposition[i]-xpositi
此文档下载收益归作者所有