mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: relocate deprecated utilities into separate directory
This commit is contained in:
52
bin/deprecated/foamGraphExecTime
Executable file
52
bin/deprecated/foamGraphExecTime
Executable file
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2011-2017 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
|
||||||
|
# foamGraphExecTime
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Deprecated script extract the 'ExecutionTime' for each time-step from a
|
||||||
|
# log file for graphing.
|
||||||
|
#
|
||||||
|
# Superseded by the more general foamLog script.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "$Script: $1 is not a valid filename"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpTime=newTime$$.dat
|
||||||
|
cat $1 | \
|
||||||
|
grep "ExecutionTime = " | \
|
||||||
|
awk 'BEGIN { NENTRIES = 0 ; TPREV = 0.0 }{NENTRIES++; printf("%f %e\n", NENTRIES, $3 - TPREV); TPREV = $3}' - > $tmpTime
|
||||||
|
|
||||||
|
if [ "$(cat $tmpTime | wc -l)" -gt 1 ]; then
|
||||||
|
mv $tmpTime executionTime.dat
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f $tmpTime
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
64
bin/deprecated/foamGraphResKE
Executable file
64
bin/deprecated/foamGraphResKE
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2011-2017 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
|
||||||
|
# foamGraphResKE
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Deprecated script extract initial turbulence residuals for each time-step
|
||||||
|
# from a log file for graphing.
|
||||||
|
#
|
||||||
|
# Superseded by the more general foamLog script.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "$Script: $1 is not a valid filename"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
scan()
|
||||||
|
{
|
||||||
|
tmpFile=new$1$$.dat
|
||||||
|
cat $2 | \
|
||||||
|
grep "Solving for $1" | \
|
||||||
|
grep -v "solution singularity" | \
|
||||||
|
sed s/,//g | \
|
||||||
|
awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpFile
|
||||||
|
|
||||||
|
if [ "$(cat $tmpFile | wc -l)" -gt 1 ]; then
|
||||||
|
echo >> residualKE.dat
|
||||||
|
cat $tmpFile >> residualKE.dat
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm $tmpFile
|
||||||
|
}
|
||||||
|
|
||||||
|
rm -f residualKE.dat
|
||||||
|
scan "k" $1
|
||||||
|
scan "epsilon" $1
|
||||||
|
scan "omega" $1
|
||||||
|
scan "nuTilda" $1
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
64
bin/deprecated/foamGraphResUVWP
Executable file
64
bin/deprecated/foamGraphResUVWP
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2011-2017 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
|
||||||
|
# foamGraphResUVWP
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Deprecated script extract initial velocity and pressure residuals for each
|
||||||
|
# time-step from a log file for graphing.
|
||||||
|
#
|
||||||
|
# Superseded by the more general foamLog script.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
if [ ! -f "$1" ]; then
|
||||||
|
echo "$Script: $1 is not a valid filename"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
scan()
|
||||||
|
{
|
||||||
|
tmpFile=new$1$$.dat
|
||||||
|
cat $2 | \
|
||||||
|
grep "Solving for $1" | \
|
||||||
|
grep -v "solution singularity" | \
|
||||||
|
sed s/,//g | \
|
||||||
|
awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpFile
|
||||||
|
|
||||||
|
if [ "$(cat $tmpFile | wc -l)" -gt 1 ]; then
|
||||||
|
echo >> residualUVWP.dat
|
||||||
|
cat $tmpFile >> residualUVWP.dat
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm $tmpFile
|
||||||
|
}
|
||||||
|
|
||||||
|
rm -f residualUVWP.dat
|
||||||
|
scan "Ux" $1
|
||||||
|
scan "Uy" $1
|
||||||
|
scan "Uz" $1
|
||||||
|
scan "p" $1
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
39
bin/deprecated/stressComponents
Executable file
39
bin/deprecated/stressComponents
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2016-2017 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
|
||||||
|
# stressComponents
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Script to suggest using the new "-postProcess" solver option.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
echo $Script "has been superseded by the -postProcess solver option:"
|
||||||
|
echo "<solverName> -funcs '(R components(turbulenceProperties:R))'"
|
||||||
|
echo "e.g."
|
||||||
|
echo "simpleFoam -postProcess -funcs '(R components(turbulenceProperties:R))'"
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
37
bin/deprecated/wallGradU
Executable file
37
bin/deprecated/wallGradU
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2017 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
|
||||||
|
# wallGradU
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Script to suggest using the new "postProcess" utility.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
echo $Script "has been superseded by the postProcess utility:"
|
||||||
|
echo " postProcess -func 'grad(U)'"
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
37
bin/deprecated/wdot
Executable file
37
bin/deprecated/wdot
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# ========= |
|
||||||
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
# \\ / O peration |
|
||||||
|
# \\ / A nd | Copyright (C) 2017 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
|
||||||
|
# wdot
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# Script to suggest using the new "postProcess" utility.
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
Script=${0##*/}
|
||||||
|
|
||||||
|
echo $Script "has been superseded by the postProcess utility:"
|
||||||
|
echo "postProcess -func XiReactionRate"
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -1,52 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2017 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
|
|
||||||
# foamGraphExecTime
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Deprecated script extract the 'ExecutionTime' for each time-step from a
|
|
||||||
# log file for graphing.
|
|
||||||
#
|
|
||||||
# Superseded by the more general foamLog script.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
if [ ! -f "$1" ]; then
|
|
||||||
echo "$Script: $1 is not a valid filename"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
tmpTime=newTime$$.dat
|
|
||||||
cat $1 | \
|
|
||||||
grep "ExecutionTime = " | \
|
|
||||||
awk 'BEGIN { NENTRIES = 0 ; TPREV = 0.0 }{NENTRIES++; printf("%f %e\n", NENTRIES, $3 - TPREV); TPREV = $3}' - > $tmpTime
|
|
||||||
|
|
||||||
if [ "$(cat $tmpTime | wc -l)" -gt 1 ]; then
|
|
||||||
mv $tmpTime executionTime.dat
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f $tmpTime
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
1
bin/foamGraphExecTime
Symbolic link
1
bin/foamGraphExecTime
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
deprecated/foamGraphExecTime
|
||||||
@ -1,64 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2017 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
|
|
||||||
# foamGraphResKE
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Deprecated script extract initial turbulence residuals for each time-step
|
|
||||||
# from a log file for graphing.
|
|
||||||
#
|
|
||||||
# Superseded by the more general foamLog script.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
if [ ! -f "$1" ]; then
|
|
||||||
echo "$Script: $1 is not a valid filename"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
scan()
|
|
||||||
{
|
|
||||||
tmpFile=new$1$$.dat
|
|
||||||
cat $2 | \
|
|
||||||
grep "Solving for $1" | \
|
|
||||||
grep -v "solution singularity" | \
|
|
||||||
sed s/,//g | \
|
|
||||||
awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpFile
|
|
||||||
|
|
||||||
if [ "$(cat $tmpFile | wc -l)" -gt 1 ]; then
|
|
||||||
echo >> residualKE.dat
|
|
||||||
cat $tmpFile >> residualKE.dat
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm $tmpFile
|
|
||||||
}
|
|
||||||
|
|
||||||
rm -f residualKE.dat
|
|
||||||
scan "k" $1
|
|
||||||
scan "epsilon" $1
|
|
||||||
scan "omega" $1
|
|
||||||
scan "nuTilda" $1
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
1
bin/foamGraphResKE
Symbolic link
1
bin/foamGraphResKE
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
deprecated/foamGraphResKE
|
||||||
@ -1,64 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2011-2017 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
|
|
||||||
# foamGraphResUVWP
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Deprecated script extract initial velocity and pressure residuals for each
|
|
||||||
# time-step from a log file for graphing.
|
|
||||||
#
|
|
||||||
# Superseded by the more general foamLog script.
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
if [ ! -f "$1" ]; then
|
|
||||||
echo "$Script: $1 is not a valid filename"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
scan()
|
|
||||||
{
|
|
||||||
tmpFile=new$1$$.dat
|
|
||||||
cat $2 | \
|
|
||||||
grep "Solving for $1" | \
|
|
||||||
grep -v "solution singularity" | \
|
|
||||||
sed s/,//g | \
|
|
||||||
awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpFile
|
|
||||||
|
|
||||||
if [ "$(cat $tmpFile | wc -l)" -gt 1 ]; then
|
|
||||||
echo >> residualUVWP.dat
|
|
||||||
cat $tmpFile >> residualUVWP.dat
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm $tmpFile
|
|
||||||
}
|
|
||||||
|
|
||||||
rm -f residualUVWP.dat
|
|
||||||
scan "Ux" $1
|
|
||||||
scan "Uy" $1
|
|
||||||
scan "Uz" $1
|
|
||||||
scan "p" $1
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
1
bin/foamGraphResUVWP
Symbolic link
1
bin/foamGraphResUVWP
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
deprecated/foamGraphResUVWP
|
||||||
@ -1,39 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2016-2017 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
|
|
||||||
# stressComponents
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Script to suggest using the new "-postProcess" solver option.
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
echo $Script "has been superseded by the -postProcess solver option:"
|
|
||||||
echo "<solverName> -funcs '(R components(turbulenceProperties:R))'"
|
|
||||||
echo "e.g."
|
|
||||||
echo "simpleFoam -postProcess -funcs '(R components(turbulenceProperties:R))'"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
1
bin/stressComponents
Symbolic link
1
bin/stressComponents
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
deprecated/stressComponents
|
||||||
@ -1,37 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2017 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
|
|
||||||
# wallGradU
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Script to suggest using the new "postProcess" utility.
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
echo $Script "has been superseded by the postProcess utility:"
|
|
||||||
echo " postProcess -func 'grad(U)'"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
1
bin/wallGradU
Symbolic link
1
bin/wallGradU
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
deprecated/wallGradU
|
||||||
37
bin/wdot
37
bin/wdot
@ -1,37 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# ========= |
|
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
# \\ / O peration |
|
|
||||||
# \\ / A nd | Copyright (C) 2017 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
|
|
||||||
# wdot
|
|
||||||
#
|
|
||||||
# Description
|
|
||||||
# Script to suggest using the new "postProcess" utility.
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Script=${0##*/}
|
|
||||||
|
|
||||||
echo $Script "has been superseded by the postProcess utility:"
|
|
||||||
echo "postProcess -func XiReactionRate"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
Reference in New Issue
Block a user