# scriptfile: spot_size_converter.lsf # This script runs the emesweep and plot the s parameter run; # set propagation sweep settings setemeanalysis("propagation sweep",1); setemeanalysis("parameter","group span 2"); setemeanalysis("start",20e-6); setemeanalysis("stop",200e-6); setemeanalysis("number of points",201); # run propagation sweep tool emesweep; # get propagation sweep result S = getemesweep('S'); plot(S.group_span_2, abs(S.s21)^2);