Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
mrf6166 opened this issue May 9, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@mrf6166
Copy link

mrf6166 commented May 9, 2024

馃攳 Before submitting the issue

  • I have searched among the existing issues
  • 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

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
@mrf6166 mrf6166 added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants