ansys / ansys/pyfluent

Electric potential warnings not printed in interpreter

Open
#3,798 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

### 🔍 Before submitting the issue

- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment

### 🐞 Description of the bug

A Fluent GPU session with GUI enabled was launched via PyFluent. When an electric potential setting is entered, a warning is printed in the Fluent Python console, but not in the Python interpreter.

![Image](https://github.com/user-attachments/assets/5c9f7381-ffe3-44b1-99a9-64a1f87a39dd)

### 📝 Steps to reproduce

Run the following commands in Python:

```
import ansys.fluent.core as pyfluent
from ansys.fluent.core.examples.downloads import download_file
solver = pyfluent.launch_fluent(processor_count=4, gpu=True, ui_mode="gui")
case_name = download_file("Static_Mixer_main.cas.h5", "pyfluent/static_mixer")
solver.settings.file.read_mesh(file_name=case_name)

solver.settings.setup.models.echemistry.potential = True
```

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

2025R2

### 🐍 Which Python version are you using?

3.10

### 📦 Installed packages

```shell
absl-py==2.1.0
ansys-api-fluent==0.3.35
ansys-api-platform-instancemanagement==1.1.2
ansys-api-tools-filetransfer==0.1.1
ansys-fluent-core==0.29.0
ansys-fluent-visualization==0.18.0
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.1
ansys-units==0.3.5
anyio==4.8.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
astroid==3.3.8
asttokens==3.0.0
astunparse==1.6.3
async-lru==2.0.4
attrs==25.1.0
babel==2.17.0
bcrypt==4.3.0
beautifulsoup4==4.13.3
black==25.1.0
bleach==6.2.0
blinker==1.9.0
certifi==2025.1.31
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
comm==0.2.2
contourpy==1.3.1
cryptography==44.0.2
cycler==0.12.1
dash==2.18.2
dash-bootstrap-components==1.7.1
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
debugpy==1.8.12
decorator==5.2.1
defusedxml==0.7.1
dill==0.3.9
distlib==0.3.9
docker==7.1.0
et_xmlfile==2.0.0
exceptiongroup==1.2.2
executing==2.2.0
fastjsonschema==2.21.1
filelock==3.17.0
flake8==7.1.2
Flask==3.0.3
flatbuffers==25.2.10
fonttools==4.56.0
fqdn==1.5.1
gast==0.6.0
google-pasta==0.2.0
googleapis-common-protos==1.68.0
grpcio==1.70.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
h11==0.14.0
h5py==3.13.0
httpcore==1.0.7
httpx==0.28.1
identify==2.6.8
idna==3.10
imageio==2.37.0
importlib_metadata==8.6.1
iniconfig==2.0.0
ipykernel==6.29.5
ipython==8.33.0
isoduration==20.11.0
isort==6.0.1
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.5
joblib==1.4.2
json5==0.10.0
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter-events==0.12.0
jupyter-lsp==2.2.5
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server==2.15.0
jupyter_server_terminals==0.5.3
jupyterlab==4.3.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
kaleido==0.2.1
keras==3.8.0
kiwisolver==1.4.8
libclang==18.1.1
lxml==5.3.1
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.10.1
matplotlib-inline==0.1.7
mccabe==0.7.0
mdurl==0.1.2
mistune==3.1.2
ml-dtypes==0.4.1
mypy-extensions==1.0.0
namex==0.0.8
narwhals==1.28.0
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
nltk==3.9.1
nodeenv==1.9.1
notebook==7.3.2
notebook_shim==0.2.4
numpy==2.0.2
openpyxl==3.1.5
opt_einsum==3.4.0
optree==0.14.1
overrides==7.7.0
packaging==24.2
pandas==2.2.3
pandocfilters==1.5.1
paramiko==3.5.1
paramiko-expect==0.3.5
parso==0.8.4
pathspec==0.12.1
pillow==11.1.0
platformdirs==4.3.6
plotly==6.0.0
pluggy==1.5.0
pooch==1.8.2
pre_commit==4.1.0
prometheus_client==0.21.1
prompt_toolkit==3.0.50
protobuf==4.25.6
psutil==7.0.0
pure_eval==0.2.3
pyansys-tools-report==0.8.2
pycodestyle==2.12.1
pycparser==2.22
pyflakes==3.2.0
Pygments==2.19.1
pylint==3.3.4
PyNaCl==1.5.0
pyparsing==3.2.1
PySide6==6.8.2.1
PySide6_Addons==6.8.2.1
PySide6_Essentials==6.8.2.1
pytest==8.3.5
python-dateutil==2.9.0.post0
python-json-logger==3.2.1
python-pptx==1.0.2
pytz==2025.1
pyvista==0.44.2
pyvistaqt==0.11.2
pywin32==308
pywinpty==2.0.15
PyYAML==6.0.2
pyzmq==26.2.1
QtPy==2.4.3
referencing==0.36.2
regex==2024.11.6
requests==2.32.3
retrying==1.3.4
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.9.4
rpds-py==0.23.1
scikit-learn==1.6.1
scipy==1.15.2
scooby==0.10.0
seaborn==0.13.2
Send2Trash==1.8.3
shiboken6==6.8.2.1
six==1.17.0
sniffio==1.3.1
soupsieve==2.6
stack-data==0.6.3
tensorboard==2.18.0
tensorboard-data-server==0.7.2
tensorflow==2.18.0
tensorflow-io-gcs-filesystem==0.31.0
tensorflow_intel==2.18.0
termcolor==2.5.0
terminado==0.18.1
threadpoolctl==3.5.0
tinycss2==1.4.0
tomli==2.2.1
tomlkit==0.13.2
tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
types-python-dateutil==2.9.0.20241206
typing_extensions==4.12.2
tzdata==2025.1
uri-template==1.3.0
urllib3==2.3.0
virtualenv==20.29.2
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.0.6
wrapt==1.17.2
xgboost==2.1.4
XlsxWriter==3.2.2
zipp==3.21.0
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with launch_fluent(processor_count=4, gpu=True, ui_mode="gui"), then set solver.settings.setup.models.echemistry.potential = True after reading Static_Mixer_main.cas.h5. Trace how the warning reaches the Fluent Python console versus the Python interpreter. Done means the electric-potential warning is also printed in the interpreter for this workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.