Skip to content

Commit 35e37ae

Browse files
committed
Merge experiment branch
2 parents d08ca6b + 57f8c86 commit 35e37ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+689
-873
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.grf
12
*.gz
23
log.*
34
postProcessing
@@ -13,3 +14,4 @@ processor*
1314
polyMesh/
1415
*.OpenFOAM
1516
dynamicCode
17+
sequencedVTK/

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ Here's a brief description:
1515

1616
Abrupt contraction of a rectangular channel where cavitation occures. The *blockMeshDict* is written with variables. *interPhaseChangeFoam*, *pisoFoam* and *pimpleFoam* are used.
1717

18-
* **abruptContractionPar**
19-
20-
Parallel edition of abruptContraction.
21-
2218
* **waterChannel**
2319

2420
Two-phase open channel flow. It's a fork of the original interFoam tutorial *waterChannel*. The *surfaces* function is configured to generate water surfaces (namely, the isosurfaces where *alpha.water* is equal to 0.5).

abruptContraction/interPhaseChangeFoam/0/U

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ boundaryField
2727
referenceField uniform (5 0 0);
2828
fluctuationScale (0.02 0.01 0.01);
2929
value uniform (5 0 0);
30-
3130
}
3231
outlet
3332
{
3433
type inletOutlet;
3534
inletValue uniform (0 0 0);
3635
value uniform (0 0 0);
37-
3836
}
3937
side
4038
{
@@ -46,7 +44,7 @@ boundaryField
4644
}
4745
symmetry
4846
{
49-
type noSlip;
47+
type symmetry;
5048
}
5149
}
5250

abruptContraction/interPhaseChangeFoam/0/alpha.water

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ boundaryField
4141
}
4242
symmetry
4343
{
44-
type zeroGradient;
44+
type symmetry;
4545
}
4646
}
4747

abruptContraction/interPhaseChangeFoam/0/k

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ boundaryField
4747

4848
symmetry
4949
{
50-
type fixedValue;
50+
type symmetry;
5151
value uniform 0;
5252
}
5353
}

abruptContraction/interPhaseChangeFoam/0/nut

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ boundaryField
4242

4343
symmetry
4444
{
45-
type zeroGradient;
45+
type symmetry;
4646
}
4747
}
4848

abruptContraction/interPhaseChangeFoam/0/p_rgh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ boundaryField
4242
}
4343
symmetry
4444
{
45-
type zeroGradient;
45+
type symmetry;
4646
}
4747
}
4848

abruptContraction/interPhaseChangeFoam/0/phi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ boundaryField
4343
}
4444
symmetry
4545
{
46-
type calculated;
46+
type symmetry;
4747
value uniform 0;
4848
}
4949
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
cd ${0%/*} || exit 1 # Run from this directory
3+
4+
# Source tutorial run functions
5+
. $WM_PROJECT_DIR/bin/tools/RunFunctions
6+
7+
refineMeshByCellSet()
8+
{
9+
while [ $# -ge 1 ]
10+
do
11+
if [ ! -e log.refineMesh.$1 ]
12+
then
13+
echo "Creating cell set for primary zone - $1"
14+
topoSet -dict system/topoSetDict.$1 > log.topoSet.$1 2>&1
15+
echo "Refining primary zone - $1"
16+
refineMesh -dict system/refineMeshDict.$1 -overwrite \
17+
> log.refineMesh.$1 2>&1
18+
fi
19+
shift
20+
done
21+
}
22+
23+
runApplication blockMesh
24+
refineMeshByCellSet 1
25+
refineWallLayer -overwrite '(walls)' 0.2 >> log.refineWallLayer.1
26+
27+
28+
29+
#------------------------------------------------------------------------------

abruptContraction/interPhaseChangeFoam/Allrun

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory
44
# Source tutorial run functions
55
. $WM_PROJECT_DIR/bin/tools/RunFunctions
66

7-
# Generate the base block mesh
8-
runApplication blockMesh
7+
# Generate the base block mesh and refine
8+
./Allmesh
99

10-
# cp -r 0.orig 0
11-
12-
# Initialise with potentialFoam solution
13-
# runApplication potentialFoam -pName p_rgh
14-
15-
# Run the solver
10+
# Run the solver in parallel
1611
runApplication `getApplication`
1712

1813
# ----------------------------------------------------------------- end-of-file

0 commit comments

Comments
 (0)