Is there a way to plot/export neffectives (for each mode) of all the cells at once?


#1

Is there a way to plot/export neffectives (for each mode) of all the cells at once?

I would like to analyze my device by looking at the effective indexes of my two modes along the propagation direction of my device. If I click on each cell, I can look at the effective indexes for my two modes. However, I haven’t discovered a way to access the effective indexes of all of my cells. Thanks!


#2

After you have run the simulation and emepropagate, you should be able to use these commands to access and plot the neff of the cell you want. If you would like to access all cells, you will probably need to make use of the for and num2str commands.

neff_cell_1=getresult("::model::EME::Cells::cell_1","neff");
plot(neff_cell_1.n,real(neff_cell_1.neff));