?? ringresonator.txt
字號:
########################################################################
# This is an example of the input file for F2P.
# An example of ring resonator.
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#------------------------------------------------Prepared by Dr. Min Qiu
########################################################################
########################################################################
#Calculate the TM or TE modes??
# ==0: TE modes
# ==1: TM modes
1
########################################################################
########################################################################
#Define the materials used in the calculations.
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#The number of materials
2
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#The dielectric constant, and conductivity of each material
#Index---dielectric constant---conductivity
1 1.0000 0.00E+0 #air
2 10.2400 0.00E+0 #InP/GaInAsP (n=3.2)
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#End of material definition.
########################################################################
########################################################################
#define the size of the computational domain
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#--- lattice constant (For normalized purpose)
1.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#The size of the computational domain.
#---Sx-------Sy--
20.0 20.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Background materials index
1
########################################################################
########################################################################
#Absorbing boundary condition (ABC)
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#ABC type: =0 All surrounded by PML; =1 Only the Y direction surrounded
#by PML, while periodic BC in the X direction.
#---ABC type----------------------------------------------------------
0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#---number of PML layers in X----in Y---------The exponent index for PML
12 12 2.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
########################################################################
########################################################################
#Define parameters for FDTD
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#----Dx---------Dy------
0.05 0.05
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Dt coefficient. Dt=Dt_coe*1/sqrt(1/(Dx*Dx)+1/(Dy*Dy))/vc
#Should be less than 1.0.
#For example, 0.95 or 0.866 are all good choices.
#---Dt_Coe---
0.95
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Number of total time steps
1000000
########################################################################
########################################################################
#Output the z-field component in some time steps.
#For snapshot purpose.
#If interval is less than 1, no output.
# The current z-field distribution is always stored in "Fieldz_Bin.dat".
#----Start Time steps---------End Time steps------Interval--------------
20 10000 -20
########################################################################
########################################################################
#define the inclusions, could be waveguides, cylinders, ...
#-----------------------------------------------------------------------
#Inclusion type:
# == 1: ellipse
# == 2: quadrilateral
# == 3: triangular
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#The total number of inclusions
4
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Inclusion No. 1, circles, ring
#Inclusion Type ----Material index----
1 2
#-----Rx---------Ry---------Xc---------Yc--------Theta--
5.0 5.0 10.0 10.0 0.0
#-----Mx--------Lx--------My--------Ly------Alpha-----(For Repeat)
1 0.00 1 0.0 0.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Inclusion No. 2, circles, ring inner
#Inclusion Type ----Material index----
1 1
#-----Rx---------Ry---------Xc---------Yc--------Theta--
4.4 4.4 10.0 10.0 0.0
#-----Mx--------Lx--------My--------Ly------Alpha-----(For Repeat)
1 0.00 1 0.0 0.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Inclusion No. 3, rectangular, waveguide up
#Inclusion Type ----Material index----
2 2
#---X1------Y1------X2------Y2------X3-------Y3------X4------Y4---------
-1.0 15.50 -1.0 16.10 35.5 16.10 35.5 15.50
#---Mx-----Lx-----My-----Ly----Alpha---(For Repeat)
1 0.00 1 0.00 0.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Inclusion No. 4, rectangular, waveguide down
#Inclusion Type ----Material index----
2 2
#---X1------Y1------X2------Y2------X3-------Y3------X4------Y4---------
-1.0 3.90 -1.0 4.50 35.5 4.50 35.5 3.90
#---Mx-----Lx-----My-----Ly----Alpha---(For Repeat)
1 0.00 1 0.00 0.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Examples of Triangular
#Inclusion Type ----Material index----
# 3 2
#---X1------Y1------X2------Y2------X3-------Y3---
# 10.5 0.0 24.5 3.964 16.0 9.964
#---Mx-----Lx-----My-----Ly----Alpha---(For Repeat)
# 1 0.00 1 0.00 0.0
########################################################################
########################################################################
#Source part
#-----------------------------------------------------------------------
# For source type: ==1 point source
# ==2 line source, direction, from P1 to P2, in P3
# ==3 waveguide mode source
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#----Number of Source------------
1
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Point Source Examples
#---Source Type------Source frequency (a/lambda)---Pulse Width (Delta_w)-
# 1 0.305 0.007
#----XS-----YS-------- (Point source position)
# 4.0 6.06218
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Gaussian Line Source sample
#For line source, direction == +1(X); -1(-X); +2(+Y); -2(-Y);
#---Source Type------Source frequency (a/lambda)---Pulse Width (Delta_w)-
# 2 0.25 0.1
#----direction---XS-----YS-----Beam Width---Material Type----Theta-------
# 1 9.00 6.06218 2.0 2 0.0
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Waveguide Source sample
#For Waveguide source, direction == +1(X); -1(-X); +2(+Y); -2(-Y);
#---Source Type------Source frequency (a/lambda)---Pulse Width (Delta_w)-
# 3 0.295 0.007
#----direction---XS-----YS-----Waveguide Width---Mode Number-----------
# 1 1.00 6.06218 2.60 1
#---Material Up (Left)----Material Core----Material Down (Right)-------
# 1 2 1
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Waveguide Source sample
#For Waveguide source, direction == +1(X); -1(-X); +2(+Y); -2(-Y);
#---Source Type------Source frequency (a/lambda)---Pulse Width (Delta_w)-
3 0.33 0.05
#----direction---XS-----YS-----Waveguide Width---Mode Number-----------
1 1.00 4.20 0.60 1
#---Material Up (Left)----Material Core----Material Down (Right)-------
1 2 1
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
########################################################################
########################################################################
#detectors definition
#-----------------------------------------------------------------------
# For detector type: ==1 point detector
# ==2 line detector
# direction == +1(X); -1(-X); +2(+Y); -2(-Y);
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#FT frequency range and points in between
#-W_min---------W_max-------NF---
0.30 0.36 301
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#----Number of Detector------------
4
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Detector No. 1, a Line detector, right input
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
2 0 4000
#----direction-----Xc-------Yc---------Length-------
1 1.5 4.2 1.20
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Detector No. 2, a Line detector, right input
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
2 0 3000000
#----direction-----Xc-------Yc---------Length-------
1 19.0 4.2 1.20
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Detector No. 3, a Line detector, right input
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
2 0 3000000
#----direction-----Xc-------Yc---------Length-------
1 2.0 15.8 1.20
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Detector No. 4, a Line detector, right input
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
2 0 3000000
#----direction-----Xc-------Yc---------Length-------
1 19.0 15.8 1.20
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Detector No. 5, a Line detector, right input
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
# 2 0 4400
#----direction-----Xc-------Yc---------Length-------
# 2 14.7 10.0 1.20
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#Point Detector Example
#---Detector Type-----Starting Time Steps-----Ending Time Steps--------
# 1 0 500000
#-----Xc--------Yc-------
# 11.00 6.06218
########################################################################
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -