Skip to content

Bug located in ... launch fluent command #4446

@abhi-bmi

Description

@abhi-bmi

🔍 Before submitting the issue

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

🐞 Description of the bug

So In my local machine i am able to launch fluent successfully. but in corvid I am getting an error when i am launching it with gui.
/opt/Software/corvid/ansys/v251/fluent/bin/fluent 3ddp -py -t4 -sifile=/tmp/serverinfo-agr1p3p8.txt -nm

so by default it's taking -nm (no monitor) even though i say ui_mode='gui' . How to remove that -nm argument by using python's pyfluent below is the command i am using to launch the fluent
solver = pyfluent.launch_fluent(precision='double', processor_count=4, mode='solver', ui_mode='gui', py=True, product_version=r'25.1',) # Tried with py=True and py=False getting same error.

📝 Steps to reproduce

Launch the fluent with the above command, in server it fails with below error :
/opt/Software/corvid/ansys/v251/fluent/fluent25.1.0/cortex/lnamd64/cortex.25.1.0 -f fluent -py -sifile=/tmp/serverinfo-kbzdnmqi.txt -nm (fluent "3ddp -pdefault -host -r25.1.0 -t4 -mpi=intel -path/opt/Software/corvid/ansys/v251/fluent -ssh")
pyfluent.launcher ERROR: Exception caught - RuntimeError: An error occurred in the server while evaluating the Scheme expression
Traceback (most recent call last):
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/launcher/standalone_launcher.py", line 281, in call
session = self.new_session._create_from_server_info_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/session.py", line 332, in _create_from_server_info_file
fluent_connection = FluentConnection(
^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/fluent_connection.py", line 465, in init
self._connection_interface.get_cortex_connection_properties()
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/fluent_connection.py", line 309, in get_cortex_connection_properties
logger.info(self.product_build_info)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/fluent_connection.py", line 301, in product_build_info
build_info = self._app_utilities.get_build_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/app_utilities.py", line 192, in get_build_info
build_time = self.scheme.eval("(inquire-build-time)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/scheme_eval.py", line 374, in eval
return self._eval(val, suppress_prompts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/scheme_eval.py", line 296, in _eval
response = self.service.scheme_eval(request, metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/scheme_eval.py", line 97, in scheme_eval
return self.__stub.SchemeEval(request, metadata=new_metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/grpc/_interceptor.py", line 277, in call
response, ignored_call = self._with_call(
^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/grpc/_interceptor.py", line 329, in _with_call
call = self._interceptor.intercept_unary_unary(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/interceptors.py", line 172, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/services/interceptors.py", line 162, in _intercept_call
raise new_ex from None
RuntimeError: An error occurred in the server while evaluating the Scheme expression

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/afj/shared/pyFluent/codeDir//main.py", line 75, in
s.setup_case(inputs)
File "/home/afj/shared/pyFluent/codeDir/sim.py", line 14, in setup_case
solver = pyfluent.launch_fluent(precision='double', processor_count=inputs['numCPU'], mode='solver', ui_mode=inputs['uiMode'], py=True, product_version=r'25.1',)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/utils/deprecate.py", line 73, in wrapper
return decorated(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/deprecated/classic.py", line 199, in wrapper_function
return wrapped_(*args_, **kwargs_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/utils/deprecate.py", line 118, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/utils/deprecate.py", line 118, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/launcher/launcher.py", line 355, in launch_fluent
return launcher()
^^^^^^^^^^
File "/home/afj/shared/pyFluent/venv/lib/python3.11/site-packages/ansys/fluent/core/launcher/standalone_launcher.py", line 323, in call
raise LaunchFluentError(self._launch_cmd) from ex
ansys.fluent.core.launcher.error_handler.LaunchFluentError:
Fluent Launch command: /opt/Software/corvid/ansys/v251/fluent/bin/fluent 3ddp -py -t4 -sifile=/tmp/serverinfo-kbzdnmqi.txt -nm

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

Ansys 2025R1

🐍 Which Python version are you using?

3.11

📦 Installed packages

pip show ansys-fluent-core Name: ansys-fluent-core Version: 0.34.2 Summary: PyFluent provides Pythonic access to Ansys Fluent. Home-page: Author: Author-email: "ANSYS, Inc." <[email protected]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyFluent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions