You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a complex scheme command with meshing_session.scheme_eval.scheme_eval , but I get an error.
The issue is due to a conflicting requirement. While executing a remote call from PyFluent we suppress all UI prompts, but this implementation of the Scheme function meshing-wf-api-generate-refinement-offsets relies on a prompt input. The current workaround is to add the following line in a .cortex file in your home directory:
and use the correct command from my previous mail.
Setting that to the .cortex file may give unexpected behaviour in some other PyFluent calls, so the workaround is applicable only for the current script. I don't have a function level workaround as remotely setting that function (suppress-all-warning-error-yes-no-dialog) doesn't work.
Please file a defect for this issue in PyFluent repo. We cannot change the default behaviour as PyFluent relies on it, but we'll look into how to make it configurable for PyFluent calls.
📝 Steps to reproduce
The following scheme command fails without the workaround
🔍 Before submitting the issue
🐞 Description of the bug
I run a complex scheme command with meshing_session.scheme_eval.scheme_eval , but I get an error.
The issue is due to a conflicting requirement. While executing a remote call from PyFluent we suppress all UI prompts, but this implementation of the Scheme function meshing-wf-api-generate-refinement-offsets relies on a prompt input. The current workaround is to add the following line in a .cortex file in your home directory:
(set! suppress-all-warning-error-yes-no-dialog (lambda args ()))
and use the correct command from my previous mail.
Setting that to the .cortex file may give unexpected behaviour in some other PyFluent calls, so the workaround is applicable only for the current script. I don't have a function level workaround as remotely setting that function (suppress-all-warning-error-yes-no-dialog) doesn't work.
Please file a defect for this issue in PyFluent repo. We cannot change the default behaviour as PyFluent relies on it, but we'll look into how to make it configurable for PyFluent calls.
📝 Steps to reproduce
The following scheme command fails without the workaround
meshing_session.scheme_eval.scheme_eval(r'''(meshing-wf-api-generate-refinement-offsets '(
(object-list (list "%s"))
(flow-direction (0 0 -1))
(offset-name "boi-wake")
(defeaturing-size %d)
(bl-height %d)
(bl-levels 1)
(wake-growth-factor %d)
(wake-levels 2)
(upstream-growth-factor 1.2)
(cross-wake-growth-factor 1.2)
))''' % (obj_name, defsizeboi, heightsizeboi, wakegrowthfactor))
The following fails with the workaround:
meshing_session.scheme_eval.scheme_eval(r'''(ti-parallel-mesh-agglomerate)''')
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2025R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: