www.gusucode.com > FDTD计算二维光子带隙的程序 > FDTD计算二维光子带隙的程序/247787/Go.m
function Go %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Electromagnetic Finite-Difference Time-Domain % % Version 1.20, Release 1 % % % % (C) Copyright 2005 % % Sharif University of Technology % % School of Electrical Engineering % % All Rights Reserved % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% global BoundaryType KappaX KappaY if BoundaryType==0 | BoundaryType==6 fprintf('\nComputing the field evolution via FDTD\n'); KappaX=0; KappaY=0; RunFDTD elseif BoundaryType==1 fprintf('\nComputing the bandstructure via FDTD\n'); BandStructure elseif BoundaryType==2 | BoundaryType==3 | BoundaryType==4 | BoundaryType==5 fprintf('\nComputing the waveguide dispersion via FDTD\n'); BandStructure end if BoundaryType>=1 & BoundaryType<=5 fprintf('\nNormal termination'); fprintf('\nRun emplot to generate the dispersion\n'); end