Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to display Pathlines #153

Closed
2 tasks done
egravenh opened this issue Nov 15, 2022 · 0 comments · Fixed by #169
Closed
2 tasks done

Unable to display Pathlines #153

egravenh opened this issue Nov 15, 2022 · 0 comments · Fixed by #169
Labels
bug Something isn't working

Comments

@egravenh
Copy link
Contributor

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

pathlines.display() fails with the following error:

RuntimeError: Error while requesting data from server.(('type', 'pathlines-field'), ('field', 'velocity-magnitude'))

📝 Steps to reproduce

Run the following in a python interpreter:

import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples

from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics

set_config(blocking=True, set_view_on_display="isometric")

import_case = examples.download_file(
filename="exhaust_system.cas.h5", directory="pyfluent/exhaust_system"
)
import_data = examples.download_file(
filename="exhaust_system.dat.h5", directory="pyfluent/exhaust_system"
)
solver_session = pyfluent.launch_fluent(
precision="double", processor_count=2, start_transcript=False, mode="solver"
)
solver_session.tui.file.read_case(import_case)
solver_session.tui.file.read_data(import_data)
graphics = Graphics(session=solver_session)
pathlines = graphics.Pathlines["pathlines"]
pathlines.field = "velocity-magnitude"
pathlines.surfaces_list = ["inlet", "inlet1", "inlet2"]
pathlines.display()

💻 Which operating system are you using?

Windows

🐍 Which Python version are you using?

3.10

📦 Installed packages

aiohttp==3.8.1
aiosignal==1.2.0
alabaster==0.7.12
ansys-api-fluent==0.3.5
ansys-api-platform-instancemanagement==1.0.0b3
-e git+https://github.com/pyansys/pyfluent.git@cfa99532ffde47be2178456e5136b319eec295b3#egg=ansys_fluent_core
-e git+https://github.com/pyansys/pyfluent-parametric.git@4a1a356381f7472c092d8817f8f1f9dac4e72ac4#egg=ansys_fluent_parametric
-e git+https://github.com/pyansys/pyfluent-visualization.git@8c780c4a4824d13f3b180074d8d73d6c62f34bfc#egg=ansys_fluent_visualization
ansys-platform-instancemanagement==1.0.2
appdirs==1.4.4
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
asttokens==2.0.5
async-timeout==4.0.2
atomicwrites==1.4.0
attrs==21.4.0
Babel==2.10.3
backcall==0.2.0
beautifulsoup4==4.11.1
black==22.3.0
bleach==5.0.1
certifi==2022.6.15
cffi==1.15.1
cfgv==3.3.1
charset-normalizer==2.0.12
click==8.1.3
colorama==0.4.5
cycler==0.11.0
debugpy==1.6.1
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.4
docformatter==1.4
docker==5.0.3
docutils==0.17.1
entrypoints==0.4
executing==0.8.3
fastjsonschema==2.15.3
filelock==3.7.1
fonttools==4.34.3
frozenlist==1.3.0
googleapis-common-protos==1.56.4
grpcio==1.50.0
h5py==3.7.0
identify==2.5.1
idna==3.3
imageio==2.19.3
imagesize==1.3.0
importlib-metadata==5.0.0
iniconfig==1.1.1
ipycanvas==0.12.0
ipyevents==2.0.1
ipykernel==6.15.0
ipython==8.4.0
ipython-genutils==0.2.0
ipyvtklink==0.2.2
ipywidgets==7.7.1
isort==5.10.1
jedi==0.18.1
Jinja2==3.1.2
jsonschema==4.6.1
jupyter-client==7.3.4
jupyter-core==4.10.0
jupyterlab-pygments==0.2.2
jupyterlab-widgets==1.1.1
kiwisolver==1.4.3
MarkupSafe==2.1.1
matplotlib==3.5.2
matplotlib-inline==0.1.3
mistune==0.8.4
multidict==6.0.2
mypy-extensions==0.4.3
nbclient==0.6.6
nbconvert==6.5.0
nbformat==5.4.0
nest-asyncio==1.5.5
nodeenv==1.6.0
notebook==6.4.12
numpy==1.23.4
packaging==21.3
pandas==1.5.1
pandocfilters==1.5.0
parso==0.8.3
pathspec==0.9.0
pickleshare==0.7.5
Pillow==9.2.0
Pint==0.19.2
platformdirs==2.5.2
pluggy==1.0.0
pre-commit==2.19.0
prometheus-client==0.14.1
prompt-toolkit==3.0.30
protobuf==3.20.3
protoc-gen-swagger==0.1.0
psutil==5.9.1
pure-eval==0.2.2
py==1.11.0
pyansys-sphinx-theme==0.3.1
pycparser==2.21
pydata-sphinx-theme==0.8.1
Pygments==2.12.0
pyparsing==3.0.9
pyrsistent==0.18.1
PySide6==6.3.1
PySide6-Addons==6.3.1
PySide6-Essentials==6.3.1
pytest==7.1.2
pytest-mock==3.8.2
python-dateutil==2.8.2
pytz==2022.6
pyvista==0.34.2
pyvistaqt==0.9.0
pywin32==227
pywinpty==2.0.6
PyYAML==6.0
pyzmq==23.2.0
QtPy==2.1.0
requests==2.28.0
scooby==0.5.12
Send2Trash==1.8.0
shiboken6==6.3.1
six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.3.2.post1
Sphinx==4.5.0
sphinx-gallery==0.10.1
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
stack-data==0.3.0
terminado==0.15.0
tinycss2==1.1.1
toml==0.10.2
tomli==2.0.1
tornado==6.2
traitlets==5.3.0
typing_extensions==4.2.0
untokenize==0.1.1
urllib3==1.26.9
virtualenv==20.14.1
vtk==9.1.0
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.3.3
widgetsnbextension==3.6.1
wslink==1.6.6
yarl==1.7.2
zipp==3.10.0
@egravenh egravenh added the bug Something isn't working label Nov 15, 2022
@ajain-work ajain-work linked a pull request Dec 15, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant