ansys / ansys/pyfluent

Bug located in PyFluent Slurm in Linux, a very slow response from Fluent

Open
#2,797 1 comment 0 reactions 1 assignee Claimed by @mkundu1 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

I am using PyFluent 0.20 with Fluent 24R1 and launching my code in Linux environment and facing an extreme slow down. apparently Fluent is not taking the resources I am sending to the launcher. My job is not taking external resources and is not traceable.

### 📝 Steps to reproduce

activate your virtual environment, then launch the Fluent through Pylauncher using slurm:
```
import ansys.fluent.core as pyfluent
import os
import math as math
import pprint
def launcher(ss, ver, prec, core1, mode1, gui, clean1):

a1="-pib -cfluesh"
slurm=pyfluent.launch_fluent(scheduler_options={"scheduler":"slurm", "scheduler_headnode":"cdc01dcv01",
"scheduler_queue":"cdc03gen","scheduler_account": "ace"} , additional_arguments=a1, product_version=ver,precision=prec,processor_count=core1,mode=mode1,show_gui=gui,cleanup_on_exit=clean1)

ss=slurm.result()

return ss

# critical variables
########################
ver='24.1.0'
mode1='solver'
dim1='3d'
gui=True
core1=2*32
prec='double'
clean1=False
o_press=250*6894.76 # KPa to psi
T_Fuel=310.93 # K
T_Oxid=755.37 # K
T_pdf_min=308 # K
del_t=5e-6 # [s]

# loading Fluent
# this section checks for server file existance.
# if server file exists, the session will connect to
# an existing Fluent session. otherwise, it will launch a new session.
# when you exit Fluent, make sure you erase the server file for future connection.
###############################
from launcher import *
server_file='server.txt'
server_file_check=os.path.isfile(server_file)

if not server_file_check:
s1=pyfluent.launch_fluent(product_version=ver, precision=prec, processor_count=core1,
mode=mode1,show_gui=gui,cleanup_on_exit=False,py=False)
s1.tui.server.write_or_reset_server_info('server.txt','no')
else:
s1=pyfluent.connect_to_fluent(server_info_file_name=server_file)
```

### 💻 Which operating system are you using?

Linux

### 📀 Which ANSYS version are you using?

Fluent 24R1

### 🐍 Which Python version are you using?

3.10

### 📦 Installed packages

```shell
about-time==4.2.1
alive-progress==3.1.5
ansys-api-fluent==0.3.22
ansys-api-platform-instancemanagement==1.0.0
ansys-fluent-core==0.20.0
ansys-platform-instancemanagement==1.1.2
ansys-units==0.3.2
beartype==0.17.2
certifi==2024.2.2
charset-normalizer==3.3.2
docker==6.1.3
grapheme==0.6.0
grpcio==1.62.2
grpcio-health-checking==1.48.2
idna==3.7
importlib_metadata==7.1.0
lxml==4.9.4
numpy==1.26.4
packaging==24.0
pandas==1.5.3
platformdirs==3.11.0
protobuf==3.20.3
psutil==5.9.8
python-dateutil==2.9.0.post0
pytz==2024.1
PyYAML==6.0.1
requests==2.31.0
six==1.16.0
urllib3==2.2.1
websocket-client==1.7.0
zipp==3.18.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.