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
Based on my limited knowledge on Pyhon assisted simulation, as you mentioned, it allows to have material name. However in the screenshot 3, it is this script
float(base_epsilon) fails, as it tried to convert "Si (Silicon) - Palik" to float value. "Si (Silicon) - Palik" is string which can only be assigned to material property to an object.