亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? toyfdtd1.f90

?? TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a
?? F90
?? 第 1 頁 / 共 3 頁
字號:
  else    dx = dz  end if  !! choose nx to make the guide LENGTH_IN_WAVELENGTHS   !!     wavelengths long:    nx = int(LENGTH_IN_WAVELENGTHS*lambda/dx)  !!  chose dt for Courant stability:  dt = 1.0d0/(LIGHT_SPEED*sqrt(1.0d0/(dx*dx) + 1.0d0/(dy*dy) + 1.0d0/(dz*dz)))  !!  time in seconds that will be simulated by the program:  totalSimulatedTime = MAXIMUM_ITERATION*dt  !!  constants used in the field update equations:  dtmudx = dt/(MU_0*dx)  dtepsdx = dt/(EPSILON_0*dx)  dtmudy = dt/(MU_0*dy)  dtepsdy = dt/(EPSILON_0*dy)  dtmudz = dt/(MU_0*dz)  dtepsdz = dt/(EPSILON_0*dz)  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                    !! memory allocation for the FDTD mesh:  !! There is a separate array for each of the six vector components,   !!      ex, ey, ez, hx, hy, and hz.  !! There are nx*ny*nz cells in the mesh, but   !!     there are nx*(ny+1)*(nz+1) ex component vectors in the mesh.  !!     There are (nx+1)*ny*(nz+1) ey component vectors in the mesh.  !!     There are (nx+1)*(ny+1)*nz ez component vectors in the mesh.  !! If you draw out a 2-dimensional slice of the mesh, you'll see why  !!     this is.  For example if you have a 3x3x3 cell mesh, and you   !!     draw the E field components on the z=0 face, you'll see that  !!     the face has 12 ex component vectors, 3 in the x-direction  !!     and 4 in the y-direction.  That face also has 12 ey components,  !!     4 in the x-direction and 3 in the y-direction.    !! Allocate memory for the E field arrays:  !! allocate the array of ex components:  allocate(ex(0:nx-1,0:ny,0:nz))  do i=0,(nx-1),1     do j=0,ny,1        do k=0,nz,1           ex(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx)*(ny+1)*(nz+1) * SIZEOF_DOUBLE)  !! allocate the array of ey components:  allocate(ey(0:nx,0:ny-1,0:nz))  do i=0,nx,1     do j=0,(ny-1),1        do k=0,nz,1           ey(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx+1)*(ny)*(nz+1) * SIZEOF_DOUBLE)  !! allocate the array of ez components:  allocate(ez(0:nx,0:ny,0:nz-1))  do i=0,nx,1     do j=0,ny,1        do k=0,(nz-1),1           ez(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx+1)*(ny+1)*(nz) * SIZEOF_DOUBLE)  !! Allocate the H field arrays:  !! Since the H arrays are staggered half a step off   !!     from the E arrays in every direction, the H   !!     arrays are one cell smaller in the x, y, and z   !!     directions than the corresponding E arrays.   !! By this arrangement, the outer faces of the mesh  !!     consist of E components only, and the H   !!     components lie only in the interior of the mesh.    !! allocate the array of hx components:  allocate(hx(0:nx-2,0:ny-1,0:nz-1))  do i=0,(nx-2),1     do j=0,(ny-1),1        do k=0,(nz-1),1           hx(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx-1)*(ny)*(nz) * SIZEOF_DOUBLE)  !! allocate the array of hy components:  allocate(hy(0:nx-1,0:ny-2,0:nz-1))  do i=0,(nx-1),1     do j=0,(ny-2),1        do k=0,(nz-1),1           hy(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx)*(ny-1)*(nz) * SIZEOF_DOUBLE)  !! allocate the array of hz components:  allocate(hz(0:nx-1,0:ny-1,0:nz-2))  do i=0,(nx-1),1     do j=0,(ny-1),1        do k=0,(nz-2),1           hz(i,j,k) = 0.0d0        end do     end do  end do  allocatedBytes = allocatedBytes + ( (nx)*(ny)*(nz-1) * SIZEOF_DOUBLE)  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !! write some progress notes to standard output  !! print out some identifying information   print*," "  print*," "  print*," "  print*," "  print*,"ToyFDTD1 version 1.03 (F90)"  print*,"Copyright (C) 1998, 1999 Laurie E. Miller, Paul Hayes, "  print*,"Matthew O'Keefe, Max Smirnoff, Matt Rundquist"  print*," "  print*,"ToyFDTD1 is free software published under the terms"   print*,"of the GNU General Public License as published by the"   print*,"Free Software Foundation. "   print*," "  print*," "  !! print out a bob command line,   !! including the dimensions of the output files:  print'(" bob -cmap chengGbry.cmap -s ",I5.5,"x",I5.5,"x",I5.5," *.bob")',nx+1,ny+1,nz  print*," "  !! print out a viz command line:  print*,"viz ToyFDTD1f90.viz"  print*," "  print*," "  !! print out how much memory has been allocated:   print*,"Dynamically allocated ", allocatedBytes, " bytes"  print*," "  !! print out some simulation parameters:   print*,"PLOT_MODULUS = ", PLOT_MODULUS  print*,"rectangular waveguide"  print*,"Stimulus = ", FREQUENCY, " Hertz continuous plane wave"  print*," "  print*,"Meshing parameters:"  print '(I4,"x",I3,"x",I3," cells")', nx, ny, nz  print '(" dx=",F11.8," dy=",F11.8," dz=",F11.8," meters")', dx, dy, dz  print '(F11.8, " x ", F11.8, " x ", F11.8, " meter^3 simulation region")', &       & GUIDE_WIDTH, GUIDE_HEIGHT, LENGTH_IN_WAVELENGTHS*lambda  print*," "  print '(" Time simulated will be ",E12.5E2," seconds, ",I5.5," timesteps")', &       & totalSimulatedTime, MAXIMUM_ITERATION  print*," "  print*,"3D output scaling parameters:"  print*,"Autoscaling every timestep"  print*," "  print*," "  !! print out some info on each timestep:   print*,"Following is the iteration number and current "  print*,"simulated time for each timestep/iteration of "  print*,"the simulation.  For each timestep that data is "  print*,"output to file, the maximum and minimum data "  print*,"values are printed here with the maximum and "  print*,"minimum scaled values in parentheses. "  print*," "  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !! open and start writing the .viz file  !!    this file will be handy to feed parameters to viz if desired  open(unit=33,file="ToyFDTD1f90.viz",iostat=ios)  !! if the file fails to open, print an error message to   !!     standard output:  if(ios /= 0) then    print*,"Difficulty opening ToyFDTD1f90.viz"    STOP  end if  write(unit=33, fmt='("#Viz V1.0")')  write(unit=33, fmt='("time: ",F5.3,ES12.5E2)') currentSimulatedTime,dt  write(unit=33, fmt='("color: chengGbry.cmap")')  write(unit=33, fmt='("")')                                       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !! main loop:  do iteration=0,(MAXIMUM_ITERATION-1),1           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!      !! Output section:       !! time in simulated seconds that the simulation has progressed:      currentSimulatedTime = dt*iteration      !! print to standard output the iteration number       !!     and current simulated time:      write(*,372) iteration, currentSimulatedTime372   format ("#",i5," ", ES14.5E2, "sec", $)      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!      !! 3D data output every PLOT_MODULUS timesteps:      !!     The first time through the main loop all the data written to       !!     file will be zeros.  If anything is nonzero, there's a bug.  :>       if(mod(iteration,PLOT_MODULUS) == 0) then         !! Construct the filename:         !! The numerical part is obtained by successively         !!      dividing the current iteration by ten, and the         !!      remainders of these divisions are the digits.         !!      For example, 12345 would be converted as follows:         !!      12345/10 = 1234+5/10 (5 is the first digit in the number)         !!      1234/10 = 123 + 4/10 (4 is the next digit)         !!      ....and so on..this is performed six times to create         !!      a filename out of any 6-digit number.         temp = iteration         filename(1:4) = "f90_"         filename(10:10) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(9:9) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(8:8) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(7:7) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(6:6) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(5:5) = numbers(mod(temp,10)+1:mod(temp,10)+1)         temp = int(temp/10)         filename(11:14) = ".bob"         !! open a new data file for this iteration:         open(unit=69,file=filename,access="direct",iostat=ios,recl=1)         !! if the file fails to open, print an error message to 	 !!     standard output:         if(ios /= 0) then           print*,"Difficulty opening ",filename           STOP         end if         !! find the max and min values to be output this timestep:           min = FLT_MAX         max = -FLT_MAX         do i=0,(nx),1            do j=0,(ny),1               do k=0,(nz-1),1                  if(ez(i,j,k) < min) then                     min = ez(i,j,k)                  end if                  if(ez(i,j,k) > max) then                     max = ez(i,j,k)                  end if               end do            end do         end do         !!  update the tracking variables for minimum and maximum          !!  values for the entire simulation:         if(min < simulationMin) then            simulationMin = min         end if         if(max > simulationMax) then            simulationMax = max         end if                !! set norm to be max or min, whichever is greater in magnitude:         if(abs(max) > abs(min)) then            norm = abs(max)         else            norm = abs(min)         end if         !! if everything is zero, give norm a tiny value 	 !!     to avoid division by zero:         if(norm == 0.0d0) then            norm = DBL_EPSILON         end if         scalingValue = 127.0/norm         !! write to standard output the minimum and maximum values          !!     from this iteration and the minimum and maximum values         !!     that will be written to the bob file this iteration:         write(*, 373) min, int(127.0d0 + scalingValue * min), max, int(127.0d0 + scalingValue * max)373      format(" ", f9.5, " (", i3, ") < ez BoB < ", f9.5, " (", i3, ")", $)         !! scale each ez value in the mesh to the range of integers          !!     from zero through 254 and write them to the output          !!     file for this iteration:         record = 1         do k=0,(nz-1),1            do j=0,(ny),1               do i=0,(nx),1

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品欧美一二99| 懂色av中文字幕一区二区三区| 久久国产麻豆精品| 成人免费的视频| 91精品国产全国免费观看| 国产精品视频一区二区三区不卡| 亚洲一区在线视频| 国产精品69久久久久水密桃| 欧美电影在线免费观看| 亚洲欧美一区二区久久| 国产一区二区三区日韩| 欧美日韩国产不卡| 亚洲素人一区二区| 成人性视频网站| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲国产一区二区三区青草影视| 成人午夜免费视频| 久久综合色播五月| 蜜臀久久99精品久久久画质超高清| 99re视频精品| 国产亚洲污的网站| 国内精品伊人久久久久av影院| 欧美乱妇一区二区三区不卡视频| 亚洲精品欧美综合四区| 99re视频精品| 中文字幕在线免费不卡| 懂色一区二区三区免费观看 | 久久99精品久久久| 欧美日本在线播放| 亚洲一区二区美女| 精品婷婷伊人一区三区三| 一区二区久久久久| 欧美影片第一页| 亚洲一区二区av电影| 在线国产亚洲欧美| 一卡二卡三卡日韩欧美| 欧美特级限制片免费在线观看| 有码一区二区三区| 欧美午夜精品一区二区三区| 亚洲在线中文字幕| 欧美猛男gaygay网站| 婷婷综合五月天| 日韩欧美精品在线视频| 精品亚洲免费视频| 国产日韩精品一区二区三区在线| 成人精品鲁一区一区二区| 国产精品家庭影院| 91亚洲国产成人精品一区二三 | 色域天天综合网| 亚洲综合在线电影| 欧美日韩国产高清一区二区| 久久国产日韩欧美精品| 国产亚洲女人久久久久毛片| 成人av综合在线| 亚洲无人区一区| 精品久久久三级丝袜| 成人午夜视频在线| 性欧美疯狂xxxxbbbb| 日韩欧美一区二区不卡| 国产精品一区不卡| 亚洲欧美日韩久久| 日韩欧美激情在线| 波多野结衣一区二区三区| 香蕉av福利精品导航| 久久午夜老司机| 91小宝寻花一区二区三区| 日韩在线播放一区二区| 国产日韩欧美a| 欧美日韩亚洲综合在线| 国产经典欧美精品| 亚洲狠狠爱一区二区三区| 久久免费视频色| 在线这里只有精品| 国产一区二区h| 亚洲最大色网站| 国产欧美一区二区精品婷婷| 欧美丝袜自拍制服另类| 国产成人一区在线| 午夜欧美电影在线观看| 国产精品久久精品日日| 欧美电视剧在线看免费| 91精品1区2区| 国产精品亚洲综合一区在线观看| 国产真实乱子伦精品视频| 亚洲欧美在线观看| 久久久www成人免费毛片麻豆 | 成人一区二区三区视频在线观看| 午夜精品一区二区三区免费视频| 中文乱码免费一区二区| 在线综合视频播放| 欧美亚洲国产一区二区三区va | 黄网站免费久久| 日韩电影在线一区二区三区| 中文字幕在线不卡国产视频| 久久久一区二区三区捆绑**| 日韩一区二区免费视频| 欧美羞羞免费网站| 成人亚洲一区二区一| 国产高清成人在线| 麻豆国产一区二区| 午夜精品久久久| 亚洲福中文字幕伊人影院| 1000部国产精品成人观看| 国产性做久久久久久| 精品第一国产综合精品aⅴ| 欧美一级日韩不卡播放免费| 欧美日韩一区二区电影| 欧美主播一区二区三区| jiyouzz国产精品久久| 成人的网站免费观看| 国产激情一区二区三区四区| 久久av资源网| 黄一区二区三区| 国产一二三精品| 国产精品影视在线观看| 老司机免费视频一区二区三区| 午夜精品在线看| 日本va欧美va精品发布| 日韩成人午夜精品| 蜜臀av一级做a爰片久久| 男人操女人的视频在线观看欧美 | 一区二区成人在线视频| 有坂深雪av一区二区精品| 亚洲欧美精品午睡沙发| 亚洲精品国产视频| 亚洲一二三四区| 视频一区在线视频| 久久精工是国产品牌吗| 国产在线视视频有精品| 国产精品一二三| 成人丝袜视频网| 91极品视觉盛宴| 欧美日韩一区二区三区四区 | 蜜桃视频第一区免费观看| 日韩精品乱码免费| 韩国毛片一区二区三区| 国产99精品视频| 91视频免费播放| 欧美日韩久久一区二区| 欧美成人aa大片| 国产日韩av一区| 一区二区三区四区激情| 青青青伊人色综合久久| 国产精品 欧美精品| 91久久免费观看| 日韩一区二区精品葵司在线| 久久久久久免费网| 一区二区三区日韩在线观看| 日韩国产高清在线| 播五月开心婷婷综合| 午夜精品免费在线观看| 国产综合久久久久影院| 1000部国产精品成人观看| 久久久不卡网国产精品二区| 亚洲青青青在线视频| 日韩国产精品久久久| 成人网男人的天堂| 欧美日韩精品福利| 国产午夜精品一区二区三区视频| 伊人夜夜躁av伊人久久| 精品一区二区国语对白| 日本福利一区二区| 久久午夜老司机| 五月激情综合网| 99久久综合色| 日韩欧美一级二级三级| 亚洲日本成人在线观看| 韩国三级中文字幕hd久久精品| 日本精品裸体写真集在线观看| 欧美电视剧免费全集观看| 亚洲国产精品一区二区www | 精品一区二区三区免费视频| av中文字幕一区| 久久午夜电影网| 老司机午夜精品99久久| 欧美日韩视频专区在线播放| 中文字幕视频一区| 国产乱子轮精品视频| 欧美一级片在线| 亚洲第一主播视频| 色系网站成人免费| 国产日产欧美一区| 中文字幕一区二区三区精华液| 国产精品电影一区二区| 麻豆精品视频在线观看免费| 色狠狠一区二区| 亚洲色图视频网| 国产成人亚洲综合a∨猫咪| 欧美精品视频www在线观看| 亚洲女与黑人做爰| 国产99久久久国产精品潘金网站| 欧美日韩国产一二三| 亚洲在线观看免费视频| 成人av网址在线观看| 精品国产不卡一区二区三区| 午夜精品爽啪视频| 在线观看91视频| 亚洲乱码精品一二三四区日韩在线 | 欧美老女人第四色| 一区二区高清视频在线观看|