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
Commits
f0375fc3
Commit
f0375fc3
authored
Jun 28, 2016
by
Andrew Heather
Browse files
Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop
parents
0f6f3e3c
8752f77a
Changes
162
Hide whitespace changes
Inline
Side-by-side
tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel
View file @
f0375fc3
...
...
@@ -30,7 +30,7 @@ do
done
# Run
runParallel
`
getApplication
`
runParallel
$(
getApplication
)
# Reconstruct
runApplication reconstructPar
-allRegions
...
...
tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun
View file @
f0375fc3
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
application
=
`
getApplication
`
application
=
$(
getApplication
)
./makeMesh
runApplication
$application
...
...
tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun
View file @
f0375fc3
...
...
@@ -17,7 +17,7 @@ do
sed
"s/XXX/
$e
/g"
constant/transportProperties.template
\
>
constant/transportProperties
runApplication
-s
$e
`
getApplication
`
runApplication
-s
$e
$(
getApplication
)
# extract y+, U+
# note: both must be added to foamLog.db
...
...
tutorials/incompressible/icoFoam/cavity/Allrun
View file @
f0375fc3
...
...
@@ -83,7 +83,7 @@ do
esac
previousCase
=
"
$caseName
"
(
cd
$caseName
&&
runApplication
`
getApplication
`
)
(
cd
$caseName
&&
runApplication
$(
getApplication
)
)
done
#------------------------------------------------------------------------------
tutorials/incompressible/icoFoam/elbow/Allrun
View file @
f0375fc3
...
...
@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Get application directory
application
=
`
getApplication
`
application
=
$(
getApplication
)
runApplication fluentMeshToFoam elbow.msh
runApplication
"
$application
"
...
...
tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/Allrun
View file @
f0375fc3
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
application
=
`
getApplication
`
application
=
$(
getApplication
)
./makeMesh
...
...
tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun.pre
View file @
f0375fc3
...
...
@@ -14,4 +14,4 @@ runApplication createBaffles -overwrite
# remove zero-sized patches
runApplication createPatch
-overwrite
cp
-rf
0.org 0
restore0Dir
tutorials/incompressible/pimpleDyMFoam/propeller/Allrun
View file @
f0375fc3
...
...
@@ -8,6 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication decomposePar
runParallel
`
getApplication
`
runParallel
$(
getApplication
)
runApplication reconstructPar
tutorials/incompressible/pimpleDyMFoam/propeller/Allrun.pre
View file @
f0375fc3
...
...
@@ -11,11 +11,8 @@ cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
# - meshing
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh
-overwrite
runApplication renumberMesh
-overwrite
# force removal of fields generated by snappy
...
...
@@ -31,4 +28,4 @@ runApplication createPatch -overwrite
#runApplication moveDynamicMesh -checkAMI
# - set the initial fields
cp
-rf
0.org 0
restore0Dir
tutorials/incompressible/pimpleDyMFoam/wingMotion/Allclean
View file @
f0375fc3
...
...
@@ -4,14 +4,19 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
cd
wingMotion_snappyHexMesh
cleanCase
(
cd
wingMotion_snappyHexMesh
||
exit
1
cleanCase
)
cd
../wingMotion2D_simpleFoam
cleanCase
rm
-rf
0
cd
../wingMotion2D_pimpleDyMFoam
cleanCase
rm
-rf
0
(
cd
wingMotion2D_simpleFoam
||
exit
1
cleanCase
rm
-rf
0
)
(
cd
wingMotion2D_pimpleDyMFoam
||
exit
1
cleanCase
rm
-rf
0
)
tutorials/incompressible/pimpleDyMFoam/wingMotion/Allrun
View file @
f0375fc3
...
...
@@ -5,26 +5,36 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Make 3D mesh in slab of cells.
cd
wingMotion_snappyHexMesh
runApplication blockMesh
runApplication snappyHexMesh
-overwrite
(
cd
wingMotion_snappyHexMesh
||
exit
1
runApplication blockMesh
runApplication snappyHexMesh
-overwrite
)
# Make a 2D mesh by extruding a patch and solve to steady state.
cd
../wingMotion2D_simpleFoam
runApplication extrudeMesh
runApplication createPatch
-overwrite
cp
-r
0.org 0
runApplication simpleFoam
# Copy the mesh from the steady state case and map the results to a
# mesh motion case, then solve transient.
cd
../wingMotion2D_pimpleDyMFoam
cp
-r
../wingMotion2D_simpleFoam/constant/polyMesh constant
cp
-r
0.org 0
runApplication mapFields ../wingMotion2D_simpleFoam
-sourceTime
latestTime
-consistent
mv
0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar
runParallel
`
getApplication
`
runApplication reconstructPar
(
cd
wingMotion2D_simpleFoam
||
exit
1
runApplication extrudeMesh
runApplication createPatch
-overwrite
restore0Dir
runApplication simpleFoam
)
# Copy mesh from the steady state case, map the results to a mesh motion case,
# then solve transient.
(
cd
wingMotion2D_pimpleDyMFoam
||
exit
1
\r
m
-rf
constant/polyMesh
\c
p
-r
../wingMotion2D_simpleFoam/constant/polyMesh constant
restore0Dir
runApplication mapFields ../wingMotion2D_simpleFoam
-sourceTime
latestTime
-consistent
\m
v 0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar
runParallel
$(
getApplication
)
runApplication reconstructPar
)
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/TJunctionFan/Allrun
View file @
f0375fc3
...
...
@@ -4,14 +4,14 @@
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Get application name
application
=
`
getApplication
`
application
=
$(
getApplication
)
runApplication blockMesh
# Create faceZones for baffles and fan
runApplication topoSet
cp
-r
0.org 0
restore0Dir
# Create wall and cyclic baffles and the fields on them
runApplication createBaffles
-overwrite
...
...
tutorials/incompressible/pimpleFoam/channel395/Allrun
View file @
f0375fc3
...
...
@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Get application directory
application
=
`
getApplication
`
application
=
$(
getApplication
)
runApplication blockMesh
...
...
tutorials/incompressible/pimpleFoam/elipsekkLOmega/Allrun
View file @
f0375fc3
...
...
@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Get application directory
application
=
`
getApplication
`
application
=
$(
getApplication
)
runApplication blockMesh
runApplication transformPoints
-scale
'(1.6666 1 1)'
...
...
tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun
View file @
f0375fc3
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
application
=
`
getApplication
`
application
=
$(
getApplication
)
runApplication blockMesh
...
...
tutorials/incompressible/pisoFoam/les/motorBike/Allrun
View file @
f0375fc3
...
...
@@ -31,7 +31,7 @@ then
cloneParallelCase motorBike motorBikeLES
# Do the LES case
cp
lesFiles/Allrun motorBikeLES/
\
c
p lesFiles/Allrun motorBikeLES/
(
cd
motorBikeLES
&&
foamRunTutorials
)
fi
...
...
tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun
View file @
f0375fc3
...
...
@@ -4,12 +4,13 @@
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Set-up the LES case
cp
../lesFiles/fvS
*
../lesFiles/controlDict system/
cp
../lesFiles/turbulenceProperties constant/
\
c
p ../lesFiles/fvS
*
../lesFiles/controlDict system/
\
c
p ../lesFiles/turbulenceProperties constant/
ls
-d
processor
*
| xargs
-I
{}
rm
-rf
./
{}
/0
$1
ls
-d
processor
*
| xargs
-I
{}
mv
./
{}
/500 ./
{}
/0
$1
ls
-d
processor
*
| xargs
-I
{}
rm
-rf
./
{}
/0/uniform
$1
# $1 for special test cases?
\l
s
-d
processor
*
| xargs
-I
{}
\r
m
-rf
./
{}
/0
$1
\l
s
-d
processor
*
| xargs
-I
{}
\m
v ./
{}
/500 ./
{}
/0
$1
\l
s
-d
processor
*
| xargs
-I
{}
\r
m
-rf
./
{}
/0/uniform
$1
runParallel pisoFoam
...
...
tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun
View file @
f0375fc3
...
...
@@ -5,26 +5,27 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# copy motorbike surface from resources directory
cp
$FOAM_TUTORIALS
/resources/geometry/motorBike.obj.gz constant/triSurface/
\
c
p
$FOAM_TUTORIALS
/resources/geometry/motorBike.obj.gz constant/triSurface/
# Make dummy 0 directory
mkdir
0
runApplication blockMesh
# cp system/decomposeParDict.hierarchical system/decomposeParDict
#
\
cp system/decomposeParDict.hierarchical system/decomposeParDict
runApplication decomposePar
-decomposeParDict
system/decomposeParDict.hierarchical
# cp system/decomposeParDict.ptscotch system/decomposeParDict
#
\
cp system/decomposeParDict.ptscotch system/decomposeParDict
runParallel snappyHexMesh
-decomposeParDict
system/decomposeParDict.ptscotch
-profiling
-overwrite
-parallel
find
.
-type
f
-iname
"*level*"
-exec
rm
{}
\;
ls
-d
processor
*
| xargs
-I
{}
cp
-r
0.org ./
{}
/0
$1
#- set the initial fields
# $1 for special test cases?
\l
s
-d
processor
*
| xargs
-I
{}
\r
m
-rf
./
{}
/0
$1
\l
s
-d
processor
*
| xargs
-I
{}
\c
p
-r
0.org ./
{}
/0
$1
runParallel renumberMesh
-overwrite
runParallel potentialFoam
-initialiseUBCs
runParallel
`
getApplication
`
runParallel
$(
getApplication
)
#------------------------------------------------------------------------------
tutorials/incompressible/porousSimpleFoam/angledDuctImplicit/Allrun
View file @
f0375fc3
...
...
@@ -7,5 +7,5 @@ m4 system/blockMeshDict.m4 > system/blockMeshDict
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
runApplication blockMesh
runApplication
`
getApplication
`
runApplication
$(
getApplication
)
tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun
View file @
f0375fc3
...
...
@@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
runApplication
`
getApplication
`
runApplication
$(
getApplication
)
#------------------------------------------------------------------------------
Prev
1
2
3
4
5
6
7
8
9
Next
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