diff --git a/tutorials/incompressibleVoF/damBreakLaminar/0/U b/tutorials/incompressibleVoF/damBreakLaminar/0/U new file mode 100644 index 0000000000..86eba431c1 --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/0/U @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + wall + { + type noSlip; + } + + atmosphere + { + type pressureInletOutletVelocity; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/0/alpha.water.orig b/tutorials/incompressibleVoF/damBreakLaminar/0/alpha.water.orig new file mode 100644 index 0000000000..14857b6ac1 --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/0/alpha.water.orig @@ -0,0 +1,39 @@ +/*--------------------------------*- 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 alpha.water; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions []; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + wall + { + type zeroGradient; + } + + atmosphere + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/0/p_rgh b/tutorials/incompressibleVoF/damBreakLaminar/0/p_rgh new file mode 100644 index 0000000000..7cc9d9fdd3 --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/0/p_rgh @@ -0,0 +1,39 @@ +/*--------------------------------*- 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 p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + wall + { + type fixedFluxPressure; + value $internalField; + } + + atmosphere + { + type prghTotalPressure; + p0 $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/Allclean b/tutorials/incompressibleVoF/damBreakLaminar/Allclean index 9068aa2e07..170a3cfe1e 100755 --- a/tutorials/incompressibleVoF/damBreakLaminar/Allclean +++ b/tutorials/incompressibleVoF/damBreakLaminar/Allclean @@ -6,12 +6,4 @@ cd ${0%/*} || exit 1 # Run from this directory cleanVoFCase -find 0 -type f -not -name tracer.* -delete - -find constant -type f -not \( \ - -name fvModels -or -name momentumTransport \ - \) -delete - -rm -f system/blockMeshDict - #------------------------------------------------------------------------------ diff --git a/tutorials/incompressibleVoF/damBreakLaminar/Allrun b/tutorials/incompressibleVoF/damBreakLaminar/Allrun index 8064eb76ca..ed61ac5435 100755 --- a/tutorials/incompressibleVoF/damBreakLaminar/Allrun +++ b/tutorials/incompressibleVoF/damBreakLaminar/Allrun @@ -4,12 +4,6 @@ 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 - -# Run runApplication blockMesh runApplication setFields runApplication $(getApplication) diff --git a/tutorials/incompressibleVoF/damBreakLaminar/constant/g b/tutorials/incompressibleVoF/damBreakLaminar/constant/g new file mode 100644 index 0000000000..770a56192e --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- 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); + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/constant/phaseProperties b/tutorials/incompressibleVoF/damBreakLaminar/constant/phaseProperties new file mode 100644 index 0000000000..234504e0d1 --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/constant/phaseProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- 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; + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.air b/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.air new file mode 100644 index 0000000000..fab7bde58b --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.air @@ -0,0 +1,24 @@ +/*--------------------------------*- 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; + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.water b/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.water new file mode 100644 index 0000000000..e9b9d7dc4e --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/constant/physicalProperties.water @@ -0,0 +1,24 @@ +/*--------------------------------*- 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; + + +// ************************************************************************* // diff --git a/tutorials/incompressibleVoF/damBreakLaminar/system/blockMeshDict b/tutorials/incompressibleVoF/damBreakLaminar/system/blockMeshDict new file mode 100644 index 0000000000..6f27d83a17 --- /dev/null +++ b/tutorials/incompressibleVoF/damBreakLaminar/system/blockMeshDict @@ -0,0 +1,105 @@ +/*--------------------------------*- 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) + ); + } +); + + +// ************************************************************************* //