su2live <-> live residual plots in the terminal #2879
Replies: 2 comments 3 replies
|
Nice that it's completely terminal based :-)
|
|
Nice tool @Syphonicc, the braille plotting over SSH is a good call. Three things I hit reading the source:
None of these are hard fixes, and the idea is good. Would happily use it once the unsteady case works |

Uh oh!
There was an error while loading. Please reload this page.
I've been doing a lot of convergence tuning on test cases lately and got tired of waiting for runs to finish before plotting history.csv, so I wrote a small tool that plots residuals live while the solver runs.
https://github.com/Syphonicc/su2live
su2live inv_channel.cfg # runs SU2_CFD and plots as it goes
su2live --file history.csv # follow a run already in progress
Pure Python, no dependencies, works over SSH. It reads the history file rather than stdout, so it picks up all the residual columns an SST run writes rms[k] and rms[w] to the CSV whether or not they show on screen.
Besides plotting, it tries to say what the run is doing: converging with a rate in decades per 1000 iterations and an estimated number of iterations to CONV_RESIDUAL_MINVAL, or stalled / limit-cycling / frozen / diverging. The cycling case is the one I found most useful a case oscillating about −7 looks a lot like slow convergence if you're watching a single number scroll past.
Happy to take suggestions. If it'd be more useful living in SU2_PY rather than as a separate package, I'm open to that too.
All reactions