Ansys Learning Forum Maintenance

NOTICE: We will be performing backend maintenance of our Learning Forum from April 5 to April 12, 2021. The result will be a new infrastructure but with little impact to user experience and design. Currently the forum is accessible in read-only mode as we complete our final migration. Thank you for your patience. For urgent issues please visit HERE.


How to calculate aeff for fundamental mode only for given range of wavelength — Ansys Learning Forum

How to calculate aeff for fundamental mode only for given range of wavelength

arsh1499arsh1499 Member Posts: 1

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

  • gsungsun Ansys Employee Posts: 227

    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.

Sign In or Register to comment.