This function is similar to bestoverlap but it uses expand2 to get the necessary parameters, which can be useful when an evanescent mode is involved.
Syntax |
Description |
---|---|
out = bestoverlap2("test_mode"); |
Calculates the best overlap.
|
out = bestoverlap2("test_mode", x,y,z); |
Calculates the best overlap.
Mode alignment can be adjusted before best overlap is calculated.
The offset is applied to the test_mode. |
Examples
This example will calculate which of the current modes have the best overlap with the D-CARD named "test_mode". The effective index of the best mode is then returned.
mode_name = bestoverlap2("test_mode");
neff = getdata(mode_name,"neff");
See Also
List of commands , findmodes , coupling , overlap , propagate , expand , expand2 , Polarization converter example , bestoverlap