diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/U b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/U new file mode 100644 index 0000000000..ffdffb02f1 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/U @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + 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; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/alpha.water b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/alpha.water new file mode 100644 index 0000000000..f5ae0bed7c --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/alpha.water @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object alpha.water; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +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; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/epsilon b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/epsilon new file mode 100644 index 0000000000..f6becd05dc --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/epsilon @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -3 0 0 0 0]; + +internalField uniform 0.1; + +boundaryField +{ + leftWall + { + type epsilonWallFunction; + value uniform 0.1; + } + + rightWall + { + type epsilonWallFunction; + value uniform 0.1; + } + + lowerWall + { + type epsilonWallFunction; + value uniform 0.1; + } + + atmosphere + { + type inletOutlet; + inletValue uniform 0.1; + value uniform 0.1; + } + + defaultFaces + { + type empty; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/k b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/k new file mode 100644 index 0000000000..30b359e78e --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/k @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + 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; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nuTilda b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nuTilda new file mode 100644 index 0000000000..d015ad11f1 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nuTilda @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + 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 uniform 0; + value uniform 0; + } + + defaultFaces + { + type empty; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nut b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nut new file mode 100644 index 0000000000..a0b8124b80 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/nut @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + 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; + } + + "(porous_half0|porous_half1)" + { + type cyclic; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/p_rgh b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/p_rgh new file mode 100644 index 0000000000..c5d828f1ce --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/0.orig/p_rgh @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + leftWall + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 0; + } + + rightWall + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 0; + } + + lowerWall + { + type fixedFluxPressure; + gradient uniform 0; + value uniform 0; + } + + atmosphere + { + type totalPressure; + p0 uniform 0; + } + + defaultFaces + { + type empty; + } + + porous_half0 + { + type porousBafflePressure; + patchType cyclic; + D 1000; + I 500; + length 0.15; + uniformJump true; + jump uniform 0; + value uniform 0; + } + + porous_half1 + { + type porousBafflePressure; + patchType cyclic; + D 1000; + I 500; + length 0.15; + uniformJump true; + jump uniform 0; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allclean b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allclean new file mode 100755 index 0000000000..fb1f384730 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allclean @@ -0,0 +1,8 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions +#------------------------------------------------------------------------------ + +cleanCase0 + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allrun b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allrun new file mode 100755 index 0000000000..20908c0ff1 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/Allrun @@ -0,0 +1,16 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +restore0Dir + +runApplication blockMesh + +runApplication setFields + +runApplication createBaffles -overwrite + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/README.txt b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/README.txt new file mode 100644 index 0000000000..64110009a6 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/README.txt @@ -0,0 +1,6 @@ +Copy of damBreak tutorial showcasing a coded Function1 to enable +AMI 'opening'. +- see system/createBafflesDict +- uses coded Function1 to supply the 'scale' in the cyclicACMI +- the scale is a surface scalar field describing per patch face + how much the face is coupled (1) or a wall (0) diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/g b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/g new file mode 100644 index 0000000000..901753ac34 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 -9.81 0); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/transportProperties b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/transportProperties new file mode 100644 index 0000000000..b3442a1ca6 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/transportProperties @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +phases (water air); + +water +{ + transportModel Newtonian; + nu 1e-06; + rho 1000; +} + +air +{ + transportModel Newtonian; + nu 1.48e-05; + rho 1; +} + +sigma 0.07; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/turbulenceProperties b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/turbulenceProperties new file mode 100644 index 0000000000..ce528794d0 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/constant/turbulenceProperties @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel kEpsilon; + + turbulence on; + + printCoeffs on; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/blockMeshDict b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/blockMeshDict new file mode 100644 index 0000000000..d43c945748 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/blockMeshDict @@ -0,0 +1,109 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 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) +); + +edges +( +); + +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) + ); + } +); + +mergePatchPairs +( +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/controlDict b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/controlDict new file mode 100644 index 0000000000..58a16e8c78 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/controlDict @@ -0,0 +1,53 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application interFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 5; + +deltaT 0.001; + +writeControl adjustable; + +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; diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/createBafflesDict b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/createBafflesDict new file mode 100644 index 0000000000..14c1d27de8 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/createBafflesDict @@ -0,0 +1,105 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object createBafflesDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// Whether to convert internal faces only (so leave boundary faces intact). +// This is only relevant if your face selection type can pick up boundary +// faces. +internalFacesOnly true; + + +// Baffles to create. +baffles +{ + cyclicFaces + { + //- Select faces and orientation through a searchableSurface + type searchableSurface; + surface plate; + origin (0.3042 0.0493 -100); + span (0 0.1584 200); + + patches + { + master + { + //- Master side patch + + name coupled_half0; + type cyclicACMI; + neighbourPatch coupled_half1; + nonOverlapPatch wall_block; + scale + { + type coded; + //type table; + + code + #{ + const vector axis(0, 1, 0); + const polyPatch& pp = this->patch(); + const scalar tm = this->time().value(); + const scalarField Fy(pp.faceCentres() & axis); + auto tv = tmp::New(pp.size(), Zero); + auto& v = tv.ref(); + if (tm > 0.5) + { + forAll(Fy, i) + { + if(Fy[i] > 0.07 && Fy[i] < 0.1) + { + v[i] = 1.0; + } + } + } + return tv; + + #}; + + //values + //4 + //( + // (0.00 0.0) + // (0.50 0.0) + // (0.501 1.0) + // (1.00 1.0) + //); + } + + } + slave + { + //- Slave side patch + name coupled_half1; + type cyclicACMI; + neighbourPatch coupled_half0; + nonOverlapPatch wall_block2; + } + master2 + { + name wall_block; + type symmetry; + } + slave2 + { + name wall_block2; + type symmetry; + } + } + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSchemes b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSchemes new file mode 100644 index 0000000000..051a29b82b --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSchemes @@ -0,0 +1,53 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + div(rhoPhi,U) Gauss linearUpwind grad(U); + div(phi,alpha) Gauss vanLeer; + div(phirb,alpha) Gauss linear; + 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; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSolution b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSolution new file mode 100644 index 0000000000..a4fa2ae721 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/fvSolution @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "alpha.water.*" + { + nAlphaCorr 2; + nAlphaSubCycles 1; + cAlpha 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; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/setFieldsDict b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/setFieldsDict new file mode 100644 index 0000000000..09eda12a7d --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/setFieldsDict @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue alpha.water 0 +); + +regions +( + boxToCell + { + //box (0 0 -1) (0.1461 0.292 1); + box (0 0 -1) (0.304 0.15 1); + fieldValues + ( + volScalarFieldValue alpha.water 1 + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/topoSetDict b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/topoSetDict new file mode 100644 index 0000000000..813726ad3f --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/damBreakLeakage/system/topoSetDict @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2406 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + 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; + } +); + + +// ************************************************************************* //