tutorials/incompressibleVoF/damBreak: Simplification of variants

This commit is contained in:
Will Bainbridge
2023-09-26 10:59:41 +01:00
parent da442e8eab
commit 4b6eade88c
98 changed files with 242 additions and 1694 deletions

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object T; object T;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -46,4 +47,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -38,7 +38,7 @@ boundaryField
atmosphere atmosphere
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value uniform (0 0 0); value $internalField;
} }
defaultFaces defaultFaces

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object alpha.water; object alpha.water;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -37,8 +38,8 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue $internalField;
value uniform 0; value $internalField;
} }
defaultFaces defaultFaces
@ -47,4 +48,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -23,26 +23,26 @@ boundaryField
leftWall leftWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
rightWall rightWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
lowerWall lowerWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue $internalField;
value uniform 0.1; value $internalField;
} }
defaultFaces defaultFaces

View File

@ -23,26 +23,26 @@ boundaryField
leftWall leftWall
{ {
type kqRWallFunction; type kqRWallFunction;
value uniform 0.1; value $internalField;
} }
rightWall rightWall
{ {
type kqRWallFunction; type kqRWallFunction;
value uniform 0.1; value $internalField;
} }
lowerWall lowerWall
{ {
type kqRWallFunction; type kqRWallFunction;
value uniform 0.1; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue $internalField;
value uniform 0.1; value $internalField;
} }
defaultFaces defaultFaces

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object nuTilda; object nuTilda;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -37,8 +38,8 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue $internalField;
value uniform 0; value $internalField;
} }
defaultFaces defaultFaces
@ -47,4 +48,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -23,25 +23,25 @@ boundaryField
leftWall leftWall
{ {
type nutkWallFunction; type nutkWallFunction;
value uniform 0; value $internalField;
} }
rightWall rightWall
{ {
type nutkWallFunction; type nutkWallFunction;
value uniform 0; value $internalField;
} }
lowerWall lowerWall
{ {
type nutkWallFunction; type nutkWallFunction;
value uniform 0; value $internalField;
} }
atmosphere atmosphere
{ {
type calculated; type calculated;
value uniform 0; value $internalField;
} }
defaultFaces defaultFaces

View File

@ -16,33 +16,33 @@ FoamFile
dimensions [0 0 -1 0 0 0 0]; dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.1; internalField uniform 11.1;
boundaryField boundaryField
{ {
leftWall leftWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 0.1; value $internalField;
} }
rightWall rightWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 0.1; value $internalField;
} }
lowerWall lowerWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 0.1; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue $internalField;
value uniform 0.1; value $internalField;
} }
defaultFaces defaultFaces

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object p_rgh; object p_rgh;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,4 +50,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object p_rgh; object p_rgh;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,4 +50,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,7 +28,7 @@ divSchemes
{ {
div(phi,alpha) Gauss interfaceCompression vanLeer 1; div(phi,alpha) Gauss interfaceCompression vanLeer 1;
div(rhoPhi,U) Gauss linearUpwind grad(U);Gauss upwind; div(rhoPhi,U) Gauss linearUpwind grad(U);
div(alphaRhoPhi,e) Gauss upwind; div(alphaRhoPhi,e) Gauss upwind;
div(alphaRhoPhi,T) Gauss upwind; div(alphaRhoPhi,T) Gauss upwind;

View File

@ -24,19 +24,23 @@ boundaryField
{ {
type noSlip; type noSlip;
} }
rightWall rightWall
{ {
type noSlip; type noSlip;
} }
lowerWall lowerWall
{ {
type noSlip; type noSlip;
} }
atmosphere atmosphere
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value $internalField; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -24,20 +24,24 @@ boundaryField
{ {
type zeroGradient; type zeroGradient;
} }
rightWall rightWall
{ {
type zeroGradient; type zeroGradient;
} }
lowerWall lowerWall
{ {
type zeroGradient; type zeroGradient;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue $internalField; inletValue $internalField;
value $internalField; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -23,24 +23,28 @@ boundaryField
leftWall leftWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
rightWall rightWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
lowerWall lowerWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0.1; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue $internalField;
value uniform 0.1; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -25,22 +25,26 @@ boundaryField
type kqRWallFunction; type kqRWallFunction;
value $internalField; value $internalField;
} }
rightWall rightWall
{ {
type kqRWallFunction; type kqRWallFunction;
value $internalField; value $internalField;
} }
lowerWall lowerWall
{ {
type kqRWallFunction; type kqRWallFunction;
value $internalField; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue $internalField; inletValue $internalField;
value $internalField; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object nuTilda; object nuTilda;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -37,8 +38,8 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue $internalField;
value uniform 0; value $internalField;
} }
defaultFaces defaultFaces
@ -47,4 +48,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -25,21 +25,25 @@ boundaryField
type nutkWallFunction; type nutkWallFunction;
value $internalField; value $internalField;
} }
rightWall rightWall
{ {
type nutkWallFunction; type nutkWallFunction;
value $internalField; value $internalField;
} }
lowerWall lowerWall
{ {
type nutkWallFunction; type nutkWallFunction;
value $internalField; value $internalField;
} }
atmosphere atmosphere
{ {
type calculated; type calculated;
value $internalField; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -23,24 +23,28 @@ boundaryField
leftWall leftWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 11.1; value $internalField;
} }
rightWall rightWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 11.1; value $internalField;
} }
lowerWall lowerWall
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 11.1; value $internalField;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 11.1; inletValue $internalField;
value uniform 11.1; value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -25,22 +25,25 @@ boundaryField
type fixedFluxPressure; type fixedFluxPressure;
value $internalField; value $internalField;
} }
rightWall rightWall
{ {
type fixedFluxPressure; type fixedFluxPressure;
value $internalField; value $internalField;
} }
lowerWall lowerWall
{ {
type fixedFluxPressure; type fixedFluxPressure;
value $internalField; value $internalField;
} }
atmosphere atmosphere
{ {
type prghTotalPressure; type prghTotalPressure;
p0 $internalField; p0 $internalField;
value $internalField;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -4,17 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
keepCases="damBreak" cleanVoFCase
loseCases="damBreakFine"
for case in $keepCases
do
(cd $case && foamCleanTutorials)
done
for case in $loseCases
do
removeCase $case
done
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -4,43 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
setDamBreakFine ()
{
blockMeshDict="system/blockMeshDict"
controlDict="system/controlDict"
sed \
-e s/"23 8"/"46 10"/g \
-e s/"19 8"/"40 10"/g \
-e s/"23 42\(.*\) 1 1)"/"46 76\1 2 1)"/g \
-e s/"4 42\(.*\) 1 1)"/"4 76\1 2 1)"/g \
-e s/"19 42\(.*\) 1 1)"/"40 76\1 2 1)"/g \
$blockMeshDict > temp.$$
mv temp.$$ $blockMeshDict
sed \
-e s/"\(deltaT[ \t]*\) 0.001;"/"\1 5e-04;"/g \
-e s/"\(endTime[ \t]*\) 1;"/"\1 0.4;"/g \
$controlDict > temp.$$
mv temp.$$ $controlDict
}
# Do damBreak
(cd damBreak && foamRunTutorials)
# Clone case
cloneCase damBreak damBreakFine
(
cd damBreakFine || exit
# Modify case
setDamBreakFine
cp ../damBreak/0/alpha.water.orig 0/alpha.water
# And execute
runApplication blockMesh runApplication blockMesh
runApplication setFields runApplication setFields
runApplication decomposePar runApplication $(getApplication)
runParallel $(getApplication)
runApplication reconstructPar
)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,47 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
leftWall
{
type noSlip;
}
rightWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,50 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [];
internalField uniform 0;
boundaryField
{
leftWall
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.1;
boundaryField
{
leftWall
{
type kqRWallFunction;
value uniform 0.1;
}
rightWall
{
type kqRWallFunction;
value uniform 0.1;
}
lowerWall
{
type kqRWallFunction;
value uniform 0.1;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,50 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type nutkWallFunction;
value uniform 0;
}
rightWall
{
type nutkWallFunction;
value uniform 0;
}
lowerWall
{
type nutkWallFunction;
value uniform 0;
}
atmosphere
{
type calculated;
value uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type fixedFluxPressure;
value uniform 0;
}
rightWall
{
type fixedFluxPressure;
value uniform 0;
}
lowerWall
{
type fixedFluxPressure;
value uniform 0;
}
atmosphere
{
type prghTotalPressure;
p0 uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,14 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=$(getApplication)
runApplication blockMesh
runApplication setFields
runApplication $application
#------------------------------------------------------------------------------

View File

@ -1,42 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
simpleCoeffs
{
n (2 2 1);
}
hierarchicalCoeffs
{
n (1 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -46,7 +46,7 @@ timePrecision 6;
runTimeModifiable yes; runTimeModifiable yes;
adjustTimeStep on; adjustTimeStep yes;
maxCo 1; maxCo 1;
maxAlphaCo 1; maxAlphaCo 1;

View File

@ -26,17 +26,20 @@ gradSchemes
divSchemes divSchemes
{ {
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss interfaceCompression vanLeer 1; div(phi,alpha) Gauss interfaceCompression vanLeer 1;
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,omega) Gauss upwind; div(phi,omega) Gauss upwind;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
{ {
default Gauss linear corrected; default Gauss linear uncorrected;
} }
interpolationSchemes interpolationSchemes
@ -46,7 +49,7 @@ interpolationSchemes
snGradSchemes snGradSchemes
{ {
default corrected; default uncorrected;
} }

View File

@ -78,4 +78,5 @@ relaxationFactors
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,7 +10,7 @@ FoamFile
format ascii; format ascii;
class volVectorField; class volVectorField;
location "0"; location "0";
object U.orig; object U;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,13 +23,12 @@ boundaryField
atmosphere atmosphere
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value uniform (0 0 0); value $internalField;
} }
walls walls
{ {
type uniformFixedValue; type uniformFixedValue;
uniformValue constant (0 0 0); uniformValue constant (0 0 0);
value uniform (0 0 0);
} }
} }

View File

@ -23,8 +23,8 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0; inletValue $internalField;
value uniform 0; value $internalField;
} }
walls walls
{ {

View File

@ -23,13 +23,13 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.00015; inletValue $internalField;
value uniform 0.00015; value $internalField;
} }
walls walls
{ {
type kqRWallFunction; type kqRWallFunction;
value uniform 0.00015; value $internalField;
} }
} }

View File

@ -29,7 +29,7 @@ boundaryField
type nutkRoughWallFunction; type nutkRoughWallFunction;
Ks uniform 0.0001; Ks uniform 0.0001;
Cs uniform 0.5; Cs uniform 0.5;
value uniform 5e-07; value $internalField;
} }
} }

View File

@ -23,13 +23,13 @@ boundaryField
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 2; inletValue $internalField;
value uniform 2; value $internalField;
} }
walls walls
{ {
type omegaWallFunction; type omegaWallFunction;
value uniform 2; value $internalField;
} }
} }

View File

@ -25,14 +25,14 @@ boundaryField
type prghTotalPressure; type prghTotalPressure;
psi none; psi none;
gamma 1; gamma 1;
p0 uniform 0; p0 $internalField;
value uniform 0; value $internalField;
} }
walls walls
{ {
type fixedFluxPressure; type fixedFluxPressure;
gradient uniform 0; gradient $internalField;
value uniform 0; value $internalField;
} }
} }

View File

@ -9,6 +9,7 @@ FoamFile
{ {
format ascii; format ascii;
class dictionary; class dictionary;
location "system";
object blockMeshDict; object blockMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -9,14 +9,14 @@ FoamFile
{ {
format ascii; format ascii;
class dictionary; class dictionary;
location "constant"; location "system";
object phaseProperties; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air); numberOfSubdomains 6;
sigma 0.07; method scotch;
// ************************************************************************* // // ************************************************************************* //

View File

@ -67,9 +67,6 @@ PIMPLE
momentumPredictor no; momentumPredictor no;
nCorrectors 3; nCorrectors 3;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
pRefPoint (0.51 0.51 0.51);
pRefValue 0;
} }
relaxationFactors relaxationFactors

View File

@ -17,7 +17,6 @@ FoamFile
defaultFieldValues defaultFieldValues
( (
volScalarFieldValue alpha.water 0 volScalarFieldValue alpha.water 0
volVectorFieldValue U (0 0 0)
); );
regions regions

View File

@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanVoFCase
rm -rf 0 constant
find system -type f -not \( \
-name blockMeshDict.fine -or -name decomposeParDict \
\) -delete
#------------------------------------------------------------------------------

View File

@ -0,0 +1,23 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy the case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleVoF
cp -rn $path/damBreak/0 $path/damBreak/constant $path/damBreak/system .
rm -f 0/alpha.water
# Set a new time-step
runApplication foamDictionary system/controlDict \
-entry deltaT -set 5e-4
# Run
runApplication blockMesh -dict system/blockMeshDict.fine
runApplication setFields
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -9,26 +9,19 @@ FoamFile
{ {
format ascii; format ascii;
class dictionary; class dictionary;
location "system"; object blockMeshDict;
object setFieldsDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues #include "blockMeshDict"
(
volScalarFieldValue alpha.water 0
);
regions blocks
( (
boxToCell hex (0 1 5 4 12 13 17 16) (46 10 1) simpleGrading (1 1 1)
{ hex (2 3 7 6 14 15 19 18) (40 10 1) simpleGrading (1 1 1)
box (0 0 -1) (0.1461 0.292 1); hex (4 5 9 8 16 17 21 20) (46 76 1) simpleGrading (1 2 1)
fieldValues hex (5 6 10 9 17 18 22 21) (4 76 1) simpleGrading (1 2 1)
( hex (6 7 11 10 18 19 23 22) (40 76 1) simpleGrading (1 2 1)
volScalarFieldValue alpha.water 1
);
}
); );

View File

@ -23,20 +23,5 @@ simpleCoeffs
n (2 2 1); n (2 2 1);
} }
hierarchicalCoeffs
{
n (1 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* // // ************************************************************************* //

View File

@ -4,17 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
keepCases="damBreak" cleanVoFCase
loseCases="damBreakFine"
for case in $keepCases rm -rf 0 system
do
(cd $case && foamCleanTutorials)
done
for case in $loseCases find constant -type f -not \( \
do -name fvModels -or -name momentumTransport \
removeCase $case \) -delete
done
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -4,43 +4,18 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
setDamBreakFine () # Copy the case
{ isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleVoF
blockMeshDict="system/blockMeshDict" cp -rn $path/damBreak/0 $path/damBreak/constant $path/damBreak/system .
controlDict="system/controlDict" rm -f 0/alpha.water
sed \
-e s/"23 8"/"46 10"/g \
-e s/"19 8"/"40 10"/g \
-e s/"23 42\(.*\) 1 1)"/"46 76\1 2 1)"/g \
-e s/"4 42\(.*\) 1 1)"/"4 76\1 2 1)"/g \
-e s/"19 42\(.*\) 1 1)"/"40 76\1 2 1)"/g \
$blockMeshDict > temp.$$
mv temp.$$ $blockMeshDict
sed \
-e s/"\(deltaT[ \t]*\) 0.001;"/"\1 5e-04;"/g \
-e s/"\(endTime[ \t]*\) 1;"/"\1 0.4;"/g \
$controlDict > temp.$$
mv temp.$$ $controlDict
}
# Do damBreak # Increase the number of limiter iterations
(cd damBreak && foamRunTutorials) runApplication foamDictionary system/fvSolution \
-entry solvers/"alpha.water.*"/nLimiterIter -set 5
# Clone case # Run
cloneCase damBreak damBreakFine
(
cd damBreakFine || exit
# Modify case
setDamBreakFine
cp ../damBreak/0/alpha.water.orig 0/alpha.water
# And execute
runApplication blockMesh runApplication blockMesh
runApplication setFields runApplication setFields
runApplication decomposePar runApplication $(getApplication)
runParallel $(getApplication)
runApplication reconstructPar
)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -10,11 +10,10 @@ FoamFile
format ascii; format ascii;
class dictionary; class dictionary;
location "constant"; location "constant";
object momentumTransport; object fvModels;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,14 +14,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS; simulationType laminar;
RAS RAS
{ {
model kEpsilon; model kEpsilon;
turbulence on; turbulence on;
printCoeffs on; printCoeffs on;
} }

View File

@ -1,47 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
leftWall
{
type noSlip;
}
rightWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,50 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [];
internalField uniform 0;
boundaryField
{
leftWall
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type fixedFluxPressure;
value uniform 0;
}
rightWall
{
type fixedFluxPressure;
value uniform 0;
}
lowerWall
{
type fixedFluxPressure;
value uniform 0;
}
atmosphere
{
type prghTotalPressure;
p0 uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,14 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=$(getApplication)
runApplication blockMesh
runApplication setFields
runApplication $application
#------------------------------------------------------------------------------

View File

@ -1,21 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -1,105 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.146;
vertices
(
(0 0 0)
(2 0 0)
(2.16438 0 0)
(4 0 0)
(0 0.32876 0)
(2 0.32876 0)
(2.16438 0.32876 0)
(4 0.32876 0)
(0 4 0)
(2 4 0)
(2.16438 4 0)
(4 4 0)
(0 0 0.1)
(2 0 0.1)
(2.16438 0 0.1)
(4 0 0.1)
(0 0.32876 0.1)
(2 0.32876 0.1)
(2.16438 0.32876 0.1)
(4 0.32876 0.1)
(0 4 0.1)
(2 4 0.1)
(2.16438 4 0.1)
(4 4 0.1)
);
blocks
(
hex (0 1 5 4 12 13 17 16) (23 8 1) simpleGrading (1 1 1)
hex (2 3 7 6 14 15 19 18) (19 8 1) simpleGrading (1 1 1)
hex (4 5 9 8 16 17 21 20) (23 42 1) simpleGrading (1 1 1)
hex (5 6 10 9 17 18 22 21) (4 42 1) simpleGrading (1 1 1)
hex (6 7 11 10 18 19 23 22) (19 42 1) simpleGrading (1 1 1)
);
defaultPatch
{
type empty;
}
boundary
(
leftWall
{
type wall;
faces
(
(0 12 16 4)
(4 16 20 8)
);
}
rightWall
{
type wall;
faces
(
(7 19 15 3)
(11 23 19 7)
);
}
lowerWall
{
type wall;
faces
(
(0 1 13 12)
(1 5 17 13)
(5 6 18 17)
(2 14 18 6)
(2 3 15 14)
);
}
atmosphere
{
type patch;
faces
(
(8 20 21 9)
(9 21 22 10)
(10 22 23 11)
);
}
);
// ************************************************************************* //

View File

@ -1,57 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application foamRun;
solver incompressibleVoF;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 1;
deltaT 0.001;
writeControl adjustableRunTime;
writeInterval 0.05;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1;
maxAlphaCo 1;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -1,42 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
simpleCoeffs
{
n (2 2 1);
}
hierarchicalCoeffs
{
n (1 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -1,50 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss interfaceCompression vanLeer 1;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -1,81 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"alpha.water.*"
{
nAlphaCorr 2;
nAlphaSubCycles 1;
MULESCorr yes;
nLimiterIter 5;
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-8;
relTol 0;
}
"pcorr.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0;
}
p_rgh
{
solver PCG;
preconditioner DIC;
tolerance 1e-07;
relTol 0.05;
}
p_rghFinal
{
$p_rgh;
relTol 0;
}
U
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
}
}
PIMPLE
{
momentumPredictor no;
nOuterCorrectors 1;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
".*" 1;
}
}
// ************************************************************************* //

View File

@ -1,35 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues
(
volScalarFieldValue alpha.water 0
);
regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1);
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);
// ************************************************************************* //

View File

@ -4,6 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase cleanVoFCase
rm -rf 0 constant system
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -0,0 +1,28 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy the case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleVoF
cp -rn $path/damBreakLaminar/constant $path/damBreakFine/system .
cp -rn $path/damBreak/0 $path/damBreak/constant $path/damBreak/system .
rm -f 0/alpha.water
# Set a new time-step
runApplication -s controlDict foamDictionary system/controlDict \
-entry deltaT -set 5e-4
# Increase the number of limiter iterations
runApplication -s fvSolution foamDictionary system/fvSolution \
-entry solvers/"alpha.water.*"/nLimiterIter -set 5
# Run
runApplication blockMesh -dict system/blockMeshDict.fine
runApplication setFields
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.1;
boundaryField
{
leftWall
{
type epsilonWallFunction;
value $internalField;
}
rightWall
{
type epsilonWallFunction;
value $internalField;
}
lowerWall
{
type epsilonWallFunction;
value $internalField;
}
atmosphere
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -1,48 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanVoFCase
rm -rf 0 constant
find system -type f -not -name createBafflesDict -delete
#------------------------------------------------------------------------------

View File

@ -4,14 +4,23 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name # Copy the case
application=$(getApplication) isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleVoF
cp -rn $path/damBreak/0 $path/damBreak/constant $path/damBreak/system .
rm -f 0/alpha.water
# Change Courant numbers
runApplication -s controlDict foamDictionary system/controlDict \
-set "maxCo=0.1, maxAlphaCo=0.1"
# Change numbers of correctors
runApplication -s fvSolution foamDictionary system/fvSolution \
-set "PIMPLE/nOuterCorrectors=3, PIMPLE/nCorrectors=1"
# Run
runApplication blockMesh runApplication blockMesh
runApplication setFields runApplication setFields
runApplication createBaffles -overwrite runApplication createBaffles -overwrite
runApplication $(getApplication)
runApplication $application
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,21 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -1,22 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object phaseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
sigma 0.07;
// ************************************************************************* //

View File

@ -1,24 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
viscosityModel constant;
nu 1.48e-05;
rho 1;
// ************************************************************************* //

View File

@ -1,24 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
viscosityModel constant;
nu 1e-06;
rho 1000;
// ************************************************************************* //

View File

@ -1,105 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.146;
vertices
(
(0 0 0)
(2 0 0)
(2.16438 0 0)
(4 0 0)
(0 0.32876 0)
(2 0.32876 0)
(2.16438 0.32876 0)
(4 0.32876 0)
(0 4 0)
(2 4 0)
(2.16438 4 0)
(4 4 0)
(0 0 0.1)
(2 0 0.1)
(2.16438 0 0.1)
(4 0 0.1)
(0 0.32876 0.1)
(2 0.32876 0.1)
(2.16438 0.32876 0.1)
(4 0.32876 0.1)
(0 4 0.1)
(2 4 0.1)
(2.16438 4 0.1)
(4 4 0.1)
);
blocks
(
hex (0 1 5 4 12 13 17 16) (23 8 1) simpleGrading (1 1 1)
hex (2 3 7 6 14 15 19 18) (19 8 1) simpleGrading (1 1 1)
hex (4 5 9 8 16 17 21 20) (23 42 1) simpleGrading (1 1 1)
hex (5 6 10 9 17 18 22 21) (4 42 1) simpleGrading (1 1 1)
hex (6 7 11 10 18 19 23 22) (19 42 1) simpleGrading (1 1 1)
);
defaultPatch
{
type empty;
}
boundary
(
leftWall
{
type wall;
faces
(
(0 12 16 4)
(4 16 20 8)
);
}
rightWall
{
type wall;
faces
(
(7 19 15 3)
(11 23 19 7)
);
}
lowerWall
{
type wall;
faces
(
(0 1 13 12)
(1 5 17 13)
(5 6 18 17)
(2 14 18 6)
(2 3 15 14)
);
}
atmosphere
{
type patch;
faces
(
(8 20 21 9)
(9 21 22 10)
(10 22 23 11)
);
}
);
// ************************************************************************* //

View File

@ -1,57 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application foamRun;
solver incompressibleVoF;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 1;
deltaT 0.001;
writeControl adjustableRunTime;
writeInterval 0.05;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep on;
maxCo 0.1;
maxAlphaCo 0.1;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss interfaceCompression vanLeer 1;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -1,81 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"alpha.water.*"
{
nAlphaCorr 2;
nAlphaSubCycles 1;
MULESCorr yes;
nLimiterIter 3;
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-8;
relTol 0;
}
"pcorr.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0;
}
p_rgh
{
solver PCG;
preconditioner DIC;
tolerance 1e-07;
relTol 0.05;
}
p_rghFinal
{
$p_rgh;
relTol 0;
}
"(U|k|epsilon).*"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
minIter 1;
}
}
PIMPLE
{
momentumPredictor no;
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
equations
{
".*" 1;
}
}
// ************************************************************************* //

View File

@ -1,45 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name cyclicFacesFaceSet;
type faceSet;
action new;
source boxToFace;
box (0.3015 0.0493 -1) (0.3069 0.2077 1);
}
{
name cyclicFacesSlaveCells;
type cellSet;
action new;
source boxToCell;
box (-1 0 -1) (0.305 0.31 1);
}
{
name cyclicZoneFaces;
type faceZoneSet;
action new;
source setsToFaceZone;
faceSet cyclicFacesFaceSet;
cellSet cyclicFacesSlaveCells;
}
);
// ************************************************************************* //

View File

@ -1,24 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
viscosityModel constant;
nu 1.48e-05;
rho 1;
// ************************************************************************* //

View File

@ -1,24 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
viscosityModel constant;
nu 1e-06;
rho 1000;
// ************************************************************************* //

View File

@ -1,42 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 6;
method scotch;
simpleCoeffs
{
n (2 2 1);
}
hierarchicalCoeffs
{
n (2 2 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //