CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   plotting (http://www.cfd-online.com/Forums/openfoam/90460-plotting.html)

venkataramana July 11, 2011 05:55

plotting
 
hi openFoam users,
after running foamLog file, what is the script for plotting iteration vs residuals using gnu plot.

Regards,
venkat

Bernhard July 11, 2011 07:09

Did you try plot "filename"?

I made a small file in my bin directory (called plotLog)
Code:

#!/bin/bash
gnuplot -p << EOF
plot "$1" using 1:2
EOF

So that from your logs folder, you can type
> plotLog fileName


All times are GMT -4. The time now is 04:31.