Download data/tutorials/multiphaseEuler/Grossetete/validation/createGraphs from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/multiphaseEuler/Grossetete/validation/createGraphs
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/multiphaseEuler/Grossetete/validation/createGraphs
-
curl -L -o createGraphs https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/multiphaseEuler/Grossetete/validation/createGraphs
709 Bytes
| #!/bin/sh | |
| if ! which gnuplot > /dev/null 2>&1 | |
| then | |
| echo "gnuplot not found - skipping graph creation" >&2 | |
| exit 1 | |
| fi | |
| gnuplot<<EOF | |
| set terminal postscript eps color enhanced font "Helvetica,20" | |
| set output '../void_fraction.eps' | |
| set xlabel 'Radial coordinate r/R (-)' | |
| set ylabel 'Void fraction (-)' | |
| set key at graph 0.65,0.95 | |
| set xrange [0:1] | |
| set yrange [0:0.15] | |
| file = system("ls ../postProcessing/graph/$(foamListTimes -case .. | tail -1)/*.xy") | |
| plot file u (\$1/0.01905):2 w lp lt 1 t 'Simulation', \ | |
| './exptData/alpha.gas' u 1:2 w p lt rgb "black" pt 4 t 'Experiment' | |
| EOF | |
| #------------------------------------------------------------------------------ | |