mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cosmetics
This commit is contained in:
@ -28,7 +28,7 @@ Class
|
|||||||
Description
|
Description
|
||||||
Simple SCOPEBlendXiEq model for XiEq based on SCOPEXiEqs correlation
|
Simple SCOPEBlendXiEq model for XiEq based on SCOPEXiEqs correlation
|
||||||
with a linear correction function to give a plausible profile for XiEq.
|
with a linear correction function to give a plausible profile for XiEq.
|
||||||
See \link SCOPELaminarFlameSpeed.H \endlink for details on the SCOPE
|
See @link SCOPELaminarFlameSpeed.H @endlink for details on the SCOPE
|
||||||
laminar flame speed model.
|
laminar flame speed model.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
|
|||||||
@ -27,8 +27,8 @@ Class
|
|||||||
|
|
||||||
Description
|
Description
|
||||||
This is the equilibrium level of the flame wrinkling generated by
|
This is the equilibrium level of the flame wrinkling generated by
|
||||||
inestability. It is a constant (default 2.5). It is used in
|
instability. It is a constant (default 2.5). It is used in
|
||||||
\link XiModel.H \endlink.
|
@link XiModel.H @endlink.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
instability.C
|
instability.C
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
if [ "$1" = "-h" -o "$1" = "-help" -o "$#" -ne 2 ]
|
if [ "$1" = "-h" -o "$1" = "-help" -o "$#" -ne 2 ]
|
||||||
then
|
then
|
||||||
cat <<USAGE 1>&2
|
cat <<USAGE 1>&2
|
||||||
Usage: ${0##*/} srcDir dstDir
|
Usage: ${0##*/} srcDir dstDir
|
||||||
|
|
||||||
Copy OpenFOAM settings from one case to another, without copying
|
Copy OpenFOAM settings from one case to another, without copying
|
||||||
@ -46,30 +46,23 @@ USAGE
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
srcDir=$1
|
srcDir=${1%/}
|
||||||
dstDir=$2
|
dstDir=${2%/}
|
||||||
|
|
||||||
if [ ! -d $srcDir ]
|
for i in $srcDir $dstDir
|
||||||
then
|
do
|
||||||
echo "Error: directory '$srcDir' does not exist"
|
[ -d "$i" ] || { echo "Error: directory '$i' does not exist"; exit 1; }
|
||||||
exit 1
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d $dstDir ]
|
|
||||||
then
|
|
||||||
echo "Error: directory '$dstDir' does not exist"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check that the srcDir looks okay
|
# check that the srcDir looks okay
|
||||||
for i in $srcDir/constant $srcDir/system
|
for i in $srcDir/constant $srcDir/system
|
||||||
do
|
do
|
||||||
if [ ! -d $i ]
|
if [ ! -d "$i" ]
|
||||||
then
|
then
|
||||||
echo "Error: no '${i##*/}' directory in '$srcDir'"
|
echo "Error: no '${i##*/}' directory in '$srcDir'"
|
||||||
echo " does not appear to be an OpenFOAM case"
|
echo " does not appear to be an OpenFOAM case"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# files and directories to copy
|
# files and directories to copy
|
||||||
@ -82,19 +75,19 @@ fileList=$(find -H $srcDir -mindepth 1 -maxdepth 1 -not -name "processor*")
|
|||||||
|
|
||||||
for i in $fileList
|
for i in $fileList
|
||||||
do
|
do
|
||||||
name="${i##*/}"
|
name="${i##*/}"
|
||||||
# skip numerical (results) directories (except 0)
|
# skip numerical (results) directories (except 0)
|
||||||
# and things that look like queuing system output or log files
|
# and things that look like log files or queuing system output
|
||||||
case "$name" in
|
case "$name" in
|
||||||
[1-9] | [0-9]?* | foam.[eo][1-9]* | log | *.log )
|
[1-9] | [0-9]?* | log | *.log | foam.[eo][1-9]* )
|
||||||
echo "$i [skipped]"
|
echo "$i [skipped]"
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$i -> $dstDir/$name"
|
echo "$i -> $dstDir/$name"
|
||||||
rsync --exclude polyMesh --exclude "processor*" -a $i $dstDir
|
rsync --exclude polyMesh --exclude "processor*" -a $i $dstDir
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# --------------------------------------------------------------- end-of-file
|
# --------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
Reference in New Issue
Block a user