How to calculate aeff for fundamental mode only for given range of wavelength
switchtolayout;
findmodes;
mode_name = bestoverlap("test_mode");
selectmode(mode_name);
setanalysis("track selected mode",mode_name);
H=getresult(mode_name,“H”);
H2=H.H2;
frequencysweep;
Hy=getdata("frequencysweep","Hy");
Hz=getdata("frequencysweep","Hz");
numerator = integrate(H2,2:3,Hy,Hz)^2;
denominator = integrate(H2^2,2:3,Hy,Hz);
modal_area = numerator/denominator;
modal_area = modal_area*1e12; # convert from units of m^2 to um^2
f=getdata("frequencysweep","f_D");
plot(c/f*1e6,modal_area,"Wavelength (um)", "Effective Mode Area");
Answers
Hi, "E/H" field is only for modes at the given frequency, and the frequency-sweep does not give this output. Please check all the outputs :
If you want to get the "Effective Mode Area" at each frequency, you will need to write your own loop to sweep frequency, get H fields from the given mode, and then calculate the "Effective Mode Area".
Please note that you will need to have the "test_mode" in the global deck in order to complete the bestoverlap.