Skip to content

Error querying parameters from Fluent session #4276

Open
@tejalprabhu01

Description

@tejalprabhu01

🔍 Before submitting the issue

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

🐞 Description of the bug

Following error is seen on querying parameters from Fluent session using pyfluent from Ansys CPython. It is reproducible with all case files. This used to work with older version of pyfluent.

fluent_input_table = self.fluent_session.settings.parameters.input_parameters.list()
File "C:\Program Files/ANSYS Inc/v261\commonfiles\CPython\3_10\winx64\Release\Ansys\PyFluentCore\ansys\fluent\core\solver\flobject.py", line 1811, in call
return self.execute_command(**kwds)
File "C:\Program Files/ANSYS Inc/v261\commonfiles\CPython\3_10\winx64\Release\Ansys\PyFluentCore\ansys\fluent\core\solver\flobject.py", line 1748, in execute_command
ret = self._execute_command(*args, **scmKwds)
File "C:\Program Files/ANSYS Inc/v261\commonfiles\CPython\3_10\winx64\Release\Ansys\PyFluentCore\ansys\fluent\core\solver\flobject.py", line 1729, in _execute_command
ret = _fix_parameter_list_return(ret)
File "D:\ansysdev/sandbox2/Protos/optiSLang/scripting/integrations\Fluent\pyfluent_wrapper.py", line 41, in _fix_parameter_list_return
if len(units) > 0 and isinstance(units[0], str):
KeyError: 0

@seanpearsonuk @mkundu1

📝 Steps to reproduce

session = pyfluent.launch_fluent(start_watchdog=False)
session.settings.parameters.input_parameters.list()

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

26.1

🐍 Which Python version are you using?

3.10

📦 Installed packages

ansys-fluent-core 0.33.0

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