Skip to content
GitLab
Menu
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
Commits
a403e722
Commit
a403e722
authored
Dec 20, 2018
by
Mark Olesen
Browse files
TUT: tidying of periodicHill
parent
2a51537d
Changes
11
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/pimpleFoam/LES/periodicHill/Allrun
View file @
a403e722
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
(
cd
steadyState
&&
./Allrun
)
(
cd
transient
&&
./Allrun
)
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/Allrun
View file @
a403e722
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
runApplication blockMesh
...
...
@@ -12,4 +10,4 @@ runApplication decomposePar
runParallel simpleFoam
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/system/blockMeshDict
View file @
a403e722
...
...
@@ -71,8 +71,8 @@ edges #codeStream
{
profile[i].y() =
25.07355893131
+ 0.9754803562315*x
- 1.016116352781E-01*x*x
+ 0.9754803562315*x
- 1.016116352781E-01*x*x
+ 1.889794677828E-03*x*x*x;
}
else if (x >= 14 && x < 20)
...
...
tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/system/decomposeParDict
View file @
a403e722
...
...
@@ -10,18 +10,17 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
note "mesh decomposition control dictionary";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 16;
method
simple;
method simple;
simpleC
oeffs
c
oeffs
{
n
(4 2 2);
n (4 2 2);
}
...
...
tutorials/incompressible/pimpleFoam/LES/periodicHill/steadyState/system/topoSetDict
View file @
a403e722
...
...
@@ -22,41 +22,29 @@ actions
type faceSet;
action new;
source patchToFace;
sourceInfo
{
name inlet;
}
patch inlet;
}
{
name inletCellSet;
type cellSet;
action new;
source faceToCell;
sourceInfo
{
set inletFaceSet;
option any;
}
set inletFaceSet;
option any;
}
{
name inletCellSet;
type cellSet;
action subset;
source boxToCell;
sourceInfo
{
box (-100 -100 -100)(0.1 100 100);
}
box (-100 -100 -100)(0.1 100 100);
}
{
name inletCellZone;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set inletCellSet;
}
set inletCellSet;
}
);
...
...
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allclean
View file @
a403e722
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
# Source tutorial clean functions
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/CleanFunctions
# Tutorial clean functions
cleanCase
rm
-rf
processor
*
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/Allrun
View file @
a403e722
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
# Tutorial run functions
# Source tutorial run functions
.
$WM_PROJECT_DIR
/bin/tools/RunFunctions
echo
"Linking processor*/ directory"
for
proc
in
$(
\l
s
-d
../steadyState/processor
*
)
do
[
-d
"
$proc
"
]
&&
ln
-sf
"
$proc
"
.
done
ln
-s
$(
echo
../steadyState/processor
*
)
.
runParallel pimpleFoam
runParallel pimpleFoam
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/createPlots
View file @
a403e722
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
#
r
un from this directory
#!/bin/
ba
sh
cd
${
0
%/*
}
||
exit
1
#
R
un from this directory
time
=
$(
foamListTimes
-latestTime
-processor
)
time
=
"
$(
foamListTimes
-latestTime
-processor
)
"
echo
"Creating plots for time
$time
"
...
...
@@ -73,3 +73,4 @@ do
gnuplot
<<<
$(
plotStr
$i
$exp
)
done
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/system/blockMeshDict
View file @
a403e722
...
...
@@ -71,8 +71,8 @@ edges #codeStream
{
profile[i].y() =
25.07355893131
+ 0.9754803562315*x
- 1.016116352781E-01*x*x
+ 0.9754803562315*x
- 1.016116352781E-01*x*x
+ 1.889794677828E-03*x*x*x;
}
else if (x >= 14 && x < 20)
...
...
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/system/cuttingPlane
View file @
a403e722
...
...
@@ -45,3 +45,4 @@ cuttingPlane
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/LES/periodicHill/transient/system/decomposeParDict
View file @
a403e722
...
...
@@ -10,18 +10,17 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
note "mesh decomposition control dictionary";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 16;
method
simple;
method simple;
simpleC
oeffs
c
oeffs
{
n
(4 2 2);
n (4 2 2);
}
...
...
Write
Preview
Supports
Markdown
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