Ejemplo n.º 1
0
stack.remove_metal_layer_by_name('ME3')
stack.remove_metal_layer_by_name('ME4')
#stack.remove_metal_layer_by_name('ME5')
#stack.remove_metal_layer_by_name('ME6')

# Print the standardized stack to example_ME5ME6_std.pdf
stack.draw('example_ME5ME6_std', pages=3, single_page=True)

# Merge oxide layers to reduce the stack's complexity, decreasing simulation
# times
stack.simplify()

# Print the simplified stack to example_ME5ME6.pdf
stack.draw('example_ME5ME6', pages=3, single_page=True)

# Write out a Momentum subtrate definition file of the simplified stack
# write_momentum_substrate argument: filename (without extension), 
#                                    infinite ground plane
# NOTE: this might produce bad output when the stack has not been
#   simplified before!
stack.write_momentum_substrate('example_ME5ME6', True)

# Write out a Sonnet project that includes the simplified subtrate stack
# write_sonnet_technology argument: filename (without extension)
# NOTE: this might produce bad output when the stack has not been
#   simplified before!
stack.write_sonnet_technology('example_ME5ME6')

print("\nScript ran without errors. Press 'Download' to re-run the script \n"
      "and download the generated files.")