File tree Expand file tree Collapse file tree
benchmarks/rotating-cylinders/openfoam Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
2+ cd " ${0%/* } " || exit # Run from this directory
23# Require gnuplot
34command -v gnuplot > /dev/null || {
45 echo " FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2
@@ -8,6 +9,7 @@ command -v gnuplot >/dev/null || {
89
910gnuplot<< EOF
1011 set terminal pngcairo font "helvetica,16" size 800,600
12+ set output "p.png"
1113 set xlabel "Radius, r"
1214 set xrange [1:2]
1315 set grid
@@ -29,7 +31,6 @@ gnuplot<<EOF
2931 samples="postProcessing/sample1/1000/centreLine_p_U.xy"
3032
3133 set ylabel "Pressure, p"
32- set output "p.png"
3334 set samples 20
3435 set key bottom right
3536 plot samples u 1:2 w lines lw 2 lc "black" t "OpenFOAM", \
@@ -41,4 +42,5 @@ gnuplot<<EOF
4142 set key top right
4243 plot samples u 1:4 w lines lw 2 lc "black" t "OpenFOAM", \
4344 analytical_utheta(x) w p ps 2 pt 6 lw 2 lc rgb "red" t "analytical"
45+ set output
4446EOF
You can’t perform that action at this time.
0 commit comments