Guilin Sun
Ansys Employee

A1: Unfortunately FDE cannot output the refractive index profile. You may file a feature request by referring this post: 

New Feature vote:   Vote new features, and file your feature request

A2: you can either directly calcualte the integration by specifying the region in GUI:

or you can use script:

x1=.1e06;

x2=.5e-6;

y1=-2e-6;

y2=1e-6;

You specify the coordinates of the region.

setanalysis("integration shape","rectangular");

setanalysis("y1",y1);setanalysis("y2",y2);

setanalysis("x1",x1);setanalysis("x2",x2);

area=getanalysis("fraction integrated");

 

You can do a loop or two region integration to get the ratio.