Ansys Learning Forum › Forums › Discuss Simulation › Photonics › How to add script to structure group in script › Reply To: How to add script to structure group in script
October 28, 2021 at 1:05 am
Guilin Sun
Ansys Employee
Usually you can either directly modify an existing structure group, or write new script in the master file. Seldom people amend the script in the structure every time you run the master file. While it seems easier using scripting, I personally prefer to directly use/modify the structure group, manually check the material fittings and also make sure the structure is what you expect. There are chances that some structure/settings are not complete and it might be difficult to find the issue. When you have hundreds of line, maintaining it can also be challenge.
Please refer some examples:
addstructuregroup - Script command
adduserprop - Script command
Structure Groups - Simulation object
Please refer some examples:
addstructuregroup - Script command
adduserprop - Script command
Structure Groups - Simulation object