Replies: 4 comments 1 reply
-
Just as a workaround: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, Unfortunately, the exit_on_error option is by default True (or "yes" in TUI). So this does not solve my issue, it seems that something is preventing Fluent to exit while it is launch with PyFluent. I guess there might be some option in the PyFluent Fluent launcher to get error behavior similar to the headless "slurm" version. In the standard slurm command I used (fluent -g -slurm) , it killed itself on error. |
Beta Was this translation helpful? Give feedback.
-
Hello @GautierR , --> What kind of error is it that you cannot get it to exit upon?
--->
|
Beta Was this translation helpful? Give feedback.
-
You have below an example of the Cortex error on can get from divergence in AMG solver:
I am also attaching fluent's transcript where you can see that even if the solver give error at the first iteration, it is still continuing. Fluent version is 2025 R1 and PyFluent 0.35. By the way, the error I have (turbulence viscosity ratio exploding) is something I could not understand (I have investigate deeper and all the BCs and material properties for the setup are correct, there is no reasons for this to happens as mu_t = alpha^×(rhok)/omega). The only workaround I found is to save my fluent case and reload it just after (see below). For me this show some weakness for the current PyFluent workflow solution.
But even if this issue is solved by this workaround I would like the simulation to stop and raise an error when a Cortex error occurs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am having a super simple question that I wasn't able to answer from PyFluent documentation:
Is there a way to catch Fluent's solver error?
In other word if we doing something like:
I would expect PyFluent to raise an error if there is a calculation error (like divergence, segfault or similar). It seems that's not the case.
Is there a possible solution to catch such error?
Thank you for the help
Gautier
Beta Was this translation helpful? Give feedback.
All reactions