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

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

?? onyx.f90

?? FDTD算法計算二維光子晶體能帶和傳輸譜
?? F90
?? 第 1 頁 / 共 5 頁
字號:
-----------------------------------------------------------------------------
! ONYX - 2
! This is the second release version of our Order N photonics code
! Modified for transmission and reflection calculations 
! (c) Andrew Ward, Imperial College, London. 1997, 1998, 1999.
! All comments, bugs and inquiries to a.j.ward@ic.ac.uk
!
! $Revision: 2.1 $
! $Date: 1999/07/30 14:44:39 $
! $Source: /home/andreww/f90/orderN/PML/onyx.f90,v $
! $Author: andreww $
! -----------------------------------------------------------------------------
module interface1
interface

subroutine init_store_pts_band(store_pts)
implicit none
integer,pointer :: store_pts(:,:)
end subroutine init_store_pts_band

subroutine init_store_pts_trans(store_pts)
implicit none
integer,pointer :: store_pts(:,:)
end subroutine init_store_pts_trans

subroutine init_store_pts_dos(store_pts,ix_cur,iy_cur,iz_cur,i_pol)
implicit none
integer,pointer :: store_pts(:,:)
integer,intent(in) :: ix_cur,iy_cur,iz_cur,i_pol
end subroutine init_store_pts_dos

subroutine initfields(g1,g2,g3,e,h,eps_hat,mu_hat,ix,iy,iz,i_pol)
implicit none
real,intent(in) :: g1(3),g2(3),g3(3)
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:),mu_hat(:,:,:,:,:)
integer,intent(in) :: ix,iy,iz,i_pol
end subroutine initfields

subroutine initfields_trans(g1,g2,g3,e,h,eps_hat,mu_hat,ix,iy,iz,i_pol)
implicit none
real,intent(in) :: g1(3),g2(3),g3(3)
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:),mu_hat(:,:,:,:,:)
integer,intent(in) :: ix,iy,iz,i_pol
end subroutine initfields_trans

subroutine initfields_dos(g1,g2,g3,e,h,eps_hat,mu_hat,ix,iy,iz,i_pol)
implicit none
real,intent(in) :: g1(3),g2(3),g3(3)
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:),mu_hat(:,:,:,:,:)
integer,intent(in) :: ix,iy,iz,i_pol
end subroutine initfields_dos

subroutine defcell(eps,mu,sigma,sigma_m,u1,u2,u3)
implicit none
complex,pointer :: eps(:,:,:),mu(:,:,:)
real,pointer :: sigma(:,:,:),sigma_m(:,:,:)
real :: u1(3),u2(3),u3(3)
end subroutine defcell

subroutine renorm(eps,mu,sigma,sigma_m,eps_inv,mu_inv,eps_hat,mu_hat,g, &
&                 omega)
implicit none
complex,pointer :: eps(:,:,:),mu(:,:,:)
complex,pointer :: eps_inv(:,:,:,:,:)
complex,pointer :: mu_inv(:,:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:)
complex,pointer :: mu_hat(:,:,:,:,:)
real,pointer :: sigma(:,:,:),sigma_m(:,:,:)
real,intent(in) :: g(3,3),omega
end subroutine renorm

subroutine driver(e,h,eps_inv,mu_inv,eps_hat,mu_hat,sigma,sigma_m, &
&                 fft_data,store_pts)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
complex,pointer :: eps_inv(:,:,:,:,:)
complex,pointer :: mu_inv(:,:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:)
complex,pointer :: mu_hat(:,:,:,:,:)
complex,pointer :: fft_data(:,:)
real,pointer :: sigma(:,:,:),sigma_m(:,:,:)
integer,pointer :: store_pts(:,:)
end subroutine driver

subroutine postproc_band(fft_data,spectrum)
implicit none
complex,pointer :: fft_data(:,:)
real,pointer :: spectrum(:)
end subroutine postproc_band

subroutine postproc_trans(fft_data,eps_inv,mu_inv)
implicit none
complex,pointer :: fft_data(:,:)
complex,pointer :: eps_inv(:,:,:,:,:),mu_inv(:,:,:,:,:)
end subroutine postproc_trans

subroutine postproc_dos(fft_data,spectrum)
implicit none
complex,pointer :: fft_data(:,:)
real,pointer :: spectrum(:)
end subroutine postproc_dos

subroutine finalproc_dos(spectrum)
implicit none
real,pointer :: spectrum(:)
end subroutine finalproc_dos

end interface
end module interface1

! -----------------------------------------------------------------------------
module interface2
interface

subroutine int(e_cur,h_cur,e_prev,h_prev,eps_inv,mu_inv,sigma,sigma_m,   &
&              n_tsteps,iblock,fft_data,store_pts,intcurle_1,intcurle_2, &
&              intcurlh_1,intcurlh_2,wz_1,wz_2)
implicit none
integer,intent(in) :: n_tsteps,iblock
complex,pointer :: e_cur(:,:,:,:)
complex,pointer :: e_prev(:,:,:,:)
complex,pointer :: h_cur(:,:,:,:)
complex,pointer :: h_prev(:,:,:,:)
complex,pointer :: eps_inv(:,:,:,:,:)
complex,pointer :: mu_inv(:,:,:,:,:)
complex,pointer :: fft_data(:,:)
real,pointer :: sigma(:,:,:),sigma_m(:,:,:)
integer,intent(in) :: store_pts(:,:)
complex,pointer :: intcurle_1(:,:,:)
complex,pointer :: intcurlh_1(:,:,:)
complex,pointer :: intcurle_2(:,:,:)
complex,pointer :: intcurlh_2(:,:,:)
real,intent(in) :: wz_1(:),wz_2(:)
end subroutine int

subroutine set_wz(wz_1,wz_2)
implicit none
real,intent(out) :: wz_1(:)
real,intent(out) :: wz_2(:)
end subroutine set_wz

end interface
end module interface2

! -----------------------------------------------------------------------------
module interface3
interface

subroutine calc_div_B(h,mu_hat,div_B)
implicit none
complex,pointer :: h(:,:,:,:)
complex,pointer :: mu_hat(:,:,:,:,:)
complex,pointer :: div_B(:,:,:)
end subroutine calc_div_B

subroutine calc_div_D(e,eps_hat,div_D)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:)
complex,pointer :: div_D(:,:,:)
end subroutine calc_div_D

subroutine calc_energy_density(E_cur,E_prev,H_prev,rho,eps_hat,mu_hat)
implicit none
complex,pointer :: E_cur(:,:,:,:)
complex,pointer :: E_prev(:,:,:,:)
complex,pointer :: H_prev(:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:)
complex,pointer :: mu_hat(:,:,:,:,:)
real,pointer :: rho(:,:,:)
end subroutine calc_energy_density

subroutine calc_current(J,e_cur,h_cur,h_prev,ix,iy,iz)
implicit none
complex,intent(out) :: J(3)
complex,pointer :: e_cur(:,:,:,:),h_cur(:,:,:,:)
complex,pointer :: h_prev(:,:,:,:)
integer,intent(in) :: ix,iy,iz
end subroutine calc_current

end interface
end module interface3

! -----------------------------------------------------------------------------
module interface4
interface

subroutine power_spec(f,spectrum)
implicit none
complex,pointer :: f(:,:)
real,pointer :: spectrum(:)
end subroutine power_spec


end interface
end module interface4

! -----------------------------------------------------------------------------
module interface5
interface

subroutine bc_xmin_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_xmin_bloch

subroutine bc_xmax_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_xmax_bloch

subroutine bc_ymin_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_ymin_bloch

subroutine bc_ymax_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_ymax_bloch

subroutine bc_zmin_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_zmin_bloch

subroutine bc_zmax_bloch(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_zmax_bloch

subroutine bc_xmin_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_xmin_metal 

subroutine bc_xmax_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_xmax_metal 

subroutine bc_ymin_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_ymin_metal 

subroutine bc_ymax_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_ymax_metal 

subroutine bc_zmin_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_zmin_metal 

subroutine bc_zmax_metal(e,h)
implicit none
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
end subroutine bc_zmax_metal 

subroutine PML_e(e_cur,e_prev,h_prev,intcurlh_1,intcurlh_2,wz_1,wz_2,eps_inv)
implicit none
complex,pointer :: e_cur(:,:,:,:),e_prev(:,:,:,:),h_prev(:,:,:,:)
complex,pointer :: intcurlh_1(:,:,:),intcurlh_2(:,:,:)
complex,pointer :: eps_inv(:,:,:,:,:)
real,intent(in) :: wz_1(:),wz_2(:)
end subroutine PML_e

subroutine PML_h(e_cur,h_cur,h_prev,intcurle_1,intcurle_2,wz_1,wz_2,mu_inv)
implicit none
complex,pointer :: e_cur(:,:,:,:),h_cur(:,:,:,:),h_prev(:,:,:,:)
complex,pointer :: intcurle_1(:,:,:),intcurle_2(:,:,:)
complex,pointer :: mu_inv(:,:,:,:,:)
real,intent(in) :: wz_1(:),wz_2(:)
end subroutine PML_h

end interface
end module interface5

! -----------------------------------------------------------------------------
module interface6
interface

subroutine defpw(iw,rvec,lvec,kz,eps_inv,mu_inv)
implicit none
integer,intent(in) :: iw
complex,pointer :: rvec(:,:),lvec(:,:),kz(:)
complex,pointer :: eps_inv(:,:,:,:,:),mu_inv(:,:,:,:,:)
end subroutine defpw

subroutine FFT(f,isign)
implicit none
integer,intent(in) :: isign
complex,pointer :: f(:,:)
end subroutine FFT

subroutine FT(f,isign)
implicit none
integer,intent(in) :: isign
complex,pointer :: f(:,:)
end subroutine FT

end interface
end module interface6

! -----------------------------------------------------------------------------
module matrices
interface

function matinv3(A,emach,fail)
implicit none
complex,dimension(3,3) :: matinv3
complex,intent(in) :: A(3,3)
real,intent(in) :: emach
logical,intent(out) :: fail
end function matinv3

function cross_prod(a,b)
implicit none
real,dimension(3) :: cross_prod
real,intent(in) :: a(3),b(3)
end function cross_prod

function c_cross_prod(a,b)
implicit none
complex,dimension(3) :: c_cross_prod
complex,intent(in) :: a(3),b(3)
end function c_cross_prod

function matinv(A,emach,fail)
implicit none
complex,pointer :: A(:,:)
complex,dimension(ubound(A,1),ubound(A,2)) :: matinv
real,intent(in) :: emach
logical,intent(out) :: fail
end function matinv

end interface
end module matrices

! -----------------------------------------------------------------------------
module matrices2
interface

subroutine lu_decomp(A,D,indx,emach,fail)
implicit none
complex,pointer :: A(:,:)
real,intent(in) :: emach
logical,intent(out) :: fail
integer,intent(out) :: D
integer,pointer :: indx(:)
end subroutine lu_decomp

subroutine lu_bksub(A,indx,B)
implicit none
complex,pointer :: A(:,:)
complex,pointer :: B(:)
integer,pointer :: indx(:)
end subroutine lu_bksub

end interface
end module matrices2

! -----------------------------------------------------------------------------
module physconsts
! Use Atomic units
! c0=Speed of light
! pi=3.1415...
! emach=Machine accuracy
real,parameter :: pi=3.14159265358979323846
real,parameter :: c0=137.0360
real,parameter :: eps0=1.0/(4.0*pi)
real,parameter :: mu0=1.0/(eps0*c0**2)
real,parameter :: abohr=5.291772e-11
real :: x
real,parameter :: emach=epsilon(x)
complex,parameter :: ci=(0.0,1.0)
end module physconsts

! -----------------------------------------------------------------------------
module files
! Set the unit numbers for the files we want to access
integer,parameter :: logfile=10,infile=11,outfile=12,fields=13
integer,parameter :: ref=14,trans=15
end module files

! -----------------------------------------------------------------------------
module parameters
! Define the run-time parameter list. These will be read in from a file
! ixmax, iymax, izmax define the number of mesh points in each of the 
! principle directions
! itmax and dt are the number and size of timesteps respectively
! akx, aky, akz are the components of the k-vector expressed on the reciprocal
! lattice. They are normalised by the mesh spacing in the relevent direction
! ie. akx = (Q1*ixmax)*kx
! ikmax = No. of k-points
! Q(3) is the matrix holding the mesh spacing in each direction
! n_block : Break down itmax into `n_block' blocks each of `block_size' time 
! steps. Fields can be writen out, div's calcuated etc at the end of each block
! itmax=n_block*block_size
! n_pts_store : The number of real space points at which we store the fields
! For the FFT the itmax timesteps can be split up into segments which can be 
! either overlapping or not. For details see Numerical Receipes pg 425ff.
! If overlap=.true. then itmax=fft_size*(n_segment+1)
! If overlap=.false. then itmax=fft_size*(2*n_segment)
! In both cases fft_size is the size the segment which is fourier transformed
! so must be a power of 2. 
! nw = Number of frequencies to be analyized / written out
! bclayer1, bclayer2 = thickness of the absorbing layer at either end of system
! epsref is the dielectric constant of the host material
! Notice that bclayer1, bclayer2 and epsref will be over-ridden in defcell
integer :: ixmax,iymax,izmax,itmax,ikmax,n_block,block_size,n_pts_store
real :: Q0,Q(3),dt,akx,aky,akz
integer :: n_segment,fft_size,nw
logical :: overlap
real :: damping
integer :: bclayer1=2
integer :: bclayer2=2
complex :: epsref=(1.0,0.0)
end module parameters

! -----------------------------------------------------------------------------

program onyx
use interface1
use parameters
use physconsts
use files
implicit none

! Define necessary variables

integer :: ios,ik,ix_cur,iy_cur,iz_cur,i_pol
integer,pointer :: store_pts(:,:)
complex,pointer :: e(:,:,:,:)
complex,pointer :: h(:,:,:,:)
complex,pointer :: eps(:,:,:),mu(:,:,:)
complex,pointer :: eps_inv(:,:,:,:,:),mu_inv(:,:,:,:,:)
complex,pointer :: eps_hat(:,:,:,:,:),mu_hat(:,:,:,:,:)
complex,pointer :: fft_data(:,:)
real,pointer :: sigma(:,:,:),sigma_m(:,:,:)
real,pointer :: spectrum(:)
real :: u1(3),u2(3),u3(3)
real :: g1(3),g2(3),g3(3)
real :: g(3,3),omega

! Open the neccessary files

open(unit=logfile,file='log.dat',status='replace',action='write')
open(unit=outfile,file='out.dat',status='replace',action='write')
open(unit=fields,file='fields.dat',status='replace',action='write')
open(unit=ref,file='ref.dat',status='replace',action='write')
open(unit=trans,file='trans.dat',status='replace',action='write')
open(unit=infile,file='infile.dat',status='old',action='read',iostat=ios)
if (ios.ne.0) call err(1)

! Set the run time parameters

call setparam()

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
东方aⅴ免费观看久久av| 成人国产免费视频| 国产精品嫩草影院av蜜臀| 欧美色偷偷大香| 成人午夜视频网站| 久久精品国产精品青草| 一区二区不卡在线视频 午夜欧美不卡在| 欧美一二三四区在线| 色妹子一区二区| 粉嫩一区二区三区在线看| 青青草精品视频| 亚洲女子a中天字幕| 久久久久久久久久久99999| 欧美肥妇毛茸茸| 在线这里只有精品| 波多野结衣精品在线| 国产一区二区三区| 久草在线在线精品观看| 五月激情综合色| 亚洲综合自拍偷拍| 国产蜜臀97一区二区三区| 欧美裸体bbwbbwbbw| 色婷婷av久久久久久久| 成人黄色电影在线 | 国产不卡免费视频| 欧美性生活久久| 成人久久视频在线观看| 国产精品18久久久久| 青青草成人在线观看| 日韩主播视频在线| 午夜伊人狠狠久久| 香蕉影视欧美成人| 亚洲 欧美综合在线网络| 亚洲综合图片区| 亚洲精选免费视频| 一区二区三区在线免费观看| 亚洲欧美日韩在线不卡| 日韩毛片视频在线看| 亚洲视频中文字幕| 亚洲欧美一区二区不卡| 亚洲视频狠狠干| 一区二区欧美在线观看| 亚洲激情校园春色| 一区二区三区精品视频在线| 亚洲一区免费观看| 亚洲国产人成综合网站| 五月激情综合婷婷| 美女www一区二区| 久久精品国产色蜜蜜麻豆| 精品在线一区二区三区| 国产伦精品一区二区三区视频青涩 | 亚洲欧美怡红院| 中文字幕综合网| 一区二区三区影院| 一区二区三区四区在线| 亚洲成人激情自拍| 丝袜诱惑亚洲看片| 午夜精品福利一区二区三区蜜桃| 丝袜亚洲另类欧美综合| 免费高清在线视频一区·| 国产一区亚洲一区| 99久久久久久99| 欧美色男人天堂| 精品少妇一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| 欧美国产成人在线| 亚洲综合一区二区| 久久99精品久久久久| 不卡一区在线观看| 欧美久久一二区| 久久综合999| 综合av第一页| 日韩av一区二区三区| 成人一区二区三区视频在线观看| 91麻豆国产在线观看| 91精品国产麻豆| 国产精品美日韩| 日韩专区一卡二卡| 成人ar影院免费观看视频| 欧美日韩专区在线| 国产三级一区二区三区| 亚洲国产一区二区三区| 国产一区二区三区免费看| 色婷婷综合在线| 欧美成人性战久久| 亚洲精品美腿丝袜| 国产综合色产在线精品| 91福利社在线观看| 久久免费视频一区| 午夜欧美电影在线观看| 国产69精品一区二区亚洲孕妇 | 色综合咪咪久久| 欧美tickling挠脚心丨vk| 亚洲视频在线一区二区| 国内精品自线一区二区三区视频| 91网址在线看| 久久亚洲综合av| 日韩专区在线视频| 91搞黄在线观看| 亚洲国产电影在线观看| 日韩二区在线观看| 在线亚洲欧美专区二区| 国产女主播视频一区二区| 男人的j进女人的j一区| 在线亚洲一区二区| 中文子幕无线码一区tr| 国内国产精品久久| 911精品国产一区二区在线| 亚洲日本在线天堂| 久久久综合九色合综国产精品| 午夜影视日本亚洲欧洲精品| 91丝袜美女网| 4438亚洲最大| www国产亚洲精品久久麻豆| 亚洲综合精品自拍| k8久久久一区二区三区| 国产欧美日韩在线观看| 免费成人在线视频观看| 欧美久久久久久久久久| 亚洲综合区在线| 色网综合在线观看| 国产精品成人免费| 春色校园综合激情亚洲| 国产亚洲欧美中文| 国产高清在线观看免费不卡| 欧美电影免费观看高清完整版在线 | 久久国产精品色婷婷| 6080午夜不卡| 日韩不卡手机在线v区| 在线观看91精品国产麻豆| 亚洲国产精品久久人人爱| 欧美写真视频网站| 亚洲亚洲人成综合网络| 欧美日韩中文字幕一区| 亚洲国产日韩av| 6080日韩午夜伦伦午夜伦| 亚洲va韩国va欧美va精品| 欧美日本一区二区三区| 国产精品1区2区3区| 精品sm捆绑视频| 伦理电影国产精品| 精品88久久久久88久久久| 国产自产视频一区二区三区| 久久久五月婷婷| 国产成人av电影| 精品亚洲成a人在线观看| 久久欧美一区二区| 日本一区二区免费在线观看视频| 日韩三级在线免费观看| 97精品超碰一区二区三区| 精东粉嫩av免费一区二区三区| 一区二区三区不卡视频| 国产婷婷精品av在线| 91免费版在线| 国产在线不卡一卡二卡三卡四卡| 六月丁香婷婷久久| 麻豆精品国产传媒mv男同| 亚洲免费毛片网站| 欧美激情一区二区三区不卡| 亚洲专区一二三| 欧美久久久久久久久| 美脚の诱脚舐め脚责91 | 丰满放荡岳乱妇91ww| 国产精品动漫网站| 欧美亚一区二区| 日本不卡一区二区三区| 精品国产露脸精彩对白| 北岛玲一区二区三区四区| 亚洲与欧洲av电影| 精品久久久久久久久久久久久久久久久 | 精品国产网站在线观看| 国产福利91精品一区二区三区| 亚洲婷婷在线视频| 欧美一区二区成人6969| 国产91综合网| 亚洲444eee在线观看| 久久亚洲综合色| 91成人在线观看喷潮| 极品瑜伽女神91| 亚洲免费色视频| 精品理论电影在线| 日本高清免费不卡视频| 免费欧美在线视频| 中文字幕一区av| 欧美大片在线观看一区二区| 99精品视频在线免费观看| 美日韩一区二区三区| 亚洲欧美日韩在线播放| 欧美tickling挠脚心丨vk| 色综合视频在线观看| 韩国欧美国产一区| 亚洲午夜国产一区99re久久| 久久精品一区二区三区不卡牛牛| 日本丰满少妇一区二区三区| 国产真实精品久久二三区| 亚洲午夜一区二区| 国产精品网站在线观看| 日韩午夜激情电影| 欧美性猛交xxxx黑人交| 福利视频网站一区二区三区|