Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Grating projections


We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns the total number of supported grating numbers.


Supported Product: FDTD, MODE




out = gratingordercount( "monitorname", f, index, direction);

Returns the total number of supported grating orders. Same arguments as grating script command.



This example calculates power to each order only if grating orders are supported.

mname="T";       # monitor name


if(gratingordercount > 0){

 N=gratingn(mname);   # grating order numbers


 u1=gratingu1(mname);  # grating unit vectors (can be converted to theta,phi)


 G=grating(mname);   # power to each order (fraction of transmitted power)



See Also

Grating projections, grating, gratingn, gratingm

Copyright Lumerical Inc. | Privacy | Site Map