Skip to content

Commit

Permalink
Modified waterChannel tutorial to make case better posed
Browse files Browse the repository at this point in the history
Existing case did not properly converge and suffered slow convergence
with the water level failing to reach an equilibrium.  A slight rise in
the channel appears to help the water level reach an equlibrium when the flow
rate over the rise matches the inlet flow rate.
  • Loading branch information
Chris Greenshields committed May 19, 2015
1 parent edde7be commit dd364b1
Show file tree
Hide file tree
Showing 25 changed files with 45 additions and 328 deletions.
4 changes: 2 additions & 2 deletions tutorials/multiphase/interFoam/ras/waterChannel/0/U
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand All @@ -16,7 +16,7 @@ FoamFile

dimensions [0 1 -1 0 0 0 0];

internalField uniform (2 0 0);
internalField uniform (1 0 0);

boundaryField
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multiphase/interFoam/ras/waterChannel/0/k
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multiphase/interFoam/ras/waterChannel/0/nut
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multiphase/interFoam/ras/waterChannel/0/omega
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multiphase/interFoam/ras/waterChannel/0/p_rgh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Expand Down
20 changes: 20 additions & 0 deletions tutorials/multiphase/interFoam/ras/waterChannel/Allmesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=`getApplication`

runApplication blockMesh

echo "Creating channel"
i=1
while [ "$i" -lt 3 ] ; do
cp system/extrudeMeshDict.${i} system/extrudeMeshDict
echo "Running extrudeMesh, instance" ${i}
extrudeMesh > log.extrudeMesh.${i}
i=`expr $i + 1`
done

# ----------------------------------------------------------------- end-of-file
11 changes: 1 addition & 10 deletions tutorials/multiphase/interFoam/ras/waterChannel/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory

application=`getApplication`

runApplication blockMesh

echo "Creating channel"
i=1
while [ "$i" -lt 3 ] ; do
cp system/extrudeMeshDict.${i} system/extrudeMeshDict
echo "Running extrudeMesh, instance" ${i}
extrudeMesh > log.extrudeMesh.${i}
i=`expr $i + 1`
done
./Allmesh

cp 0/alpha.water.org 0/alpha.water
runApplication setFields
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit dd364b1

Please sign in to comment.