Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
6be51468
Commit
6be51468
authored
Feb 19, 2015
by
Henry
Browse files
tutorials: rationalized log
parent
0ca9a1fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
bin/paraFoam
View file @
6be51468
...
...
@@ -182,10 +182,10 @@ all)
if
[
-f
constant/polyMesh/blockMeshDict
]
then
touch
"
$caseName
.blockMesh"
echo
"
c
reated '
$caseName
.blockMesh'"
echo
"
C
reated '
$caseName
.blockMesh'"
fi
touch
"
$caseName
.
$extension
"
echo
"
c
reated '
$caseName
.
$extension
'"
echo
"
C
reated '
$caseName
.
$extension
'"
# discover probable regions
for
region
in
constant/
*
do
...
...
@@ -193,14 +193,14 @@ all)
then
regionName
=
${
region
##*/
}
touch
"
$caseName
{
$regionName
}.
$extension
"
echo
"
c
reated '
$caseName
{
$regionName
}.
$extension
'"
echo
"
C
reated '
$caseName
{
$regionName
}.
$extension
'"
fi
done
exit
0
;;
true
)
touch
"
$caseFile
"
echo
"
c
reated '
$caseFile
'"
echo
"
C
reated '
$caseFile
'"
exit
0
;;
esac
...
...
@@ -258,7 +258,7 @@ else
[
-e
$caseFile
]
||
{
trap
"rm -f
$caseFile
2>/dev/null; exit 0"
EXIT TERM INT
touch
"
$caseFile
"
echo
"
c
reated temporary '
$caseFile
'"
echo
"
C
reated temporary '
$caseFile
'"
}
# For now filter out any ld.so errors. Caused by non-system compiler?
...
...
tutorials/basic/laplacianFoam/flange/Allrun
View file @
6be51468
...
...
@@ -13,7 +13,7 @@ runAnsysToFoam()
then
echo
"ansysToFoam already run on
$PWD
: remove log file to re-run"
else
echo
"ansysToFoam: converting mesh
$1
"
echo
"ansysToFoam: converting mesh
$1
"
>
log.ansysToFoam 2>&1
ansysToFoam
$1
-scale
$2
>
log.ansysToFoam 2>&1
fi
}
...
...
tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/validation/createGraphs
View file @
6be51468
...
...
@@ -3,7 +3,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-201
4
OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
# \\/ M anipulation |
#-------------------------------------------------------------------------------
# License
...
...
@@ -48,7 +48,8 @@ createEpsT()
set xrange [0:0.08]
set yrange [285:310]
plot
\
"
$EXPT
" u (
\$
1/1000):(
\$
2+273.15) title "Expt 0.
$index
" with points lt 1 pt 6,
\
"
$EXPT
" u (
\$
1/1000):(
\$
2+273.15) title "Expt 0.
$index
"
\
with points lt 1 pt 6,
\
"
$OF
" title "OpenFOAM 0.
$index
" with lines linetype -1
EOF
}
...
...
@@ -71,7 +72,8 @@ createEpsU()
set xrange [0:0.08]
set yrange [-0.2:0.2]
plot
\
"
$EXPT
" u (
\$
1/1000):(
\$
2) title "Expt 0.
$index
" with points lt 1 pt 6,
\
"
$EXPT
" u (
\$
1/1000):(
\$
2) title "Expt 0.
$index
"
\
with points lt 1 pt 6,
\
"
$OF
" u 1:3 title "OpenFOAM 0.
$index
" with lines linetype -1
EOF
}
...
...
@@ -102,7 +104,8 @@ EXPTDATAROOT=./exptData
TSets
=
"1 3 4 5 6 7 9"
for
i
in
$TSets
do
echo
" processing temperature profile at y/yMax of 0.
$i
"
echo
" processing temperature profile at y/yMax of 0.
$i
"
\
>
log.createGraphs 2>&1
OF
=
"
$OFDATAROOT
/y0.
${
i
}
_T.xy"
EXPT
=
"
$EXPTDATAROOT
/mt_z0_
${
i
}
0_lo.dat"
...
...
@@ -115,7 +118,8 @@ done
USets
=
"1 3 4 5 6 7 9"
for
i
in
$USets
do
echo
" processing velocity profile at y/yMax of 0.
$i
"
echo
" processing velocity profile at y/yMax of 0.
$i
"
\
>
log.createGraphs 2>&1
OF
=
"
$OFDATAROOT
/y0.
${
i
}
_U.xy"
EXPT
=
"
$EXPTDATAROOT
/mv_z0_
${
i
}
0_lo.dat"
...
...
tutorials/multiphase/cavitatingFoam/les/throttle/Allrun
View file @
6be51468
...
...
@@ -13,12 +13,13 @@ refineMeshByCellSet()
do
if
[
!
-e
log.refineMesh.
$1
]
then
echo
"
c
reating cell set for primary zone -
$1
"
echo
"
C
reating cell set for primary zone -
$1
"
cp
system/topoSetDict.
$1
system/topoSetDict
topoSet
>
log.topoSet.
$1
2>&1
echo
"refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
>
log.refineMesh.
$1
2>&1
echo
"Refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
\
>
log.refineMesh.
$1
2>&1
fi
shift
done
...
...
tutorials/multiphase/cavitatingFoam/les/throttle3D/Allrun
View file @
6be51468
...
...
@@ -13,12 +13,13 @@ refineMeshByCellSet()
do
if
[
!
-e
log.refineMesh.
$1
]
then
echo
"
c
reating cell set for primary zone -
$1
"
echo
"
C
reating cell set for primary zone -
$1
"
cp
system/topoSetDict.
$1
system/topoSetDict
topoSet
>
log.topoSet.
$1
2>&1
echo
"refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
>
log.refineMesh.
$1
2>&1
echo
"Refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
\
>
log.refineMesh.
$1
2>&1
fi
shift
done
...
...
tutorials/multiphase/cavitatingFoam/ras/throttle/Allrun
View file @
6be51468
...
...
@@ -12,12 +12,13 @@ refineMeshByCellSet()
do
if
[
!
-e
log.refineMesh.
$1
]
then
echo
"
c
reating cell set for primary zone -
$1
"
echo
"
C
reating cell set for primary zone -
$1
"
cp
system/topoSetDict.
$1
system/topoSetDict
topoSet
>
log.topoSet.
$1
2>&1
echo
"refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
>
log.refineMesh.
$1
2>&1
echo
"Refining primary zone -
$1
"
refineMesh
-dict
system/refineMeshDict
-overwrite
\
>
log.refineMesh.
$1
2>&1
fi
shift
done
...
...
tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun
View file @
6be51468
...
...
@@ -10,7 +10,7 @@ application=`getApplication`
rm
-rf
0
cp
-r
0.org 0
setFields
runApplication
setFields
#runApplication $application
#runApplication decomposePar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment