Download data/tutorials/multiphaseEuler/hydrofoil/validation/createGraph from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/multiphaseEuler/hydrofoil/validation/createGraph
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/multiphaseEuler/hydrofoil/validation/createGraph
-
curl -L -o createGraph https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/multiphaseEuler/hydrofoil/validation/createGraph
1.07 kB
| #!/bin/sh | |
| if ! which gnuplot > /dev/null 2>&1 | |
| then | |
| echo "gnuplot not found - skipping graph creation" >&2 | |
| exit 1 | |
| fi | |
| lowerFile=postProcessing/hydrofoilLowerPressure/$(foamListTimes -latestTime)/patchCutLayerAverage.xy | |
| upperFile=postProcessing/hydrofoilUpperPressure/$(foamListTimes -latestTime)/patchCutLayerAverage.xy | |
| gnuplot<<EOF | |
| \$experiment << end | |
| 0.05 -1.416 | |
| 0.10 -1.400 | |
| 0.20 -1.375 | |
| 0.30 -1.148 | |
| 0.40 -0.744 | |
| 0.50 -0.695 | |
| 0.60 -0.582 | |
| 0.70 -0.520 | |
| 0.80 -0.341 | |
| 0.90 -0.108 | |
| 0.50 0.040 | |
| end | |
| set terminal postscript eps size 4,3 color enhanced font "Helvetica,20" | |
| set output "./validation/$(basename "$PWD").eps" | |
| set grid | |
| c = 0.15 | |
| UInf = 5.33 | |
| pInf = 1e5 | |
| rhoInf = 998.4 | |
| set xlabel 'x/L' | |
| set ylabel 'Cp' | |
| plot [0:1] \ | |
| '$lowerFile' u (\$2/0.15):(2*(\$6-pInf)/(rhoInf*UInf*UInf)) w l lt 1 t 'Simulation Lower', \ | |
| '$upperFile' u (\$2/0.15):(2*(\$6-pInf)/(rhoInf*UInf*UInf)) w l lt 2 t 'Simulation Upper', \ | |
| '\$experiment' u 1:2 w p lt rgb "black" pt 2 t 'Experiment' | |
| EOF | |
| #------------------------------------------------------------------------------ | |