ansys / pyfluent

Pythonic interface to Ansys Fluent
https://fluent.docs.pyansys.com
MIT License
255 stars 42 forks source link

(Maybe) default py=True in launch_fluent #3049

Closed seanpearsonuk closed 3 weeks ago

seanpearsonuk commented 2 months ago

It might be appropriate at this point in the roadmap to default the launched Fluent instance to Python rather than the legacy console. I vote to make this change now.

@dnwillia-work @mkundu1 @prmukherj @hpohekar

prmukherj commented 2 months ago

I agree with this idea.

hpohekar commented 2 months ago

Yes, if we are launching Fluent using PyFluent (launch_fluent) then it should launch Fluent with Python console.

mkundu1 commented 1 month ago

Note that, there is a current issue while starting the Fluent container with -py, reported by @raph-luc

Error: libXss.so.1: cannot open shared object file: No such file or directory
Error Object: ("solver = ansys.fluent.core.session_solver.Solver(fluent_connection=ansys.fluent.core.fluent_connection.FluentConnection(channel='', cleanup_on_exit=False, start_transcript=False))")

The error is present in both 24.2 and 25.1 versions of the image in all -hidden/-gu/-g mode. Ideally, the library libXss, which is a screensaver library, should not be required.

mkundu1 commented 1 month ago

Note that, there is a current issue while starting the Fluent container with -py, reported by @raph-luc

Error: libXss.so.1: cannot open shared object file: No such file or directory
Error Object: ("solver = ansys.fluent.core.session_solver.Solver(fluent_connection=ansys.fluent.core.fluent_connection.FluentConnection(channel='', cleanup_on_exit=False, start_transcript=False))")

The error is present in both 24.2 and 25.1 versions of the image in all -hidden/-gu/-g mode. Ideally, the library libXss, which is a screensaver library, should not be required.

This is due to an unintended import in PyConsole code, will merge a fix in Fluent.

hpohekar commented 1 month ago

@mkundu1 Thanks a lot for the update. I was confused about why build/CI is getting hang during codegen every time for this PR only. Now it's clear.

hpohekar commented 1 month ago

I had also reverted file transfer changes in this PR but still it was hanging every time in CI.

seanpearsonuk commented 1 month ago

Note that, there is a current issue while starting the Fluent container with -py, reported by @raph-luc

Error: libXss.so.1: cannot open shared object file: No such file or directory
Error Object: ("solver = ansys.fluent.core.session_solver.Solver(fluent_connection=ansys.fluent.core.fluent_connection.FluentConnection(channel='', cleanup_on_exit=False, start_transcript=False))")

The error is present in both 24.2 and 25.1 versions of the image in all -hidden/-gu/-g mode. Ideally, the library libXss, which is a screensaver library, should not be required.

This is due to an unintended import in PyConsole code, will merge a fix in Fluent.

Thanks, @mkundu1