diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/U b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/U new file mode 100644 index 0000000000..ba525ee1ab --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/U @@ -0,0 +1,59 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + bottom1 + { + type fixedValue; + value uniform (0 0 0); + } + bottom2 + { + type fixedValue; + value uniform (0 0 0); + } + leftwall + { + type movingWallVelocity; + value uniform (0 0 0); + } + back + { + type empty; + } + front + { + type empty; + } + rightwall + { + type waveVelocity; + value uniform (0 0 0); + } + top + { + type pressureInletOutletVelocity; + value uniform (0 0 0); + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/alpha.water b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/alpha.water new file mode 100644 index 0000000000..48bc762997 --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/alpha.water @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: 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 +{ + bottom1 + { + type zeroGradient; + } + bottom2 + { + type zeroGradient; + } + front + { + type empty; + } + back + { + type empty; + } + leftwall + { + type zeroGradient; + } + rightwall + { + type zeroGradient; + } + top + { + type inletOutlet; + inletValue uniform 0; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/p_rgh b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/p_rgh new file mode 100644 index 0000000000..da2c9ccfbd --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/p_rgh @@ -0,0 +1,65 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + bottom1 + { + type fixedFluxPressure; + value uniform 0; + } + bottom2 + { + type fixedFluxPressure; + value uniform 0; + } + front + { + type empty; + } + back + { + type empty; + } + leftwall + { + type fixedFluxPressure; + value uniform 0; + } + rightwall + { + type fixedFluxPressure; + value uniform 0; + } + top + { + type totalPressure; + U U; + phi phi; + rho rho; + psi none; + gamma 1; + p0 uniform 0; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/pointDisplacement b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/pointDisplacement new file mode 100644 index 0000000000..4c69e395fb --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/0.orig/pointDisplacement @@ -0,0 +1,66 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class pointVectorField; + object pointDisplacement; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + bottom1 + { + type zeroGradient; + } + bottom2 + { + type fixedValue; + value uniform (0 0 0); + } + leftwall + { + type waveMaker; + value uniform (0 0 0); + + motionType piston; + x0 (0 0 0); + n (1 0 0); + waveHeight 0.06; + initialDepth 0.25; + wavePeriod 2.0; + rampTime 2.0; + wavePhase 0; + } + back + { + type empty; + } + front + { + type empty; + } + rightwall + { + type fixedValue; + value uniform (0 0 0); + } + top + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allclean b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allclean new file mode 100755 index 0000000000..e2f275d9fd --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allclean @@ -0,0 +1,7 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions + +cleanCase0 + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allrun b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allrun new file mode 100755 index 0000000000..28bf991e62 --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/Allrun @@ -0,0 +1,15 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions + +restore0Dir + +runApplication blockMesh + +runApplication decomposePar + +runParallel setFields + +runParallel $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/waveMakerPiston/system/decomposeParDict b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/system/decomposeParDict new file mode 100644 index 0000000000..16511601e1 --- /dev/null +++ b/tutorials/multiphase/interFoam/laminar/waveMakerPiston/system/decomposeParDict @@ -0,0 +1,28 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v1806 | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n ( 4 1 1 ); + order xyz; +} + +// ************************************************************************* //