Returns the complex coupling coefficient between two modes. The power coupling can be calculated with the overlap function, or by the following formula.
Power_Coupling = | coupling | 2
Reference: Allan W. Snyder and John D. Love, Optical Waveguide Theory. Chapman & Hall, London, England, 1983.
See the overlap function for more details about overlap and coupling calculations.
Note: coupling command is deprecated, consider using expand |
Syntax |
Description |
---|---|
out = coupling(mode2, mode1); |
|
out = coupling(mode2, mode1, x, y); |
Mode alignment can be adjusted before coupling is calculated.
|
Examples
This example shows how to use the overlap command to calculate the overlap and power coupling between two modes.
copydcard("mode1","test_mode1");
copydcard("mode2","test_mode2");
out = overlap("test_mode1","test_mode2");
?out(1); # overlap
?out(2); # power coupling
?coupling("test_mode1","test_mode2"); # the complex coupling coefficient
?abs(coupling("test_mode1","test_mode2"))^2; # same as out(2), the power coupling
See Also
List of commands , copydcard , findmodes , coupling , overlap , bestoverlap , propagate , expand , expand2