TUT: clean up multiphase tutorials

This commit is contained in:
Kutalmis Bercin
2020-01-29 17:19:43 +00:00
parent 647e161511
commit 01514e4d43
1349 changed files with 5623 additions and 241919 deletions

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,21 +25,25 @@ boundaryField
type fixedValue;
value uniform (0 0 0);
}
rightWall
{
type fixedValue;
value uniform (0 0 0);
}
lowerWall
{
type fixedValue;
value uniform (0 0 0);
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
defaultFaces
{
type empty;

View File

@ -4,6 +4,5 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
cleanCase0
rm -rf isoFaces
#------------------------------------------------------------------------------

View File

@ -6,6 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication setFields
runApplication $(getApplication)

View File

@ -6,7 +6,9 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication decomposePar
runParallel setFields
runParallel $(getApplication)

View File

@ -20,19 +20,19 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 10;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -23,9 +23,5 @@ coeffs
n (2 2 1);
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -17,40 +17,40 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
{
default Gauss linear;
default Gauss linear;
}
divSchemes
{
div(rhoPhi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
default linear;
}
snGradSchemes
{
default corrected;
default corrected;
}
fluxRequired
{
default no;
default no;
p_rgh;
pcorr;
alpha.water;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,6 +25,7 @@ boundaryField
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
walls
{
type uniformFixedValue;

View File

@ -27,9 +27,9 @@ endTime 1;
deltaT 0.001;
writeControl adjustable; //timeStep;
writeControl adjustable;
writeInterval 0.02;//1;
writeInterval 0.02;
purgeWrite 0;
@ -48,7 +48,9 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.75;
maxAlphaCo 0.75;
maxDeltaT 1;

View File

@ -17,37 +17,37 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
{
default Gauss linear;
default Gauss linear;
}
divSchemes
{
div(rhoPhi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,omega) Gauss upwind;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
default linear;
}
snGradSchemes
{
default corrected;
default corrected;
}
wallDist

View File

@ -52,7 +52,6 @@ solvers
"pcorr.*"
{
$p_rghFinal;
// tolerance 0.0001;
tolerance 1e-08;
}

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -24,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -24,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -6,6 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication setAlphaField
runApplication $(getApplication)

View File

@ -5,7 +5,6 @@
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
@ -14,7 +13,6 @@ FoamFile
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application interIsoFoam;
@ -52,6 +50,7 @@ runTimeModifiable no;
adjustTimeStep yes;
maxCo 1e6;
maxAlphaCo 0.5;
maxDeltaT 1e6;

View File

@ -17,40 +17,40 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
{
default Gauss linear;
default Gauss linear;
}
divSchemes
{
div(rho*phi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(rho*phi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
div((muEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
default linear;
}
snGradSchemes
{
default corrected;
default corrected;
}
fluxRequired
{
default no;
default no;
p_rgh;
pcorr;
alpha1;

View File

@ -10,30 +10,17 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (-.2 0 -.05);
internalField uniform (-0.2 0 -0.05);
boundaryField
{
right
{
type cyclic;
}
left
{
type cyclic;
}
top
{
type cyclic;
}
bottom
"(right|left|top|bottom)"
{
type cyclic;
}

View File

@ -20,22 +20,11 @@ internalField uniform 0;
boundaryField
{
right
{
type cyclic;
}
left
{
type cyclic;
}
top
{
type cyclic;
}
bottom
"(right|left|top|bottom)"
{
type cyclic;
}
"(front|back)"
{
type empty;

View File

@ -20,22 +20,11 @@ internalField uniform 0;
boundaryField
{
right
{
type cyclic;
}
left
{
type cyclic;
}
top
{
type cyclic;
}
bottom
"(right|left|top|bottom)"
{
type cyclic;
}
"(front|back)"
{
type empty;

View File

@ -6,6 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication setAlphaField
runApplication $(getApplication)

View File

@ -15,23 +15,22 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.00;
sigma 0;
// ************************************************************************* //

View File

@ -29,7 +29,7 @@ deltaT 0.001;
writeControl adjustable;
writeInterval .5;
writeInterval 0.5;
purgeWrite 0;
@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -17,35 +17,35 @@ FoamFile
ddtSchemes
{
default Euler;
default Euler;
}
gradSchemes
{
default Gauss linear;
default Gauss linear;
}
divSchemes
{
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
default linear;
}
snGradSchemes
{
default corrected;
default corrected;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -25,10 +25,12 @@ boundaryField
type fixedValue;
value uniform 0;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -24,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -15,72 +15,23 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [ 0 2 -1 0 0 0 0 ] 0;
//Input for OF-2.3.0 and later
phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
//Input for OF-2.2.0 and earlier
phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 0;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}
phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 0;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.0;
sigma 0.0;
// ************************************************************************* //

View File

@ -50,6 +50,7 @@ runTimeModifiable no;
adjustTimeStep no;
maxCo 1e10;
maxAlphaCo 0.5;
maxDeltaT 0.05;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -42,7 +42,6 @@ boundaryField
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
}

View File

@ -26,7 +26,6 @@ stopAt endTime;
endTime 3;
deltaT 0.005;
//deltaT 0.001;
writeControl adjustable;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
note "mesh decomposition control dictionary";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -43,11 +43,7 @@ solvers
solver GAMG;
tolerance 5e-9;
relTol 0.01;
smoother GaussSeidel;
maxIter 50;
};

View File

@ -33,7 +33,7 @@ regions
boxToCell
{
box (-1e10 -1e10 -1e10) (-.2 1e10 1e10);
box (-1e10 -1e10 -1e10) (-0.2 1e10 1e10);
fieldValues
(
volScalarFieldValue alpha.water 1

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -25,10 +25,12 @@ boundaryField
type fixedValue;
value uniform 0;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -24,10 +24,12 @@ boundaryField
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -14,7 +14,6 @@ FoamFile
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application interIsoFoam;
@ -52,10 +51,12 @@ runTimeModifiable no;
adjustTimeStep no;
maxCo 1e6;
maxAlphaCo 0.5;
maxDeltaT 0.05;
functions
{
setVelocity

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type movingWallVelocity;

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type zeroGradient;

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type fixedFluxPressure;

View File

@ -1,7 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
foamCleanTutorials -self
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,12 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
m4 system/blockMeshDict.m4 > system/blockMeshDict
runApplication blockMesh
cp 0/alpha.water.orig 0/alpha.water
runApplication setFields
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -48,10 +48,12 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;
functions
{
probes

View File

@ -27,8 +27,8 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss vanLeerV;
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss vanLeerV;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss vanLeer;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -20,18 +20,18 @@ phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.0;
sigma 0.0;
// ************************************************************************* //

View File

@ -50,10 +50,12 @@ runTimeModifiable yes;
adjustTimeStep no;
maxCo 1e10;
maxAlphaCo 0.5;
maxDeltaT 0.2;
functions
{
setVelocity

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 8;

View File

@ -27,8 +27,8 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
}

View File

@ -21,27 +21,12 @@ internalField uniform (0 0 0);
boundaryField
{
left
"(left|right|top|bottom)"
{
type slip;
}
right
{
type slip;
}
top
{
type slip;
}
bottom
{
type slip;
}
front
{
type empty;
}
back
"(front|back)"
{
type empty;
}

View File

@ -20,27 +20,12 @@ internalField uniform 0;
boundaryField
{
left
"(left|right|top|bottom)"
{
type zeroGradient;
}
right
{
type zeroGradient;
}
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
front
{
type empty;
}
back
"(front|back)"
{
type empty;
}

View File

@ -20,31 +20,13 @@ internalField uniform 0;
boundaryField
{
left
"(left|right|top|bottom)"
{
type fixedFluxPressure;
value uniform 0;
}
right
{
type fixedFluxPressure;
value uniform 0;
}
top
{
type fixedFluxPressure;
value uniform 0;
}
bottom
{
type fixedFluxPressure;
value uniform 0;
}
front
{
type empty;
}
back
"(front|back)"
{
type empty;
}

View File

@ -15,23 +15,22 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-06;
rho [1 -3 0 0 0 0 0] 1000;
nu 1e-06;
rho 1000;
}
air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1.48e-05;
rho [1 -3 0 0 0 0 0] 1;
nu 1.48e-05;
rho 1;
}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07;
sigma 0.07;
// ************************************************************************* //

View File

@ -29,7 +29,7 @@ deltaT 0.001;
writeControl adjustable;
writeInterval .1;
writeInterval 0.1;
purgeWrite 0;
@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -23,9 +23,4 @@ coeffs
n (2 1 2);
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -27,7 +27,7 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss limitedLinearV 1;
div(rhoPhi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -17,7 +17,6 @@ FoamFile
solvers
{
"alpha.*"
{
isoFaceTol 1e-10;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 0.5;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2;

View File

@ -28,8 +28,8 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
lowerWall
{
type nutkWallFunction;
value uniform 0;
}
atmosphere
{
type calculated;

View File

@ -6,9 +6,9 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
\cp 0/alpha.water.orig 0/alpha.water
runApplication setFields
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep on;
maxCo 0.9;
maxAlphaCo 0.9;
maxDeltaT 1;

View File

@ -27,13 +27,13 @@ gradSchemes
divSchemes
{
div(rhoPhi,U) Gauss linear;
div(phi,alpha) Gauss vanLeer;
div(rhoPhi,U) Gauss linear;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
div(phi,k) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

View File

@ -18,7 +18,6 @@ solvers
{
alpha.water
{
isoFaceTol 1e-6;
surfCellTol 1e-6;
nAlphaBounds 3;