Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -81,8 +81,8 @@ Foam::contactAngleModels::dynamic::cosTheta
|
|||||||
return cos
|
return cos
|
||||||
(
|
(
|
||||||
theta0_
|
theta0_
|
||||||
+ thetaRec_ - theta0_*max(uCoeff, scalar(0))
|
+ (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
|
||||||
- thetaAdv_ - theta0_*min(uCoeff, scalar(0))
|
- (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -72,9 +72,9 @@ Foam::contactAngleModels::gravitational::cosTheta
|
|||||||
|
|
||||||
return cos
|
return cos
|
||||||
(
|
(
|
||||||
degToRad(theta0_)
|
theta0_
|
||||||
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
|
+ (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
|
||||||
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
|
- (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -34,7 +34,6 @@ do
|
|||||||
rm -rf logs
|
rm -rf logs
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# create validation plot
|
# create validation plot
|
||||||
# test if gnuplot exists on the system
|
# test if gnuplot exists on the system
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Extract Chemkin II data into a friendlier format
|
# Extract Chemkin II data into a friendlier format
|
||||||
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
|
|||||||
./createGraph
|
./createGraph
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Extract Chemkin II data into a friendlier format
|
# Extract Chemkin II data into a friendlier format
|
||||||
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
|
|||||||
./createGraph
|
./createGraph
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Extract Chemkin II data into a friendlier format
|
# Extract Chemkin II data into a friendlier format
|
||||||
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
|
|||||||
./createGraph
|
./createGraph
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Extract Chemkin II data into a friendlier format
|
# Extract Chemkin II data into a friendlier format
|
||||||
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
|
|||||||
./createGraph
|
./createGraph
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -21,5 +21,4 @@ gnuplot<<EOF
|
|||||||
"chemkinII" with lines title "Chemkin II" lt -1
|
"chemkinII" with lines title "Chemkin II" lt -1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Extract Chemkin II data into a friendlier format
|
# Extract Chemkin II data into a friendlier format
|
||||||
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
|
|||||||
./createGraph
|
./createGraph
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# gYs="air.gas H2O.gas C3H8O.gas none.gas"
|
# gYs="air.gas H2O.gas C3H8O.gas none.gas"
|
||||||
@ -142,3 +142,5 @@ plot \
|
|||||||
unset multiplot
|
unset multiplot
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# gYs="air.gas H2O.gas none.gas"
|
# gYs="air.gas H2O.gas none.gas"
|
||||||
@ -161,3 +161,5 @@ plot \
|
|||||||
unset multiplot
|
unset multiplot
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f numberDensity.eps
|
cleanCase && rm -f numberDensity.eps
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f numberDensity.eps
|
cleanCase && rm -f numberDensity.eps
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f 0/f[0-9]*.air1 numberDensity.eps
|
cleanCase && rm -f 0/f[0-9]*.air1 numberDensity.eps
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*
|
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f *.eps
|
cleanCase && rm -f *.eps
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*
|
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial clean functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f probabilityDensity.eps
|
cleanCase && rm -f probabilityDensity.eps
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Run from this directory
|
# Source tutorial run functions
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source run functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication zeroDimensionalMesh
|
runApplication zeroDimensionalMesh
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
cleanCase && rm -rf postProcessing_* postProcessing.eps
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
gHes="e.steam h.steam"
|
gHes="e.steam h.steam"
|
||||||
@ -120,3 +120,5 @@ plot \
|
|||||||
unset multiplot
|
unset multiplot
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
dir=${PWD##*/}
|
dir=${PWD##*/}
|
||||||
|
|
||||||
echo "--------"
|
echo "--------"
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd "${0%/*}" || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanVoFCase && rm -rf 0/phi constant/geometry
|
cleanVoFCase && rm -rf 0/phi constant/geometry
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Copy torus surface from resources directory
|
# Copy torus surface from resources directory
|
||||||
@ -24,3 +24,5 @@ runParallel $(getApplication);
|
|||||||
|
|
||||||
# Reconstruct
|
# Reconstruct
|
||||||
runApplication reconstructPar -newTimes
|
runApplication reconstructPar -newTimes
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
foamCleanTutorials cases
|
foamCleanTutorials cases
|
||||||
|
|
||||||
rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \
|
rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \
|
||||||
probes wallPressure pRefProbe
|
probes wallPressure pRefProbe
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf constant system 0
|
cleanCase && rm -rf constant system 0
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run and clean functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Copy the source case
|
# Copy the source case
|
||||||
|
|||||||
@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f constant/alpha.*
|
cleanCase && rm -f constant/alpha.*
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication foamPostProcess -func generateAlphas
|
runApplication foamPostProcess -func generateAlphas
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,36 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration | Website: https://openfoam.org
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
|
||||||
# \\/ M anipulation |
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# License
|
|
||||||
# This file is part of OpenFOAM.
|
|
||||||
#
|
|
||||||
# OpenFOAM is free software: you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# Script
|
|
||||||
# createGraphs
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Creates .eps graphs of OpenFOAM results vs experiment for the buoyant
|
|
||||||
# cavity case
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Stop on first error
|
# Stop on first error
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# Functionality is hard-coded for this particular test case
|
# Functionality is hard-coded for this particular test case
|
||||||
# - patch temperatures increased by 1K on each step
|
# - patch temperatures increased by 1K on each step
|
||||||
#
|
#
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
echo "Executing dummy external solver"
|
echo "Executing dummy external solver"
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
@ -7,3 +9,5 @@ cleanCase
|
|||||||
(cd system && rm -f blockMeshDict.caseBlocks blockMeshDict.caseBoundary)
|
(cd system && rm -f blockMeshDict.caseBlocks blockMeshDict.caseBoundary)
|
||||||
|
|
||||||
rm -rf resolved modelled pressure.eps
|
rm -rf resolved modelled pressure.eps
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Run function links the appropriate mesh files and clones the case
|
# Run function links the appropriate mesh files and clones the case
|
||||||
@ -30,6 +30,12 @@ run resolved
|
|||||||
# Run with the plenum modelled by a boundary condition
|
# Run with the plenum modelled by a boundary condition
|
||||||
run modelled
|
run modelled
|
||||||
|
|
||||||
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Plot a comparison of the pressure in the neck
|
# Plot a comparison of the pressure in the neck
|
||||||
cat << EOF | gnuplot -persist
|
cat << EOF | gnuplot -persist
|
||||||
|
|
||||||
@ -45,3 +51,5 @@ plot \
|
|||||||
"modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l
|
"modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
@ -7,3 +8,5 @@ application=$(getApplication)
|
|||||||
|
|
||||||
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo 'gnuplot not found - skipping graph creation' >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
@ -15,3 +16,5 @@ runApplication topoSet
|
|||||||
runApplication createBaffles -overwrite
|
runApplication createBaffles -overwrite
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
@ -18,3 +19,5 @@ runApplication createBaffles -overwrite -dict system/createBafflesDict.NCC
|
|||||||
runApplication createNonConformalCouples -overwrite
|
runApplication createNonConformalCouples -overwrite
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd "${0%/*}" || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf 0/reconstruct\(phi\) constant/geometry flowRate.eps error.eps
|
cleanCase && rm -rf 0/reconstruct\(phi\) constant/geometry flowRate.eps error.eps
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
# Copy torus surface from resources directory
|
# Copy torus surface from resources directory
|
||||||
@ -29,3 +29,5 @@ runApplication reconstructPar -newTimes
|
|||||||
|
|
||||||
# Plot the flow rates
|
# Plot the flow rates
|
||||||
./createGraphs
|
./createGraphs
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
inletFlowRate=postProcessing/inletFlowRate/0/surfaceFieldValue.dat
|
inletFlowRate=postProcessing/inletFlowRate/0/surfaceFieldValue.dat
|
||||||
lowerOutletFlowRate=postProcessing/lowerOutletFlowRate/0/surfaceFieldValue.dat
|
lowerOutletFlowRate=postProcessing/lowerOutletFlowRate/0/surfaceFieldValue.dat
|
||||||
@ -28,3 +32,5 @@ plot \
|
|||||||
"< paste $inletFlowRate $lowerOutletFlowRate $upperOutletFlowRate" \
|
"< paste $inletFlowRate $lowerOutletFlowRate $upperOutletFlowRate" \
|
||||||
us 1:(100*(\$2+\$4+\$6)/\$2) w l t ''
|
us 1:(100*(\$2+\$4+\$6)/\$2) w l t ''
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f constant/alpha.*
|
cleanCase && rm -f constant/alpha.*
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication foamPostProcess -func generateAlphas
|
runApplication foamPostProcess -func generateAlphas
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd "${0%/*}" || exit 1 # Run from this directory
|
||||||
# Run from this directory
|
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd "${0%/*}" || exit 1 # Run from this directory
|
||||||
# Run from this directory
|
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd "${0%/*}" || exit 1 # Run from this directory
|
||||||
# Run from this directory
|
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd "${0%/*}" || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
@ -96,12 +100,6 @@ case "$UBC" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Run from this directory
|
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source tutorial run functions
|
|
||||||
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
[ "$distort" ] && distort
|
[ "$distort" ] && distort
|
||||||
runApplication extrudeMesh
|
runApplication extrudeMesh
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd "${0%/*}" || exit 1
|
# Source tutorial clean functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -f 0/cylindrical\(U\)
|
cleanCase && rm -f 0/cylindrical\(U\)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd "${0%/*}" || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -9,3 +9,5 @@ runApplication blockMesh
|
|||||||
runApplication createNonConformalCouples -overwrite
|
runApplication createNonConformalCouples -overwrite
|
||||||
|
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
|
||||||
@ -14,3 +14,5 @@ runApplication decomposePar
|
|||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
runApplication reconstructPar
|
runApplication reconstructPar
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
@ -14,3 +15,5 @@ ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform
|
|||||||
runParallel foamRun
|
runParallel foamRun
|
||||||
|
|
||||||
runApplication reconstructPar
|
runApplication reconstructPar
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -9,3 +9,5 @@ runApplication blockMesh
|
|||||||
runApplication createNonConformalCouples -overwrite nonCouple1 nonCouple2
|
runApplication createNonConformalCouples -overwrite nonCouple1 nonCouple2
|
||||||
|
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf pitzDailySteady constant
|
cleanCase && rm -rf pitzDailySteady constant
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase && rm -rf pitzDailySteady 0 constant
|
cleanCase && rm -rf pitzDailySteady 0 constant
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
tail -n +4 ../postProcessing/probes/0/U | \
|
|
||||||
tr -s " " | tr -d '(' | cut -d " " -f1-2 > ../Numerical.dat
|
|
||||||
|
|
||||||
if ! which gnuplot > /dev/null 2>&1
|
if ! which gnuplot > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "gnuplot not found - skipping graph creation" >&2
|
echo "gnuplot not found - skipping graph creation" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
tail -n +4 ../postProcessing/probes/0/U | \
|
||||||
|
tr -s " " | tr -d '(' | cut -d " " -f1-2 > ../Numerical.dat
|
||||||
|
|
||||||
gnuplot<<EOF
|
gnuplot<<EOF
|
||||||
set terminal postscript eps color enhanced "Helvetica,20"
|
set terminal postscript eps color enhanced "Helvetica,20"
|
||||||
set output "planarPoiseuille.eps"
|
set output "planarPoiseuille.eps"
|
||||||
|
|||||||
@ -1,2 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
rm -f positionsZ age* *.eps *_OF
|
rm -f positionsZ age* *.eps *_OF
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
./Allclean
|
./Allclean
|
||||||
|
|
||||||
# ------ Pos 1 Evaluation
|
# ------ Pos 1 Evaluation
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -11,3 +11,5 @@ runApplication decomposePar
|
|||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
runApplication reconstructPar -newTimes
|
runApplication reconstructPar -newTimes
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cd wingMotion_snappyHexMesh
|
cd wingMotion_snappyHexMesh
|
||||||
|
|||||||
@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
rm -f 0/alpha.liquid.gz 0/alpha.liquid
|
rm -f 0/alpha.liquid.gz 0/alpha.liquid
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
@ -27,3 +27,5 @@ runApplication decomposePar
|
|||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
runApplication reconstructPar
|
runApplication reconstructPar
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application=$(getApplication)
|
application=$(getApplication)
|
||||||
@ -14,3 +14,5 @@ runApplication createNonConformalCouples -overwrite nonCouple1 nonCouple2
|
|||||||
runApplication setFields
|
runApplication setFields
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd "${0%/*}" || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
@ -48,13 +52,6 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Run from this directory
|
|
||||||
cd "${0%/*}" || exit 1
|
|
||||||
|
|
||||||
# Source tutorial run functions
|
|
||||||
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
|
|
||||||
|
|
||||||
if [ $meshType -eq 0 ] || [ $meshType -eq 1 ]; then
|
if [ $meshType -eq 0 ] || [ $meshType -eq 1 ]; then
|
||||||
{
|
{
|
||||||
./Allmesh.1
|
./Allmesh.1
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user