Download data/tutorials/fluid/shockTube/createGraphs from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/fluid/shockTube/createGraphs
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/fluid/shockTube/createGraphs
-
curl -L -o createGraphs https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/fluid/shockTube/createGraphs
712 Bytes
| #!/bin/sh | |
| if ! which gnuplot > /dev/null 2>&1 | |
| then | |
| echo "gnuplot not found - skipping graph creation" >&2 | |
| exit 1 | |
| fi | |
| graphFile=postProcessing/graph/$(foamListTimes -latestTime)/line.xy | |
| gnuplot<<EOF | |
| set terminal postscript eps color enhanced font "Helvetica,20" size 5,5 | |
| set output 'graphs.eps' | |
| set multiplot layout 3,1 | |
| set ylabel 'Temperature [K]' | |
| plot [][225:425] "$graphFile" u 1:2 w l t '' | |
| set ylabel 'Velocity [m/s]' | |
| plot [][-50:350] "$graphFile" u 1:3 w l t '' | |
| set xlabel 'Position [m]' | |
| set ylabel 'Pressure [kPa]' | |
| plot [][-10:110] "$graphFile" u 1:(\$4/1e3) w l t '' | |
| EOF | |
| #------------------------------------------------------------------------------ | |