Open SteffenSee92 opened 3 months ago
@SteffenSee92 @kmahajan-cadfem sorry for the delay I just came back at the office. I would recommend to avoid using the Siwave ironpython API for several reasons. This API is limited and Ansys development is recommended using EDB based workflow. I would define ready to solve project with simulation setup, probes.... everything is available in PyEDB (if something is missing please fill an Issue in GitHub). Once the EDB saved you can simply call Aedt line submission with passing the EDB as argument, this will automaticity creates the Aedt file. Once it is solved you can open the project with PyAEDT and access all post processing quantities. I think this would be the easiest way. If you want to use Siwave API you can access from Siwave class:
from pyaedt.siwave import Siwave siwave = Siwave(specified_version=None) #optional argument oDoc = siwave.oproject oDoc.ScrImportEDB()
@svandenb-dev Sorry for my late reply, I was also out of office a few days... The reason, why I wanted to keep this in SIwave is, that the simulation types that I need here (Induced Voltage Simulation and "Frequency Sweep", that solves for the voltage distribution between planes) are only available here and not directly in HFSS 3D Layout (AEDT). The simulation setups and starting work fine via scripting, using the ironpython API. But in that ironpython API, as far as I can see, there is no way to access the results by scripting for these two simulation types, neither by ironpython nor by pyAEDT/pyEDB. But maybe, I simply oversee the corresponding methods in the ironpython API. Could you give me any hint, how to get simulation results from this kind of simulations, which may not be available in AEDT? Thanks, best regards
@SteffenSee92 This is currently impossible since we need to generate the *.ivswp file which are generated when exporting al curves from UI, and there are no API in Siwave. I submitted an enhancement request to Siwave developers. I am sorry for this.
Discussed in https://github.com/ansys/pyedb/discussions/705