Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Chris Greenshields
2024-07-01 09:18:55 +01:00
177 changed files with 350 additions and 311 deletions

View File

@ -81,8 +81,8 @@ Foam::contactAngleModels::dynamic::cosTheta
return cos
(
theta0_
+ thetaRec_ - theta0_*max(uCoeff, scalar(0))
- thetaAdv_ - theta0_*min(uCoeff, scalar(0))
+ (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
);
}

View File

@ -72,9 +72,9 @@ Foam::contactAngleModels::gravitational::cosTheta
return cos
(
degToRad(theta0_)
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
theta0_
+ (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
);
}

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -34,7 +34,6 @@ do
rm -rf logs
done
# create validation plot
# test if gnuplot exists on the system
if ! which gnuplot > /dev/null 2>&1

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Extract Chemkin II data into a friendlier format
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
./createGraph
#------------------------------------------------------------------------------

View File

@ -22,4 +22,3 @@ gnuplot<<EOF
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Extract Chemkin II data into a friendlier format
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
./createGraph
#------------------------------------------------------------------------------

View File

@ -22,4 +22,3 @@ gnuplot<<EOF
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Extract Chemkin II data into a friendlier format
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
./createGraph
#------------------------------------------------------------------------------

View File

@ -22,4 +22,3 @@ gnuplot<<EOF
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Extract Chemkin II data into a friendlier format
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
./createGraph
#------------------------------------------------------------------------------

View File

@ -21,5 +21,4 @@ gnuplot<<EOF
"chemkinII" with lines title "Chemkin II" lt -1
EOF
# ----------------------------------------------------------------- end-of-file
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Extract Chemkin II data into a friendlier format
@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \
./createGraph
#------------------------------------------------------------------------------

View File

@ -22,4 +22,3 @@ gnuplot<<EOF
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf postProcessing_* postProcessing.eps
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# gYs="air.gas H2O.gas C3H8O.gas none.gas"
@ -142,3 +142,5 @@ plot \
unset multiplot
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf postProcessing_* postProcessing.eps
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# gYs="air.gas H2O.gas none.gas"
@ -161,3 +161,5 @@ plot \
unset multiplot
EOF
#------------------------------------------------------------------------------

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f numberDensity.eps

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f numberDensity.eps

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f 0/f[0-9]*.air1 numberDensity.eps

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f *.eps

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf *.eps 0/d.air 0/uniform/ 0/integerMoment*

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f probabilityDensity.eps

View File

@ -1,9 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Run from this directory
cd "${0%/*}" || exit 1
# Source run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication zeroDimensionalMesh

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf postProcessing_* postProcessing.eps
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
gHes="e.steam h.steam"
@ -120,3 +120,5 @@ plot \
unset multiplot
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/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
cleanCase

View File

@ -1,7 +1,7 @@
#!/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
runApplication blockMesh

View File

@ -1,6 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
dir=${PWD##*/}
echo "--------"

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd "${0%/*}" || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanVoFCase && rm -rf 0/phi constant/geometry
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy torus surface from resources directory
@ -24,3 +24,5 @@ runParallel $(getApplication);
# Reconstruct
runApplication reconstructPar -newTimes
#------------------------------------------------------------------------------

View File

@ -2,6 +2,7 @@
cd ${0%/*} || exit 1 # Run from this directory
foamCleanTutorials cases
rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \
probes wallPressure pRefProbe

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf constant system 0

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run and clean functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy the source case

View File

@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f constant/alpha.*
#------------------------------------------------------------------------------

View File

@ -1,9 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication foamPostProcess -func generateAlphas
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,36 +1,4 @@
#!/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
# Stop on first error

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -6,7 +6,7 @@
# Functionality is hard-coded for this particular test case
# - 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"

View File

@ -1,5 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
@ -7,3 +9,5 @@ cleanCase
(cd system && rm -f blockMeshDict.caseBlocks blockMeshDict.caseBoundary)
rm -rf resolved modelled pressure.eps
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# 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 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
cat << EOF | gnuplot -persist
@ -45,3 +51,5 @@ plot \
"modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l
EOF
#------------------------------------------------------------------------------

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -7,3 +8,5 @@ application=$(getApplication)
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
runApplication $application
#------------------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase

View File

@ -1,5 +1,5 @@
#!/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
@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication blockMesh
runApplication topoSet
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -15,3 +16,5 @@ runApplication topoSet
runApplication createBaffles -overwrite
runApplication $application
#------------------------------------------------------------------------------

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -18,3 +19,5 @@ runApplication createBaffles -overwrite -dict system/createBafflesDict.NCC
runApplication createNonConformalCouples -overwrite
runApplication $application
#------------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd "${0%/*}" || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf 0/reconstruct\(phi\) constant/geometry flowRate.eps error.eps
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy torus surface from resources directory
@ -29,3 +29,5 @@ runApplication reconstructPar -newTimes
# Plot the flow rates
./createGraphs
#------------------------------------------------------------------------------

View File

@ -1,6 +1,10 @@
#!/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
lowerOutletFlowRate=postProcessing/lowerOutletFlowRate/0/surfaceFieldValue.dat
@ -28,3 +32,5 @@ plot \
"< paste $inletFlowRate $lowerOutletFlowRate $upperOutletFlowRate" \
us 1:(100*(\$2+\$4+\$6)/\$2) w l t ''
EOF
#------------------------------------------------------------------------------

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f constant/alpha.*
#------------------------------------------------------------------------------

View File

@ -1,9 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication foamPostProcess -func generateAlphas
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,5 @@
#!/bin/sh
# Run from this directory
cd "${0%/*}" || exit 1
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial clean functions
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"

View File

@ -1,7 +1,5 @@
#!/bin/sh
# Run from this directory
cd "${0%/*}" || exit 1
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial run functions
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"

View File

@ -1,7 +1,5 @@
#!/bin/sh
# Run from this directory
cd "${0%/*}" || exit 1
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial clean functions
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"

View File

@ -1,4 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial run functions
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
usage () {
exec 1>&2
@ -96,12 +100,6 @@ case "$UBC" in
;;
esac
# Run from this directory
cd "${0%/*}" || exit 1
# Source tutorial run functions
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
runApplication blockMesh
[ "$distort" ] && distort
runApplication extrudeMesh

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
(

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd "${0%/*}" || exit 1
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -f 0/cylindrical\(U\)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd "${0%/*}" || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -9,3 +9,5 @@ runApplication blockMesh
runApplication createNonConformalCouples -overwrite
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/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
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/mixerVessel2D
@ -14,3 +14,5 @@ runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -14,3 +15,5 @@ ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform
runParallel foamRun
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -9,3 +9,5 @@ runApplication blockMesh
runApplication createNonConformalCouples -overwrite nonCouple1 nonCouple2
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf pitzDailySteady constant

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf pitzDailySteady 0 constant

View File

@ -1,14 +1,14 @@
#!/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
then
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi
tail -n +4 ../postProcessing/probes/0/U | \
tr -s " " | tr -d '(' | cut -d " " -f1-2 > ../Numerical.dat
gnuplot<<EOF
set terminal postscript eps color enhanced "Helvetica,20"
set output "planarPoiseuille.eps"

View File

@ -1,2 +1,6 @@
#!/bin/bash
cd ${0%/*} || exit 1 # Run from this directory
rm -f positionsZ age* *.eps *_OF
#------------------------------------------------------------------------------

View File

@ -1,4 +1,6 @@
#!/bin/bash
cd ${0%/*} || exit 1 # Run from this directory
./Allclean
# ------ Pos 1 Evaluation

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -11,3 +11,5 @@ runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar -newTimes
#------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
#!/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

View File

@ -1,5 +1,5 @@
#!/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

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd wingMotion_snappyHexMesh

View File

@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/angledDuct
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
rm -f 0/alpha.liquid.gz 0/alpha.liquid
cleanCase
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -27,3 +27,5 @@ runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=$(getApplication)
@ -14,3 +14,5 @@ runApplication createNonConformalCouples -overwrite nonCouple1 nonCouple2
runApplication setFields
runApplication $application
#------------------------------------------------------------------------------

View File

@ -1,4 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial run functions
. "$WM_PROJECT_DIR/bin/tools/RunFunctions"
usage () {
exec 1>&2
@ -48,13 +52,6 @@ do
esac
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
{
./Allmesh.1

Some files were not shown because too many files have changed in this diff Show More