Repository navigation
Replies: 1 comment
|
Yes. In the current PyFluent monitor API, the built-in residual monitor returns iteration numbers and residual values that you can write to CSV. After your solver has accumulated the iterations you want to keep: import pandas as pd
iterations, residuals = solver_session.monitors.get_monitor_set_data(
monitor_set_name="residual"
)
df = pd.DataFrame(residuals, index=iterations)
df.index.name = "iteration"
df.to_csv("residuals.csv")The PyFluent monitor guide shows this retrieval call and a callback for collecting values during a run. Its example notes that streamed data can contain duplicate iteration rows, so deduplicate by iteration when writing incrementally. This exports values available in the active session's monitor history. If you mean residuals from a finished run or a Fluent-native output file, please share your Fluent/PyFluent version and how the run was launched; those are separate workflows. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there any way to save residuals of a simulationn as a file?
All reactions