-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
bugIssue, problem or error in PyFluentIssue, problem or error in PyFluent
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
according to;
| self.NO_GUI: ("gu",), |
the ui_mode
NO_GUI should represent fluent -gu mode
With the below commands in fluent pyconsole session in -gu mode, the mesh is displayed in a new window. However when running the same script in pyfluent standalone, no mesh is displayed;
graphics = solver.settings.results.graphics
solver.settings.results.graphics.mesh.create()
mesh_object = solver.settings.results.graphics.mesh.create(name="hot-inlet")
mesh_object.surfaces_list = ['hot-inlet']
mesh_object.options.nodes = True
mesh_object.options.edges = True
graphics.views.auto_scale()
graphics.views.restore_view(view_name="top")
mesh_object.display()
📝 Steps to reproduce
run the below in a script in pyfluent standalone, then fluent -gu mode
import ansys.fluent.core as pyfluent
import os
from ansys.fluent.core import UIMode
filename = "lightweight_case"
if not os.getenv("FLUENT_PROD_DIR"):
solver = pyfluent.launch_fluent(
mode="solver",
dimension=3,
precision="double",
processor_count=1,
ui_mode=UIMode.NO_GUI
)
from ansys.fluent.core import examples
import_file_name = examples.download_file(
"mixing_elbow.msh.h5",
"pyfluent/mixing_elbow",
save_path=os.getcwd(),
)
solver.settings.file.read_case_lightweight(file_name="mixing_elbow.msh.h5")
graphics = solver.settings.results.graphics
solver.settings.results.graphics.mesh.create()
mesh_object = solver.settings.results.graphics.mesh.create(name="hot-inlet")
mesh_object.surfaces_list = ['hot-inlet']
mesh_object.options.nodes = True
mesh_object.options.edges = True
graphics.views.auto_scale()
graphics.views.restore_view(view_name="top")
mesh_object.display()
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.10
📦 Installed packages
ansys-api-fluent==0.3.36
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.2
ansys-fluent-core==0.38.dev4
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.4.1
ansys-tools-filetransfer==0.2.1
ansys-units==0.10.1
certifi==2026.1.4
charset-normalizer==3.4.4
click==8.3.1
defusedxml==0.7.1
Deprecated==1.3.1
docker==7.1.0
googleapis-common-protos==1.72.0
grpcio==1.76.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
idna==3.11
importlib_metadata==8.7.1
joblib==1.5.3
nltk==3.9.2
numpy==2.2.6
pandas==2.3.3
platformdirs==4.5.1
protobuf==4.25.8
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.3
regex==2026.1.15
requests==2.32.5
scooby==0.11.0
six==1.17.0
tqdm==4.67.1
typing_extensions==4.15.0
tzdata==2025.3
urllib3==2.6.3
wrapt==2.0.1
zipp==3.23.0Metadata
Metadata
Assignees
Labels
bugIssue, problem or error in PyFluentIssue, problem or error in PyFluent