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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyFluent: Fluent requires users input to proceed when started in the -g mode (or "-gu -driver null" mode). #967

Closed
2 tasks done
ypatel-qa opened this issue Oct 3, 2022 · 4 comments · Fixed by #995
Closed
2 tasks done
Assignees
Labels
bug Issue, problem or error in PyMAPDL

Comments

@ypatel-qa
Copy link
Contributor

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Fluent requires users input to proceed when started in the -g mode (or "-gu -driver null" mode)

📝 Steps to reproduce

I am using the latest R23.1. I am testing on Windows using venv created with Ansys CPython.

To reproduce: Run attached script. ("c:\shared\pyfluent\Scripts\python.exe" script.py)

files.zip

Fluent is hanging after every step (unless user provide some input, or hit the return key). Also cx2310.exe windows is showing up, which probably should not.

image

💻 Which operating system are you using?

Windows

🐍 Which Python version are you using?

3.7

📦 Installed packages

ansys-api-fluent==0.3.1
ansys-api-platform-instancemanagement==1.0.0b3
-e git+https://github.com/pyansys/pyfluent.git@42e8194b3a4a9dd76d5617d0d6a8476ea4284aee#egg=ansys_fluent_core
ansys-platform-instancemanagement==1.0.2
appdirs==1.4.4
googleapis-common-protos==1.56.4
grpcio==1.49.1
h5py==3.7.0
importlib-metadata==5.0.0
numpy==1.21.6
packaging==21.3
pandas==1.3.5
Pint==0.18
protobuf==3.20.2
protoc-gen-swagger==0.1.0
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.4
six==1.16.0
typing_extensions==4.3.0
zipp==3.8.1
@ypatel-qa ypatel-qa added the bug Issue, problem or error in PyMAPDL label Oct 3, 2022
@dnwillia-work
Copy link
Collaborator

dnwillia-work commented Oct 14, 2022

@mkundu1 @seanpearsonuk Any idea if this one requires changes on the Fluent side?

@mkundu1
Copy link
Contributor

mkundu1 commented Oct 14, 2022

@dnwillia-work @seanpearsonuk @ypatel-qa This is due to limitation of Fluent's grpc server - it doesn't work with -g/-gu mode in windows (point 3 of https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/flu_ug/flu_ug_remote-client_limitations.html)

@mkundu1 mkundu1 closed this as completed Oct 14, 2022
@dnwillia-work
Copy link
Collaborator

dnwillia-work commented Oct 14, 2022

So, the answer to my question is 'yes' I think. Fixing it properly would require changes in Fluent.

For now, that detail should be documented for PyFluent then too and/or we filter out the options (i.e. ignore them) on windows. Reopening the issue.

@dnwillia-work dnwillia-work reopened this Oct 14, 2022
@seanpearsonuk
Copy link
Collaborator

seanpearsonuk commented Oct 14, 2022

@dnwillia-work, assigning to @hpohekar to constrain the launch options on Windows. If -g or -gu appears in the launch arguments on Windows, we can raise an exception.

@mkundu1, I think I should also open a Fluent defect for the server issue. Opened Bug 725616 for Fluent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyMAPDL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants