Photonics Research Group Home
Ghent University
 IMEC
intern

 

Contents: Table of Contents   Back: Warnings Up: More Forward: reference guide   Index: Index

3.2 Show Grating

If you build a grating that is so complex you forgot how it looks like, or you have no confidence that the interface understand what you really want to build, you can check the grating on two levels.

On python level itself, by typing the name of the stack, e.g. for the 2D grating in example3, where "device" is the name of the stack type:
 
print device
To see the stack which the code uses, (so look at C++ level) type
 
print device.showgrating()
It's also possible to have an overview of the whole field and diffraction efficience.
 
print device.field()
print device.diffr_eff()



This document was generated by Lieven Vanholme on June, 10 2003 using texi2html.