Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Grating projections

gratingordercount

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

 

Syntax

Description

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

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

 

Example

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

 M=gratingm(mname);

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

 u2=gratingu2(mname);

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

}

 

See Also

Grating projections, grating, gratingn, gratingm

Copyright Lumerical Inc. | Privacy | Site Map