|
[Sponsors] |
February 27, 2013, 14:20 |
Plotting residual in OpenFoam
|
#1 |
Member
AndreiCFD
Join Date: Nov 2012
Posts: 47
Rep Power: 13 |
Has anyone any idea how to plot the residuals in OpenFoam from a >.log file ?
Many thanks Andrei |
|
February 27, 2013, 15:58 |
|
#2 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Hi,
you could try pyFoamPlotWatcher.py from the PyFoam utilities. cutter |
|
February 27, 2013, 16:18 |
|
#3 |
Senior Member
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14 |
Hi ,
Copy the code in a txt file and set it in the case directory, Code:
set logscale y set title "Residuals" set ylabel 'Residual' set xlabel 'Iteration' plot "< cat log | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ "< cat log | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ "< cat log | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ "< cat log | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ "< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ "< cat log | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines pause 1 reread gnuplot Residuals - Code:
gnuplot residual Sasan. |
|
February 28, 2013, 07:08 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
||
February 28, 2013, 07:13 |
|
#5 |
Member
AndreiCFD
Join Date: Nov 2012
Posts: 47
Rep Power: 13 |
I used the foamLog and I have the files I used excel package which comes with ubuntu 11.10 but i want to something which is automatically ........
|
|
February 28, 2013, 07:15 |
|
#6 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
Then you should dig into the first answer you got.
|
|
February 28, 2013, 08:24 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: http://www.cfd-online.com/Forums/ope...residuals.html
__________________
|
|
March 1, 2013, 08:00 |
|
#8 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 14 |
pyFoamPlot... is the best to do this job ad its simple too!
|
|
October 24, 2013, 06:31 |
|
#9 |
Member
chen long
Join Date: Dec 2012
Posts: 32
Rep Power: 13 |
||
October 24, 2013, 06:45 |
|
#10 |
Member
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 16 |
You need to install pyFoam:
http://openfoamwiki.net/index.php/Contrib_PyFoam |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 09:48 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 13:52 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 04:13 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 14:09 |