|
[Sponsors] |
April 9, 2015, 09:40 |
Script for plotting Convergence Residuals
|
#1 |
New Member
Ben S
Join Date: Feb 2014
Posts: 1
Rep Power: 0 |
Hi All
I wanted to share a script I created which graphs OpenFOAM convergence residuals from a text file output from the command line. e.g (on windows) simpleFoam > log_01.txt. The program outputs (Ux, Uy, Uz, p, k, omega and epsilon) and graphs them against time using matplotlib. to use place in same directory as solver log file, run with python cmd and input log file name. I would recommend downloading the python 3.4 version of Anaconda3 to use it. I am by no means a programmer and I am a user of the excellent windows port of OpenFOAM by BlueCape (also runs fine on linux using the command "python ConGrapher.py"). So if there are any issues please leave a message and I can have a look at it. It is available here: https://github.com/bsmeaton/ConGrapher.git Kind regards Ben Last edited by Bensmeat; April 9, 2015 at 15:46. |
|
February 13, 2017, 07:20 |
|
#2 |
Member
GS
Join Date: Mar 2016
Posts: 81
Rep Power: 10 |
How do I use this in Ubuntu Linux?
Is it possible? |
|
March 5, 2019, 13:28 |
|
#3 |
New Member
Join Date: Mar 2016
Posts: 23
Rep Power: 10 |
Ben, thank you for the excellent python script!
thegauravonline, you would need to install python and then execute the script Since the creation of this script, numpy no longer accepts the 'skip_rows' option as an arguement. I have therefore modified the script to execute using the latest version of numpy. See Attached. I had to add the '.txt' at the end, please remove the extension before executing in python |
|
Tags |
convergence, openfoam, python, residuals, windows |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
under-relaxation factors -> level of residuals | Zigainer | FLUENT | 19 | July 21, 2017 17:53 |
Convergence issue- residuals of continuity | s.garg | FLUENT | 4 | November 7, 2016 12:39 |
Fluent: Tet Vs Poly mesh | novice | FLUENT | 9 | January 3, 2011 13:10 |
Convergence problem residuals stay at a certain level | andimb | OpenFOAM Running, Solving & CFD | 3 | April 28, 2006 18:13 |
Convergence problems | Chetan | FLUENT | 3 | April 15, 2004 20:13 |