diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/0/U b/tutorials/incompressible/simpleFoam/rotatingCylinders/0/U new file mode 100644 index 0000000000..590d14545f --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/0/U @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / 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 +{ + innerWall + { + type noSlip; + } + + outerWall + { + type noSlip; + } + + frontAndBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/0/p b/tutorials/incompressible/simpleFoam/rotatingCylinders/0/p new file mode 100644 index 0000000000..dbbd79a9e8 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/0/p @@ -0,0 +1,34 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + "innerWall|outerWall" + { + type zeroGradient; + } + + frontAndBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/Allrun b/tutorials/incompressible/simpleFoam/rotatingCylinders/Allrun new file mode 100755 index 0000000000..9fcf3691af --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/Allrun @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh +runApplication $(getApplication) +./plot + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/MRFProperties b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/MRFProperties new file mode 100644 index 0000000000..78da2c7ae4 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/MRFProperties @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object MRFProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +MRF1 +{ + cellZone all; + active yes; + + nonRotatingPatches (outerWall); + + origin (0 0 0); + axis (0 0 1); + omega 100; +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/transportProperties b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/transportProperties new file mode 100644 index 0000000000..dbf280b95a --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/transportProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +transportModel Newtonian; + +nu 1; + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/turbulenceProperties b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/turbulenceProperties new file mode 100644 index 0000000000..1d19e7c656 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/rotatingCylinders/plot b/tutorials/incompressible/simpleFoam/rotatingCylinders/plot new file mode 100755 index 0000000000..a5dd1278c7 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/rotatingCylinders/plot @@ -0,0 +1,42 @@ +#!/bin/sh +# Require gnuplot +command -v gnuplot >/dev/null || { + echo "FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2 + exit 1 +} + + +gnuplot<