Repository navigation
Guidance for setting up PyFluent (ansys-fluent-core) in an air-gapped corporate Windows environment (Ansys 2024 R2) #5433
Replies: 1 comment 1 reply
|
I would separate package delivery from the Fluent connection. A Python process and Fluent on the same Windows workstation can communicate locally without a cross-machine Python connection. That still needs local gRPC traffic to be permitted and Fluent's existing licensing to work. First check the Fluent service pack, not just For the package side, use a connected Windows staging environment with the same Python version and architecture as the offline machine. For example, with approved 64-bit Python 3.11 and an approved PyFluent pin, build a wheelhouse there. py -3.11 -m venv build-env
.\build-env\Scripts\python.exe -m pip download --only-binary=:all: --dest wheelhouse "ansys-fluent-core==0.42.1"Transfer the entire wheelhouse through your normal approval process, then install into a dedicated environment on the workstation. py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install --no-index --find-links=.\wheelhouse "ansys-fluent-core==0.42.1"
.\.venv\Scripts\python.exe -m pip checkPinning only Do not assume a Linux I did not find import ansys.fluent.core as pyfluent
session = pyfluent.connect_to_fluent(
server_info_file_name="server.txt",
cleanup_on_exit=True,
start_watchdog=False,
)
try:
print(session.get_fluent_version())
# Run the automation here using local input files.
finally:
session.exit()This example intentionally closes Fluent, so use it with a dedicated automation session. It disables PyFluent's separate watchdog here to avoid an extra helper process. That trades away the watchdog's protection if Python crashes or is killed before reaching PyFluent 0.42.1 declares Python 3.10 through 3.14 support. This pin is an example, not a requirement to use the newest client. I inspected the packaging and documented connection path, but have not installed this on Windows or run it against a licensed v242 server. If adding even these approved dependencies is prohibited, a Fluent journal/TUI workflow is the fallback to discuss with IT. |
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
I am looking to use PyFluent to automate a workflow with Ansys Fluent 2024 R2 (v242) on a corporate Windows workstation, but I am running into challenges due to our environment constraints.
Our compute node is completely air-gapped (no outbound internet access, blocking public PyPI and standard pip install), and direct cross-machine network connections are restricted by corporate firewalls.
Could you advise on the recommended best practices or workflows for:
Offline Installation: What is the preferred method to install ansys-fluent-core and its required dependencies without internet access? (e.g., using pre-downloaded .whl files or local mirrors).
Local Execution: What is the best architecture for running a local Python script against a local gRPC server instance (-sgrpc) in a locked-down enterprise setup where external package additions are restricted?
Any guidance or examples from others who have deployed PyFluent in an enterprise air-gapped setting would be greatly appreciated.
Thank you!
Carlos
All reactions