SimulationGrating
The SimulationGrating class can be initiated in Lua script by
s = SimulationGrating.new()
Note
The following functions are added and specific to SimulationGrating
object.
SetLattice(p1)
-
Arguments:
- p1: [double], the periodicity in direction in SI unit
-
Output: None
SetLayerPatternGrating(layer name, material name, center, width)
-
Arguments:
- layer name: [string], the layer that this grating will be embedded. Such layer should already exist in the simulation, otherwise an error message will be printed out.
- material name: [string], the material used as the grating. Such material should already exist in the simulation, otherwise an error message will be printed out.
- center: [double], the center of the grating in SI unit.
- width: [double], the width of the grating in SI unit.
-
Output: None