How to run python Script directly in SIwave

Answers
-
This is the link which has the example for creating current source https://edb.docs.pyansys.com/version/stable/user_guide/excitations/create_current_source.html
I need help in customizing it to my layout which i have setup and run it in SIwave Run script option to create current sources.0 -
Hi @Vijayakumar,
The example you are referring to is using PyEDB and that is the best way to automate layout workflow for Siwave and HFSS 3D Layout. EDB database is generic with layout Ansys product, you don't need to use SIwave API.
By building an EDB you can include pin group, sources, simulation setup... then directly call this EDB with siwave_ng.exe if you want to solve it, or import in SIwave UI that will be a ready to solve project.
PyEDB is a dependent package from PyAEDT, please refer to online documentation and GitHub to address your questions.
https://github.com/ansys/pyedb
https://edb.docs.pyansys.com/version/stable/0 -
Hi svandenb-dev,
Thanks for your response. I have few questions,
1. How to build the EDB with pin group, sources, simulation setup..?
2. How to load them back in SIwave to run DCIR analysis? Is it like importing the EDB file as we do normally and do validation check for it and proceed with analysis?If my understanding is correct, it can be done using HFSS. Do you have any process/example document on this with steps. If we have, please share the link here.
0 -
Hi @Vijayakumar,
If you are not comfortable with scripting python api you can use pyedb configuration file. Please check this example:
https://edb.docs.pyansys.com/version/stable/examples/use_configuration/pcb_dc_ir.html
The idea is to build a ready to solve EDB the import in Siwave as a regular EDB of even passing the EDB folder path along with siwave_ng.exe and -exec file (check Siwave doc for this). That will create non graphically a siw project and solve.
Siwave DCiR drop setup can't be done with HFSS 3D layout. My best advise to automate the process if to use the configuration file I mentioned above.
If you need more help you can open an issue or start a conversation on our github.
https://github.com/ansys/pyedb/issues0