ansys/pyfluent-examples

Bug in Ablation example

raph-luc opened this issue ยท 1 comments

๐Ÿ” Before submitting the issue

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

๐Ÿž Description of the bug

This is the output image produce by the example, it does not look correct to me:
image

Also getting the messages below. Seems to potentially be due to updated TUI in newer Fluent versions, and I guess the commands in the example used older Fluent versions, however even fixing these (by using default options in Fluent v231) does not change the results.

'yes' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'no' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'no' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'yes' unknown -- enter choice again.
'no' unknown -- enter choice again.
'yes' unknown -- enter choice again.

Also get some error messages on Fluent (though this example does not run any iterations and uses an existing dat file):

absolute pressure limited to 1.000000e+00 in 48732 cells on zone 189 

 turbulent viscosity limited to viscosity ratio of 1.000000e+05 in 48732 cells 

 turbulent viscosity limited to viscosity ratio of 1.000000e+05 in 48732 cells

I can fix the TUI commands so that the unknown -- enter choice again errors stop, but that doesn't change anything. Something else seems to be wrong.

I would guess the absolute pressure limitation is what is causing this, but not sure why this is happening (edit: never mind, changing the limits does not help). Need help figuring this one out.

๐Ÿ“ Steps to reproduce

Run examples/Ablation-tutorial/ablation.py

๐Ÿ’ป Which operating system are you using?

Windows

๐Ÿ“€ Which ANSYS version are you using?

v231. Edit: Tested with Fluent v222 and it doesn't work due to missing API settings, and my Fluent v232 installation seems to be missing "hsf" libraries.

๐Ÿ Which Python version are you using?

3.10

๐Ÿ“ฆ Installed packages

Installed packages
ansys-api-fluent==0.3.12
ansys-api-platform-instancemanagement==1.0.0b3
-e git+https://github.com/pyansys/pyfluent.git@683c8c1fd6bda7dad5cdf5b3409923cd3d0cfc02#egg=ansys_fluent_core
-e git+https://github.com/pyansys/pyfluent-parametric.git@c1b3e230b26b1e627b0ba8ba5bf1500533900765#egg=ansys_fluent_parametric
-e git+https://github.com/pyansys/pyfluent-visualization.git@235efc64c6263149db2288deb245f915fc9d0ec2#egg=ansys_fluent_visualization
ansys-platform-instancemanagement==1.1.1
appdirs==1.4.4
certifi==2023.5.7
charset-normalizer==3.1.0
contourpy==1.0.7
cycler==0.11.0
fonttools==4.39.4
googleapis-common-protos==1.59.0
grpcio==1.54.0
h5py==3.8.0
idna==3.4
importlib-metadata==6.6.0
kiwisolver==1.4.4
lxml==4.9.2
matplotlib==3.7.1
numpy==1.24.3
packaging==23.1
pandas==2.0.1
Pillow==9.5.0
platformdirs==3.5.0
pooch==1.7.0
protobuf==3.20.3
protoc-gen-swagger==0.1.0
pyparsing==3.0.9
PySide6==6.5.0
PySide6-Addons==6.5.0
PySide6-Essentials==6.5.0
python-dateutil==2.8.2
pytz==2023.3
pyvista==0.39.0
pyvistaqt==0.10.0
PyYAML==6.0
QtPy==2.3.1
requests==2.30.0
scooby==0.7.2
shiboken6==6.5.0
six==1.16.0
tzdata==2023.3
urllib3==2.0.2
vtk==9.2.6
zipp==3.15.0

@rploconnor can you help me figure this one out? does this example not work with more recent fluent versions?

Opening the dat file in CFD-Post directly seems to work fine:
image
Not sure what is going on

Loading the dat file inside Fluent directly also works fine:
image

Also, can we perhaps make this example run at least a few iterations? I think the example would be more useful then. It currently immediately diverges if you try running any iterations at all.