ansys / pymechanical

Pythonic interface to Ansys Mechanical ™
https://mechanical.docs.pyansys.com/
MIT License
38 stars 19 forks source link

Bug located in App.plot() #809

Closed dipinknair closed 4 months ago

dipinknair commented 4 months ago

🔍 Before submitting the issue

🐞 Description of the bug

Unable to plot geometry with example https://github.com/ansys/pymechanical-embedding-examples/blob/main/examples/basic/modal_acoustics_analysis.py

📝 Steps to reproduce

run the example replacing

ExtAPI.Graphics.Camera.SetFit()
ExtAPI.Graphics.ExportImage(
    os.path.join(cwd, "geometry.png"), image_export_format, settings_720p
)
display_image("geometry.png")

with app.plot()

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

24R2

🐍 Which Python version are you using?

3.10

📦 Installed packages

accessible-pygments==0.0.5
aiohttp==3.9.5
aiosignal==1.3.1
alabaster==0.7.16
ansys-api-mechanical==0.1.2
ansys-api-platform-instancemanagement==1.1.0
ansys-mechanical-core==0.11.1
ansys-mechanical-env==0.1.6
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc3
ansys-sphinx-theme==0.16.5
ansys-tools-path==0.6.0
anyio==4.4.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
astroid==3.2.2
asttokens==2.4.1
async-lru==2.0.4
attrs==23.2.0
Babel==2.15.0
beautifulsoup4==4.12.3
bleach==6.1.0
bokeh==3.4.2
certifi==2024.7.4
cffi==1.16.0
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
clr-loader==0.2.6
colorama==0.4.6
comm==0.2.2
contourpy==1.2.1
cycler==0.12.1
debugpy==1.8.2
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.8
docutils==0.21.2
executing==2.0.1
fastjsonschema==2.20.0
filelock==3.15.4
fonttools==4.53.1
fqdn==1.5.1
frozenlist==1.4.1
grpcio==1.64.1
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
identify==2.6.0
idna==3.7
imageio==2.34.1
imageio-ffmpeg==0.5.1
imagesize==1.4.1
importlib_metadata==8.0.0
iniconfig==2.0.0
ipycanvas==0.13.2
ipydatawidgets==4.3.5
ipyevents==2.0.2
ipykernel==6.29.5
ipython==8.26.0
ipython-genutils==0.2.0
ipyvtklink==0.2.3
ipywidgets==7.8.2
isoduration==20.11.0
jedi==0.19.1
Jinja2==3.1.4
json5==0.9.25
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter-sphinx==0.5.3
jupyter_client==8.6.2
jupyter_core==5.7.2
jupyter_server==2.14.1
jupyter_server_proxy==4.3.0
jupyter_server_terminals==0.5.3
jupyterlab==4.2.3
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.2
jupyterlab_widgets==1.1.8
kiwisolver==1.4.5
linkify-it-py==2.0.3
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.0
matplotlib-inline==0.1.7
mdit-py-plugins==0.4.1
mdurl==0.1.2
mistune==3.0.2
more-itertools==10.3.0
msgpack==1.0.8
multidict==6.0.5
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest-asyncio==1.6.0
nodeenv==1.9.1
notebook==7.2.1
notebook_shim==0.2.4
numpy==1.26.4
numpydoc==1.7.0
overrides==7.7.0
packaging==24.1
pandas==2.2.2
pandocfilters==1.5.1
panel==1.4.4
param==2.1.1
parso==0.8.4
pillow==10.4.0
platformdirs==4.2.2
plotly==5.22.0
pluggy==1.5.0
pooch==1.8.2
pre-commit==3.7.1
prometheus_client==0.20.0
prompt_toolkit==3.0.47
protobuf==5.27.2
psutil==6.0.0
pure-eval==0.2.2
pycparser==2.22
pydata-sphinx-theme==0.14.4
Pygments==2.18.0
pypandoc==1.13
pyparsing==3.1.2
pytest==8.2.2
pytest-sphinx==0.6.3
python-dateutil==2.9.0.post0
python-json-logger==2.0.7
pythreejs==2.4.2
pytz==2024.1
pyvista==0.43.9
pyviz_comms==3.0.2
pywin32==306
pywinpty==2.0.13
PyYAML==6.0.1
pyzmq==26.0.3
referencing==0.35.1
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.19.0
scooby==0.10.0
Send2Trash==1.8.3
simpervisor==1.0.0
six==1.16.0
sniffio==1.3.1
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.3.7
sphinx-autoapi==3.1.1
sphinx-autobuild==2024.4.16
sphinx-autodoc-typehints==2.1.1
sphinx-copybutton==0.5.2
sphinx-gallery==0.16.0
sphinx-jinja==2.0.2
sphinx-notfound-page==1.0.2
sphinx_design==0.6.0
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-htmlhelp==2.0.5
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-serializinghtml==1.1.10
sphinxcontrib-websupport==1.2.7
sphinxemoji==0.3.1
stack-data==0.6.3
starlette==0.37.2
tabulate==0.9.0
tenacity==8.5.0
terminado==0.18.1
tinycss2==1.3.0
tornado==6.4.1
tqdm==4.66.4
traitlets==5.14.3
traittypes==0.2.1
trame==3.6.3
trame-client==3.2.1
trame-server==3.0.3
trame-vtk==2.8.9
trame-vuetify==2.6.1
types-python-dateutil==2.9.0.20240316
typing_extensions==4.12.2
tzdata==2024.1
uc-micro-py==1.0.3
uri-template==1.3.0
urllib3==2.2.2
usd-core==24.3
uv==0.2.23
uvicorn==0.30.1
virtualenv==20.26.3
vtk==9.3.1
watchfiles==0.22.0
wcwidth==0.2.13
webcolors==24.6.0
webencodings==0.5.1
websocket-client==1.8.0
websockets==12.0
widgetsnbextension==3.6.7
wslink==2.1.1
xyzservices==2024.6.0
yarl==1.9.4
zipp==3.19.2
koubaa commented 4 months ago

one of the bodies is a line body, the pyvista converter assumes that all bodies are solid or shell.