results.report.surface_integrals. does not return a numeric value #3743
Replies: 4 comments
-
Hi there, |
Beta Was this translation helpful? Give feedback.
-
Hi @ansjschuetz, I am pretty sure that "surface integral" calculation does not work on 2025R1, for sure it does not work in 2024R1. |
Beta Was this translation helpful? Give feedback.
-
这个代码是在fluent窗口中输出这个量,并不会将量传导给python,可以试一试reduction函数 |
Beta Was this translation helpful? Give feedback.
-
Something that can help: solver.settings.solution.report_definitions.compute(report_defs=[]) Please refer "report_definitions.compute" in https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/mixing_elbow_settings_api.html#sphx-glr-examples-00-fluent-mixing-elbow-settings-api-py you can do so by saving it to a variable: x = solver.settings.solution.report_definitions.compute(report_defs=[]) It'll return a dictionary from which you can extract the value. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody,
calculating some values using <solver_session>.results.report.surface_integrals.area_weighted_avg or any other surface_integrals methods, the result cannot be store in a variable, but it is printed in a Fluent console output.
As example, executing the following line
mass_flow = session.results.report.surface_integrals.mass_flow_rate(surface_names = ["inlet"])
mass_flow return a Boolean 'False'.
I don't know if it should be considered as a bug or not, for sure it would certainly be a very useful feature for post processing and manipulating data.
What do you think about? Am I missing something?
I am on Fluent 24R1, Python 3.13.0 and pyfluent 0.29.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions