Macondo
Research, design, and product optimization of silicon optical devices, integrated photonic devices, optoelectronic devices, and micro-nano optical devices.

Python Script

GMPT, October 2024

Macondo provides a built-in script editor and script command functionality based on the Python language.


  • Through script commands, the following simulation project configuration functions can be executed:
    • Configuration of projects and simulations
    • Settings for material library materials, material models, and instantiated materials
    • Creation of basic geometric structures and import of GDSII files
    • Configuration of solvers, meshes and submeshes, boundary conditions, and other simulation settings
    • Excitation settings for mode sources, plane wave sources, Gaussian beam sources, and dipole sources
    • Settings for refractive index monitors, Fourier field distribution monitors, Port S-parameter monitors, and time monitors

  • Through script commands, a quick preview of the cross-sectional waveguide mode and effective refractive index can be achieved:

  • Through script commands and calling relevant Python libraries, the function of loop scanning calculations can be achieved:

  • Through script commands, data export and processing can be achieved

  • Through script commands, the optimization design of complex structures can be achieved