Replies: 5 comments 2 replies
-
|
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.
-
|
The change on "exit_on_error" is not reported in the transcript, but it's there on my PyFluent script (most of the PyFluent commands are not display in the transcript, only the stdout we get in standard fluent are). I am sending the current version of the script (run_case_reduced.py), you can see that I have commented the "read_case" command thus giving me the cortex error not catched by PyFluent. I tried to make a minimal folder for one specific case, you can run the script from the case folder: As you can see I start from scratch to avoid any issue from different .case file version. If I share with you a .case.h5 file you will not have the error because it only occurs when I start from scratch and do not reload the case. Unfortunately, I don't have much time to investigate whether the issue comes from my UDF. In any case, I still think the error should be catch by PyFluent. You can also see in my script that I faced other issues with PyFluent (I am not sure whether I should create new discussion or file a github issue for that):
I tried with the other attribute thin_wall but this time it simply say that the object is not active even if |
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