Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
707582f0
Commit
707582f0
authored
Jun 28, 2017
by
Mark OLESEN
Browse files
TUT: make it easier to perform dry runs for lumpedPointMotion
parent
7d6db0fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/lumpedPointMotion/building/Allrun.move
View file @
707582f0
...
...
@@ -27,13 +27,18 @@ linkParallelCase()
echo
"Linking
$dst
parallel case from
$src
"
mkdir
$dst
for
i
in
constant system
# Copy system - may wish to change things
for
i
in
system 0
do
cp
-r
$src
/
$i
$dst
echo
" copy
$i
/"
(
cd
$dst
&&
cp
-r
../
$src
/
$i
.
)
done
echo
" link processor directories with
$#
times:
$@
"
echo
" link constant/"
(
cd
$dst
&&
ln
-sf
../
$src
/constant
.
)
echo
" link processor*/ with
$#
times:
$@
"
for
proc
in
$(
cd
$src
&&
\l
s
-d
processor
*
)
do
(
cd
$dst
&&
ln
-sf
../
$src
/
$proc
.
)
...
...
tutorials/incompressible/lumpedPointMotion/building/files/Allrun.movement
View file @
707582f0
...
...
@@ -3,7 +3,8 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# The 0/ field only
runApplication reconstructPar
-withZero
-time
0
# runApplication reconstructPar -withZero -time 0
runApplication reconstructParMesh
-constant
-withZero
-time
0
# Check the location of the pressure zones
# runParallel lumpedPointZones <<- Parallel file writing not yet done
...
...
tutorials/incompressible/lumpedPointMotion/building/files/Allrun.transient
View file @
707582f0
...
...
@@ -2,6 +2,9 @@
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Cleanup old junk that may prevent things from starting
\r
m
-f
comms/OpenFOAM.lock
# If OpenFOAM stops prematurely, trigger the external solver to stop
trap
'[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock'
EXIT TERM INT
...
...
tutorials/incompressible/lumpedPointMotion/building/steady/Allrun.pre
View file @
707582f0
...
...
@@ -15,7 +15,7 @@ unset parallel
parallel
=
true
# Dummy 0 directory
mkdir
0
mkdir
-p
0
if
[
"
${
parallel
:-
false
}
"
=
false
]
then
...
...
@@ -39,6 +39,11 @@ else
runParallel renumberMesh
-overwrite
# In case serial calculations are needed later
restore0Dir
# Overwrite dummy 0 directory
# runApplication reconstructParMesh -constant
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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