Open kruglovIFX opened 1 month ago
Error occurs when running the following example from Ansys: https://aedt.docs.pyansys.com/version/stable/examples/01-HFSS3DLayout/Dcir_in_3DLayout.html
Error occurs when running the line appedb.siwave.add_siwave_dc_analysis(name="my_setup")
appedb.siwave.add_siwave_dc_analysis(name="my_setup")
Error message:
In [7]: appedb.siwave.add_siwave_dc_analysis(name="my_setup") PyAEDT ERROR: ATTRIBUTE ERROR on create_siwave_dc_setup PyAEDT ERROR: RaptorX PyAEDT ERROR: File "/opt/ansysem_eval/pyansys/py310/pyaedt/0.9-03/lib/python3.10/site-packages/pyedb/dotnet/edb_core/siwave.py", line 914, in add_siwave_dc_analysis PyAEDT ERROR: setup = self._pedb.create_siwave_dc_setup(name) PyAEDT ERROR: File "/opt/ansysem_eval/pyansys/py310/pyaedt/0.9-03/lib/python3.10/site-packages/pyedb/dotnet/edb.py", line 3741, in create_siwave_dc_setup PyAEDT ERROR: Method arguments: PyAEDT ERROR: name = my_setup PyAEDT ERROR: Check Online documentation on: https://edb.docs.pyansys.com/version/stable/search.html?q=create_siwave_dc_setup Out[7]: False
Run the following code:
import os import pyaedt local_path = '<path_to_edb>/edb/Galileo.aedb' appedb = pyaedt.Edb(local_path) ##################################################################################### # Create pin group on VRM positive pins gnd_name = "GND" appedb.siwave.create_pin_group_on_net( reference_designator="U3A1", net_name="BST_V3P3_S5", group_name="U3A1-BST_V3P3_S5") ##################################################################################### # Create pin group on VRM negative pins appedb.siwave.create_pin_group_on_net( reference_designator="U3A1", net_name="GND", group_name="U3A1-GND") ##################################################################################### # Create voltage source between VRM positive and negative pin groups appedb.siwave.create_voltage_source_on_pin_group( pos_pin_group_name="U3A1-BST_V3P3_S5", neg_pin_group_name="U3A1-GND", magnitude=3.3, name="U3A1-BST_V3P3_S5" ) ##################################################################################### # Create pin group on sink component positive pins appedb.siwave.create_pin_group_on_net( reference_designator="U2A5", net_name="V3P3_S5", group_name="U2A5-V3P3_S5") ##################################################################################### # Create pin group on sink component negative pins appedb.siwave.create_pin_group_on_net( reference_designator="U2A5", net_name="GND", group_name="U2A5-GND") # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Create place current source between sink component positive and negative pin groups appedb.siwave.create_current_source_on_pin_group( pos_pin_group_name="U2A5-V3P3_S5", neg_pin_group_name="U2A5-GND", magnitude=1, name="U2A5-V3P3_S5" ) ############################################################################### # Add SIwave DCIR analysis appedb.siwave.add_siwave_dc_analysis(name="my_setup")
Linux
2023.2.1 and 2024.1.1 pyaedt 0.9.3
3.10
alabaster==0.7.12 annotated-types==0.6.0 ansys-pythonnet==3.1.0rc3 arrow==1.2.3 astroid==2.14.2 asttokens==2.0.5 atomicwrites==1.4.0 attrs==23.1.0 autopep8==2.0.4 Babel==2.11.0 beautifulsoup4==4.12.2 binaryornot==0.4.4 black==24.3.0 bleach==4.1.0 Brotli==1.0.9 certifi==2024.2.2 cffi==1.16.0 chardet==4.0.0 charset-normalizer==2.0.4 click==8.1.7 click-plugins==1.1.1 cligj==0.7.2 cloudpickle==2.2.1 clr-loader==0.2.6 colorama==0.4.6 comm==0.2.1 contourpy==1.2.1 cookiecutter==2.6.0 cryptography==42.0.5 cycler==0.12.1 debugpy==1.6.7 decorator==5.1.1 defusedxml==0.7.1 diff-match-patch==20200713 dill==0.3.8 distro==1.9.0 docstring-to-markdown==0.11 docutils==0.18.1 dotnetcore2==3.1.23 et-xmlfile==1.1.0 exceptiongroup==1.2.0 executing==0.8.3 fastjsonschema==2.16.2 fiona==1.9.6 flake8==7.0.0 fonttools==4.51.0 fpdf2==2.7.8 geopandas==0.14.4 idna==3.7 imageio==2.34.1 imagesize==1.4.1 importlib-metadata==7.0.1 inflection==0.5.1 intervaltree==3.1.0 ipykernel==6.28.0 ipython==8.20.0 isort==5.9.3 jaraco.classes==3.2.1 jedi==0.18.1 jeepney==0.7.1 jellyfish==1.0.1 Jinja2==3.1.3 jsonschema==4.19.2 jsonschema-specifications==2023.12.1 jupyter_client==8.6.0 jupyter_core==5.5.0 jupyterlab-pygments==0.2.2 keyring==24.3.1 kiwisolver==1.4.5 lazy-object-proxy==1.10.0 markdown-it-py==2.2.0 MarkupSafe==2.1.3 matplotlib==3.8.4 matplotlib-inline==0.1.6 mccabe==0.7.0 mdurl==0.1.0 mistune==2.0.4 more-itertools==10.1.0 mypy-extensions==1.0.0 nbclient==0.8.0 nbconvert==7.10.0 nbformat==5.9.2 nest-asyncio==1.6.0 networkx==3.3 numpy==1.26.4 numpydoc==1.5.0 openpyxl==3.1.2 osmnx==1.9.3 packaging==23.2 pandas==2.2.2 pandocfilters==1.5.0 parso==0.8.3 pathspec==0.10.3 pexpect==4.8.0 pickleshare==0.7.5 pillow==10.3.0 pip==23.3.1 platformdirs==3.10.0 pluggy==1.0.0 plumbum==1.8.3 ply==3.11 pooch==1.8.1 prompt-toolkit==3.0.43 psutil==5.9.0 ptyprocess==0.7.0 pure-eval==0.2.2 pyaedt==0.9.3 pycodestyle==2.11.1 pycparser==2.21 pydantic==2.7.1 pydantic_core==2.18.2 pydocstyle==6.3.0 pyedb==0.10.0 pyflakes==3.2.0 Pygments==2.15.1 pylint==2.16.2 pylint-venv==3.0.3 pyls-spyder==0.4.0 pyparsing==3.1.2 pyproj==3.6.1 PyQt5==5.15.10 PyQt5-sip==12.13.0 PyQtWebEngine==5.15.6 PySocks==1.7.1 python-dateutil==2.8.2 python-lsp-black==2.0.0 python-lsp-jsonrpc==1.1.2 python-lsp-server==1.10.0 python-slugify==5.0.2 pytomlpp==1.0.13 pytoolconfig==1.2.6 pytz==2024.1 pyvista==0.43.7 pyxdg==0.27 PyYAML==6.0.1 pyzmq==25.1.2 QDarkStyle==3.2.3 qstylizer==0.2.2 QtAwesome==1.2.2 qtconsole==5.5.1 QtPy==2.4.1 referencing==0.30.2 requests==2.31.0 rich==13.3.5 rope==1.12.0 rpds-py==0.10.6 rpyc==6.0.0 Rtree==1.0.1 scikit-rf==1.0.0 scipy==1.13.0 scooby==0.10.0 SecretStorage==3.3.1 setuptools==69.5.1 shapely==2.0.4 sip==6.7.12 six==1.16.0 snowballstemmer==2.2.0 sortedcontainers==2.4.0 soupsieve==2.5 Sphinx==5.0.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 spyder==5.5.1 spyder-kernels==2.4.4 SRTM.py==0.3.7 stack-data==0.2.0 text-unidecode==1.3 textdistance==4.2.1 three-merge==0.1.1 tinycss2==1.2.1 toml==0.10.2 tomli==2.0.1 tomlkit==0.11.1 tornado==6.3.3 traitlets==5.14.3 typing_extensions==4.11.0 tzdata==2024.1 ujson==5.4.0 Unidecode==1.2.0 urllib3==2.2.1 utm==0.7.0 vtk==9.2.6 watchdog==2.1.6 wcwidth==0.2.13 webencodings==0.5.1 whatthepatch==1.0.2 wheel==0.43.0 wrapt==1.14.1 wurlitzer==3.0.2 yapf==0.40.2 zipp==3.17.0
🔍 Before submitting the issue
🐞 Description of the bug
Error occurs when running the following example from Ansys: https://aedt.docs.pyansys.com/version/stable/examples/01-HFSS3DLayout/Dcir_in_3DLayout.html
Error occurs when running the line
appedb.siwave.add_siwave_dc_analysis(name="my_setup")
Error message:
📝 Steps to reproduce
Run the following code:
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
2023.2.1 and 2024.1.1 pyaedt 0.9.3
🐍 Which Python version are you using?
3.10
📦 Installed packages