!--------------------------------------------------------- ! Three Layer Example File. ! Comments are any text after an ! to the end of that line. !--------------------------------------------------------- ! CASE Statements indicate General Program Variables and Flags ! KASE Card - Specifies a name or identification tag with ! the file ! EPS1 Card - Convergence tolerance QZ during the root ! search: that is, |QZapprox-QZexact| is less ! than EPS1. Default value (1E-8) ! EPS2 Card - Convergence tolerance on f(QZ)=0 during the ! root search: that is, |f(QZapprox)-f(QZexact)| ! is less than EPS2. Default value (1E-8) ! GAMEPS Card - Confinement factor (Gamma) accuracy episilon ! (1E-3) ! QZMR Card - Initial guess of the real part of the square ! of WZR. ! QZMI Card - Initial guess of the imaginary part of the ! square of the ! PRINTF Card - Control for printing table of fields, ! intensities and phases ! INITGS Card - Initial guess generation routine flag (0) ! AUTOQW Card - Automatic quantum well width calculation ! flag (0) ! NFPLT Card - Set equal to 1, plot near field, 0 don't plot ! FFPLT Card - Set equal to 1, plot far field, 0 don't plot ! IL Card - Iteration limit - max. number for each search !--------------------------------------------------------- CASE KASE=hw2at0 CASE EPS1=1E-9 EPS2=1E-9 GAMEPS=1E-3 QZMR=12.857 QZMI=0.001 CASE PRINTF=0 INITGS=0 AUTOQW=0 NFPLT=0 FFPLT=0 IL=30 !--------------------------------------------------------- ! MODCON Statements: indicate Boundary Conditions ! KPOL Card - Polarization [KPOL<=1 TE, >=2 TM] ! APB1 Card - Principal branch specifications for wx-planes ! (0.25) ! APB2 Card - Principal branch specifications for wx-planes ! (0.25) !--------------------------------------------------------- MODCON KPOL=1 APB1=0.25 APB2=0.25 !--------------------------------------------------------- ! STRUCT Statements: indicate General Structure info ! WVL Card - Defines the wavelength !--------------------------------------------------------- STRUCT WVL=0.82 !--------------------------------------------------------- ! LAYER Statements: indicate specific structure (layer) ! information ! NREAL Value - Effective Index ! TL Value - Layer Thickness ! NLOSS Value - Loss !--------------------------------------------------------- LAYER NREAL=3.55 NLOSS=0.0 TL=10 LAYER NREAL=3.60 NLOSS=0.0 TL=0.0 LAYER NREAL=3.55 NLOSS=0.0 TL=10 !--------------------------------------------------------- ! OUTPUT Statements: indicate Output Flags ! PHMO Card - Output PHM (Phase Integral) in *.db ! GAMMAO Card - Output GAMMA in *.db ! WZRO Card - Output WZR (Eigenvalue root -real) in *.db ! WZIO Card - Output WZR ( " imaginary) in *.db ! QZRO Card - Output QZR (Real part WZR squared) in *.db ! QZIO Card - Output QZI (Imaginary part " ") in *.db ! FWHPNO Card - Output FWHPN (Full width half power Near F) ! FWHPFO Card - Output FWHPF ( " " Far Field) in *.db ! KMO Card - ?????? ! ITO Card - ?????? ! SPLTFL Card - (0) Single output file, (1) Multiple, (2)... ! MODOUT Card - Create *.ot file (output file) ! LYROUT Card - Create *.ly file (layer file) !--------------------------------------------------------- OUTPUT PHMO=1 GAMMAO=1 WZRO=1 WZIO=1 QZRO=1 QZIO=1 OUTPUT FWHPNO=0 FWHPFO=0 KMO=1 ITO=1 OUTPUT SPLTFL=1 MODOUT=1 LYROUT=1 !--------------------------------------------------------- ! GAMOUT Statements: indicate GAMMA calculation/output info ! LAYGAM Card - Defines which layers gamma will be calc. ! COMPGAM Card - (0) complex gammas not calc (1) calc ! GAMALL Card - (1) output the confinement factor (gamma) ! for all layers, (0) output gamma for layers ! specified by the LAYGAM card !--------------------------------------------------------- GAMOUT LAYGAM=2 COMPGAM=0 GAMALL=0 !--------------------------------------------------------- ! LOOPZ Statements: indicate high level looping (WVL,QZMR..) ! ILZ Value - What to loop on, 1 - WVL, 17-QZMR ! FINV Value - Stop value ! ZINC Value - Step value (neg. will decrement) !--------------------------------------------------------- LOOPZ1 ILZ='OFF' FINV=12.60 ZINC=-0.01 !--------------------------------------------------------- ! LOOPX Statements: indicate low level looping (NREAL,...) ! For looping on a parameter of 1 layer ! ILX Value - What to loop on, 0 - OFF, 'TL' - thickness ! FINV Value - Stop value ! XINC Value - Step value ! LAYCH Value - Defines which layer value looped on... !--------------------------------------------------------- LOOPX1 ILX=1 FINV=4.1 XINC=.1 LAYCH=2 !--------------------------------------------------------- ! END Statement indicates the end of the input file !--------------------------------------------------------- END