We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Electronics How to assign different materials to multiple objects at once in script Reply To: How to assign different materials to multiple objects at once in script

Berker Yilmaz
Subscriber

I do not have 1000+ different materials, I only have 2 different materials. But I want to parametrize each object for either assigning or not assigning a certain material to it, and use optimetrics to utilize parallel simulation, for an emag topology optimization.

I also realized even if I assign materials with a for loop, there is a bigger problem. Optimetrics is not good at handling the 1000+ parameter sweep. The simulation slows a lot, I assume due to reading a lot of the variables.

I am not sure if there is any other easier way to do it on pyaedt?