This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/validationAndVerificationSuite/validation/overset/NACA4412-airfoil/Allrun
2018-02-28 13:37:33 +01:00

32 lines
966 B
Bash
Executable file

#!/bin/bash
# Run cases
(cd explicitOverset ; ./Allrun)
(cd implicitConservativeOverset ; ./Allrun)
(cd implicitNonConservativeOverset ; ./Allrun)
(cd noOverset; ./Allrun)
# Plot pressure distribution
gnuplot -persist << 'EOF'
set term pngcairo dashed size 1024,768 font "Arial,12"
set output "Cp.png"
set yrange [* : *] reverse;
plot \
'./validationData/cp.dat' \
using ($1/0.901):2 title 'Experimetal results', \
'./explicitOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Explicit overset', \
'./implicitNonConservativeOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Implicit non-conservative overset', \
'./implicitConservativeOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Implicit conservative overset', \
'./noOverset/p_solidWall.raw' \
using ($1/0.901):($4/368.018) title 'Single mesh' ;
EOF
# Move the file
mkdir -v validationResults
mv -v *.png validationResults/
gnome-open validationResults/Cp.png