Monitors during run-time #2958
-
Dear all, We are excited to join the community! As such, we are still assessing the capabilities of pyfluent, and seek guidance on accessing residuals and forces calculated during runtime. Although we see a significant potential for this application, we are struggling to find examples or documentation on how to implement this. We tried to access monitor functions based on an example found in the source file pyfluent-main/tests/test_fluent_fixes.py, specifically using the function test_monitors_list_set_data_637_974_1744_2188. Noting that we get sover_session with Here is the relevant code snippet from the example test_monitors_list_set_data_637_974_1744_2188: run_calculation goes fine, but get_monitor_set_names returns an exception: We also attempted to use the MonitorsManager from pyfluent.streaming_services.monitor_streaming, but this resulted in an empty list: Would someone be able to provide guidelines or examples on how to obtain residuals (and possibly forces) during run-time? Thank you all for your support ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello everyone, After some investigation, I found the solution. solver_session = pyfluent.connect_to_fluent(server_info_file_name='serverfile.txt') I hope this helps anyone who might be struggling with a similar issue. Regards! |
Beta Was this translation helpful? Give feedback.
-
[like] Jochen Schuetze reacted to your message:
…________________________________
From: liadpaskin ***@***.***>
Sent: Saturday, July 6, 2024 3:44:04 PM
To: ansys/pyfluent ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [ansys/pyfluent] Monitors during run-time (Discussion #2958)
[External Sender]
Hello everyone,
After some investigation, I found a solution that, I believe, could help others facing a similar problem.
My session object has a child monitors_manager which contains the needed information. Here's the solution:
solver_session = pyfluent.connect_to_fluent(server_info_file_name='serverfile.txt')
solver_session.monitors_manager.get_monitor_set_names()
solver_session.monitors_manager.get_monitor_set_data('residual')
I hope this helps anyone who might be struggling with a similar issue.
Regards!
—
Reply to this email directly, view it on GitHub<#2958 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BEGQ7PDUEEJ7GEUTZXB2UJDZLAGEJAVCNFSM6AAAAABJTULTVKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSNZVGQZTS>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hello everyone,
After some investigation, I found the solution.
My session object has a child monitors_manager which contains the needed information. This appears to be the correct way to assess monitors' data during run time:
solver_session = pyfluent.connect_to_fluent(server_info_file_name='serverfile.txt')
solver_session.monitors_manager.get_monitor_set_names()
solver_session.monitors_manager.get_monitor_set_data('residual')
I hope this helps anyone who might be struggling with a similar issue.
Regards!