mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
foamGraph* : check if log file exists
This commit is contained in:
@ -29,6 +29,10 @@
|
||||
# Description
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
if (! -f "$1" ) then
|
||||
echo "No file: '$1'"
|
||||
exit 1
|
||||
endif
|
||||
|
||||
set 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
|
||||
|
||||
@ -29,6 +29,10 @@
|
||||
# Description
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
if (! -f "$1" ) then
|
||||
echo "No file: '$1'"
|
||||
exit 1
|
||||
endif
|
||||
|
||||
set tmpK = newK$$.dat
|
||||
cat $1 | grep "Solving for k" | grep -v "solution singularity" | sed s/,//g | awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%f %e\n", NENTRIES, $8)}' - > $tmpK
|
||||
|
||||
@ -29,6 +29,10 @@
|
||||
# Description
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
if (! -f "$1" ) then
|
||||
echo "No file: '$1'"
|
||||
exit 1
|
||||
endif
|
||||
|
||||
set tmpU = newU$$.dat
|
||||
cat $1 | grep "Solving for Ux" | grep -v "solution singularity" | sed s/,//g | awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpU
|
||||
|
||||
Reference in New Issue
Block a user