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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? onyx.f90

?? 用語計(jì)算光子晶體的透射率和反射率以及能帶結(jié)構(gòu)
?? 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,outfile2=12,outfile=9,fields=13
integer,parameter :: reff=14,refr=16,transf=15,transt=17
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
print*,'                          '
print*,'                         '
print*,'                         '
print*,'                          '
print*,'                          '
print*,'                          '
print*,'                          '

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91成人网在线| 成人美女视频在线观看| 91精品婷婷国产综合久久竹菊| 亚洲一区二区三区四区在线| 91国偷自产一区二区三区观看 | 蜜臀av性久久久久av蜜臀妖精| 欧美群妇大交群的观看方式| 日韩精品亚洲一区二区三区免费| 欧美日本国产视频| 精品一区免费av| 中文字幕欧美日韩一区| 色婷婷国产精品| 理论电影国产精品| 国产区在线观看成人精品| av亚洲精华国产精华精华| 亚洲一区在线看| 日本一区二区在线不卡| 91尤物视频在线观看| 亚洲狠狠爱一区二区三区| 精品区一区二区| www.欧美.com| 日韩中文欧美在线| 国产女主播视频一区二区| 色婷婷综合久久| 国产在线观看免费一区| 中文字幕亚洲区| 欧美一区二区三区日韩| 成人一区二区三区视频在线观看| 尤物视频一区二区| 久久久国产精品不卡| 色老头久久综合| 国产一区999| 亚洲一区av在线| 久久久91精品国产一区二区三区| 91蜜桃免费观看视频| 蜜桃久久精品一区二区| 一区二区三区在线视频免费观看| 日韩一区二区三区四区五区六区 | 老司机午夜精品99久久| 中文字幕一区二区在线观看| 欧美一区二区三区色| 91啪亚洲精品| 国产不卡免费视频| 蜜桃视频在线观看一区| 亚洲午夜三级在线| 国产精品久久久久桃色tv| 精品少妇一区二区三区在线播放| 91色婷婷久久久久合中文| 久久99精品国产麻豆婷婷洗澡| 亚洲男人天堂av网| 国产校园另类小说区| 制服丝袜亚洲播放| 在线看日韩精品电影| 成人毛片老司机大片| 国模娜娜一区二区三区| 青娱乐精品视频在线| 亚洲伊人色欲综合网| 亚洲三级电影网站| 国产精品丝袜黑色高跟| 精品播放一区二区| 日韩欧美成人一区| 欧美一区二区啪啪| 欧美日韩mp4| 欧美日韩精品系列| 欧美日韩国产一二三| 欧美日韩亚洲综合在线 | 国产精品一卡二卡在线观看| 免费欧美在线视频| 日韩av一二三| 蜜臀av性久久久久蜜臀av麻豆 | 蜜桃视频在线观看一区| 亚洲成av人片| 午夜影视日本亚洲欧洲精品| 一区二区三区蜜桃网| 亚洲精品免费播放| 亚洲综合男人的天堂| 亚洲国产视频一区二区| 亚洲综合色丁香婷婷六月图片| 一区二区三区在线视频免费| 一区二区理论电影在线观看| 亚洲午夜在线视频| 三级影片在线观看欧美日韩一区二区 | 亚洲欧美日韩久久| 最新不卡av在线| 一片黄亚洲嫩模| 日韩经典中文字幕一区| 蜜臀av性久久久久蜜臀av麻豆| 人人狠狠综合久久亚洲| 国内精品国产三级国产a久久| 精品在线一区二区三区| 国产成人在线观看| www.欧美日韩| 欧美图区在线视频| 777久久久精品| 欧美成人三级电影在线| 中文字幕乱码日本亚洲一区二区 | 亚洲女爱视频在线| 午夜精品久久久久久久久久| 日韩电影网1区2区| 91久久一区二区| 欧美日韩一区在线观看| 欧美v日韩v国产v| 亚洲国产精品成人久久综合一区| 亚洲日本一区二区三区| 天天色综合天天| 国产98色在线|日韩| 在线观看欧美黄色| 2欧美一区二区三区在线观看视频| 国产日本一区二区| 亚洲一级二级三级| 国产一区二区三区av电影| www.欧美日韩| 日韩欧美成人午夜| 亚洲人成在线观看一区二区| 免费在线观看视频一区| 岛国av在线一区| 91精品国产91久久久久久一区二区| 精品1区2区在线观看| 亚洲美腿欧美偷拍| 激情五月婷婷综合| 91国模大尺度私拍在线视频| 日韩三级电影网址| 亚洲综合色自拍一区| 国产激情视频一区二区三区欧美| 欧美亚洲动漫制服丝袜| 国产欧美一区二区三区网站| 亚洲大片在线观看| eeuss影院一区二区三区| 日韩免费一区二区| 亚洲第一福利视频在线| 国产a区久久久| 日韩欧美一区二区三区在线| 一个色综合网站| 国产91丝袜在线18| 欧美xxxxx牲另类人与| 亚州成人在线电影| www.视频一区| 久久精品一区四区| 麻豆精品久久精品色综合| 欧洲一区二区三区免费视频| 国产精品午夜春色av| 国产一二三精品| 51午夜精品国产| 亚洲国产一区视频| 一本久久精品一区二区| 久久精品视频在线看| 久久精品国产99久久6| 欧美色中文字幕| 一区二区三区加勒比av| 99vv1com这只有精品| 国产精品日韩成人| 成人在线视频一区二区| 亚洲不卡在线观看| 一本久久a久久免费精品不卡| 欧美极品少妇xxxxⅹ高跟鞋| 国产一区二区三区综合| 精品成人免费观看| 狠狠色2019综合网| 久久青草国产手机看片福利盒子| 日韩专区在线视频| 日韩亚洲国产中文字幕欧美| 午夜精品成人在线视频| 欧美日韩国产中文| 日韩精品欧美精品| 4438x成人网最大色成网站| 五月天精品一区二区三区| 欧美日韩高清一区| 视频一区二区欧美| 91精品国模一区二区三区| 婷婷综合在线观看| 欧美一卡二卡三卡四卡| 玖玖九九国产精品| 欧美电视剧免费全集观看| 日韩不卡在线观看日韩不卡视频| 欧美一区二区三区的| 另类小说图片综合网| 久久这里只有精品视频网| 国产乱一区二区| 国产精品美女一区二区三区| 成人激情视频网站| 亚洲欧美成aⅴ人在线观看| 色偷偷久久一区二区三区| 亚洲成人一二三| 日韩欧美在线影院| 粉嫩13p一区二区三区| 亚洲欧美日韩精品久久久久| 欧美日韩一区在线| 久久超级碰视频| 中文字幕乱码日本亚洲一区二区| 91麻豆免费看片| 日韩不卡一区二区三区| 久久久久久久久久美女| 一本到高清视频免费精品| 午夜视频一区二区| 欧美精品一区二区三| www.在线欧美| 丝瓜av网站精品一区二区| 久久精品夜夜夜夜久久| 色婷婷综合久久久久中文| 美国毛片一区二区|