TUT: simplify setups.orig cases

DOC: Curle: fix typo in header file (fixes #2498)

TUT: airfoil2D: apply standard freestream conditions for nuTilda and nut
This commit is contained in:
Kutalmis Bercin
2022-05-20 17:41:22 +01:00
parent 9cf6ac4145
commit 408e6b55e9
600 changed files with 2359 additions and 1558 deletions

View File

@ -18,11 +18,11 @@ plot_t_vs_x() {
setup="$1"
benchmarkFile="$FOAM_TUTORIALS/resources/dataset/StefanProblem.dat"
benchmarkFile="resources/dataset/StefanProblem.dat"
sampleFile0="results/$setup/postProcessing/interfaceHeight1/1.36"
sampleFile="$sampleFile0/positionClean.dat"
sed -e 's/[()]//g' "$sampleFile0/position.dat" > "$sampleFile"
sampleDir="results/$setup/postProcessing/interfaceHeight1/1.36"
sampleFile="$sampleDir/positionClean.dat"
sed -e 's/[()]//g' "$sampleDir/position.dat" > "$sampleFile"
image="plots/$setup/t_vs_x.png"
gnuplot<<EOF
@ -50,13 +50,13 @@ EOF
# Requires gnuplot
command -v gnuplot >/dev/null || {
echo "FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2
echo "gnuplot not found - skipping graph creation" 1>&2
exit 1
}
# Check "results" directory
[ -d "results" ] || {
echo "FOAM FATAL ERROR: No results directory found - skipping graph creation" 1>&2
echo "No results directory found - skipping graph creation" 1>&2
exit 1
}
@ -65,16 +65,19 @@ command -v gnuplot >/dev/null || {
for setup in $setups
do
echo ""
echo "# Plots for the setup: $setup"
echo ""
[ -d "results/$setup" ] || {
echo "No results/$setup directory found - skipping graph creation" 1>&2
continue
}
dirPlots="plots/$setup"
[ -d "$dirPlots" ] || mkdir -p "$dirPlots"
plot_t_vs_x "$setup"
done