The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

Ansys Learning Forum Forums Discuss Simulation Photonics How to input material instead of permittivity in polygon python script Reply To: How to input material instead of permittivity in polygon python script

Guilin Sun
Ansys Employee
In Fig 2 I did not find "polygon". Polygon is the geometry. For objects in FDTD, it has geometry and material, and one can assign material to a geometry. So you should be able to assign a material using script. For example, in the Y-branch example, the script can assign material to the rectangle.
However for lumopt, it is from 3rd party, and you will need to modify it in order to expand its functionality: https://github.com/chriskeraly/lumopt
Welcome to LumOpt: Easy Adjoint Optimization for Lumerical ...
you can find more information online and some tutorials.
It is out of the scope of this forum.