From b48fd4f38abe74a7dec09ace493854f5288c5b9a Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 9 Aug 2022 14:07:21 +0100 Subject: [PATCH] TUT: overset: add new tutorials and update existing tutorials --- .../heatTransferMassConservation1D/0.orig/T | 51 ++++++ .../0.orig/cellDisplacement | 43 +++++ .../0.orig/pointDisplacement | 43 +++++ .../0.orig/zoneID | 32 ++++ .../heatTransferMassConservation1D/Allclean | 8 + .../heatTransferMassConservation1D/Allrun | 10 ++ .../heatTransferMassConservation1D/Allrun.pre | 14 ++ .../heatTransferMassConservation1D/README.md | 17 ++ .../constant/dynamicMeshDict | 29 ++++ .../constant/transportProperties | 24 +++ .../system/blockMeshDict | 103 ++++++++++++ .../system/controlDict | 50 ++++++ .../system/fvSchemes | 81 ++++++++++ .../system/fvSolution | 58 +++++++ .../system/setFieldsDict | 46 ++++++ .../system/topoSetDict | 49 ++++++ .../twoSimpleRotors/system/fvSolution | 3 - .../movingBox/system/fvSolution | 5 +- .../cylinderAndBackground/system/fvSolution | 4 - .../overPimpleDyMFoam/rotatingSquare/0.orig/U | 60 +++++++ .../rotatingSquare/0.orig/epsilon | 50 ++++++ .../overPimpleDyMFoam/rotatingSquare/0.orig/k | 50 ++++++ .../rotatingSquare/0.orig/nuTilda | 43 +++++ .../rotatingSquare/0.orig/nut | 45 ++++++ .../overPimpleDyMFoam/rotatingSquare/0.orig/p | 43 +++++ .../rotatingSquare/0.orig/pointDisplacement | 42 +++++ .../rotatingSquare/0.orig/zoneID | 38 +++++ .../overPimpleDyMFoam/rotatingSquare/Allclean | 8 + .../overPimpleDyMFoam/rotatingSquare/Allrun | 10 ++ .../rotatingSquare/Allrun.pre | 21 +++ .../rotatingSquare/constant/dynamicMeshDict | 42 +++++ .../rotatingSquare/constant/fvOptions | 27 ++++ .../constant/transportProperties | 22 +++ .../constant/turbulenceProperties | 20 +++ .../rotatingSquare/system/blockMeshDict | 110 +++++++++++++ .../rotatingSquare/system/controlDict | 52 ++++++ .../rotatingSquare/system/decomposeParDict | 27 ++++ .../rotatingSquare/system/fvSchemes | 72 +++++++++ .../rotatingSquare/system/fvSolution | 93 +++++++++++ .../rotatingSquare/system/setFieldsDict | 48 ++++++ .../rotatingSquare/system/topoSetDict | 67 ++++++++ .../overPimpleDyMFoam/simpleRotor/Allclean | 4 - .../overPimpleDyMFoam/simpleRotor/Allrun | 6 +- .../simpleRotor/constant/dynamicMeshDict | 11 +- .../simpleRotor/system/blockMeshDict | 6 +- .../simpleRotor/system/fvSchemes | 9 +- .../simpleRotor/system/fvSolution | 3 - .../simpleRotor/system/topoSetDict | 4 +- .../twoSimpleRotors/system/fvSchemes | 9 +- .../twoSimpleRotors/system/fvSolution | 3 - .../constant/turbulenceProperties | 2 +- .../system/controlDict | 18 --- .../system/fvSolution | 2 - .../background/system/controlDict | 29 ++-- .../floatingBody/background/system/fvSchemes | 4 +- .../floatingBody/background/system/fvSolution | 6 - .../background/system/fvSolution | 6 - .../rigidBodyHull/background/Allrun | 2 +- .../rigidBodyHull/background/system/fvSchemes | 3 + .../background/system/fvSolution | 2 - .../overInterDyMFoam/simpleRotor/0.orig/U | 52 ++++++ .../simpleRotor/0.orig/alpha.water | 45 ++++++ .../overInterDyMFoam/simpleRotor/0.orig/p | 45 ++++++ .../overInterDyMFoam/simpleRotor/0.orig/p_rgh | 46 ++++++ .../simpleRotor/0.orig/pointDisplacement | 42 +++++ .../simpleRotor/0.orig/zoneID | 41 +++++ .../overInterDyMFoam/simpleRotor/Allclean | 8 + .../overInterDyMFoam/simpleRotor/Allrun | 10 ++ .../overInterDyMFoam/simpleRotor/Allrun.pre | 21 +++ .../simpleRotor/constant/dynamicMeshDict | 36 +++++ .../simpleRotor/constant/fvOptions | 35 ++++ .../overInterDyMFoam/simpleRotor/constant/g | 21 +++ .../simpleRotor/constant/transportProperties | 36 +++++ .../simpleRotor/constant/turbulenceProperties | 20 +++ .../simpleRotor/system/blockMeshDict | 102 ++++++++++++ .../simpleRotor/system/controlDict | 103 ++++++++++++ .../simpleRotor/system/decomposeParDict | 27 ++++ .../simpleRotor/system/fvSchemes | 81 ++++++++++ .../simpleRotor/system/fvSolution | 97 ++++++++++++ .../simpleRotor/system/setFieldsDict | 56 +++++++ .../simpleRotor/system/topoSetDict | 67 ++++++++ .../twoSimpleRotors/system/fvSolution | 2 - .../twoSquaresOutDomain/0.orig/U | 56 +++++++ .../twoSquaresOutDomain/0.orig/alpha.water | 37 +++++ .../twoSquaresOutDomain/0.orig/epsilon | 38 +++++ .../twoSquaresOutDomain/0.orig/k | 38 +++++ .../twoSquaresOutDomain/0.orig/nut | 38 +++++ .../twoSquaresOutDomain/0.orig/p | 38 +++++ .../twoSquaresOutDomain/0.orig/p_rgh | 37 +++++ .../0.orig/pointDisplacement | 42 +++++ .../twoSquaresOutDomain/0.orig/zoneID | 37 +++++ .../twoSquaresOutDomain/Allclean | 8 + .../twoSquaresOutDomain/Allrun | 14 ++ .../twoSquaresOutDomain/Allrun.pre | 21 +++ .../constant/dynamicMeshDict | 61 +++++++ .../twoSquaresOutDomain/constant/fvOptions | 27 ++++ .../twoSquaresOutDomain/constant/g | 21 +++ .../constant/transportProperties | 36 +++++ .../constant/turbulenceProperties | 31 ++++ .../twoSquaresOutDomain/system/blockMeshDict | 149 ++++++++++++++++++ .../twoSquaresOutDomain/system/controlDict | 91 +++++++++++ .../system/decomposeParDict | 27 ++++ .../twoSquaresOutDomain/system/fvSchemes | 83 ++++++++++ .../twoSquaresOutDomain/system/fvSolution | 115 ++++++++++++++ .../twoSquaresOutDomain/system/setFieldsDict | 68 ++++++++ .../twoSquaresOutDomain/system/topoSetDict | 95 +++++++++++ .../twoSimpleRotors/system/controlDict | 22 +-- .../twoSimpleRotors/system/fvSolution | 9 +- 108 files changed, 3894 insertions(+), 127 deletions(-) create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/cellDisplacement create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/pointDisplacement create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/zoneID create mode 100755 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allclean create mode 100755 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun create mode 100755 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun.pre create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/README.md create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/dynamicMeshDict create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/transportProperties create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/blockMeshDict create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/controlDict create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSchemes create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSolution create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/setFieldsDict create mode 100644 tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/topoSetDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/U create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/epsilon create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/k create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nuTilda create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nut create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/p create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/pointDisplacement create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/zoneID create mode 100755 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allclean create mode 100755 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun create mode 100755 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun.pre create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/dynamicMeshDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/fvOptions create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/transportProperties create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/turbulenceProperties create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/blockMeshDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/controlDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/decomposeParDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSchemes create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSolution create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/setFieldsDict create mode 100644 tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/topoSetDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/U create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/alpha.water create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p_rgh create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/pointDisplacement create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/zoneID create mode 100755 tutorials/multiphase/overInterDyMFoam/simpleRotor/Allclean create mode 100755 tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun create mode 100755 tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun.pre create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/dynamicMeshDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/fvOptions create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/g create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/transportProperties create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/turbulenceProperties create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/blockMeshDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/controlDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/decomposeParDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSchemes create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSolution create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/setFieldsDict create mode 100644 tutorials/multiphase/overInterDyMFoam/simpleRotor/system/topoSetDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/U create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/alpha.water create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/epsilon create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/k create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/nut create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p_rgh create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/pointDisplacement create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/zoneID create mode 100755 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allclean create mode 100755 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun create mode 100755 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun.pre create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/dynamicMeshDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/fvOptions create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/g create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/transportProperties create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/turbulenceProperties create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/blockMeshDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/controlDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/decomposeParDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSchemes create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSolution create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/setFieldsDict create mode 100644 tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/topoSetDict diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T new file mode 100644 index 0000000000..335e318a57 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 273; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type zeroGradient; + } + + free + { + type overset; + massCorrection true; + value uniform 300; + } + + left + { + type fixedValue; + value uniform 300; + } + + right + { + type fixedValue; + value uniform 273; + } +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/cellDisplacement b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/cellDisplacement new file mode 100644 index 0000000000..b8b6dd7a12 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/cellDisplacement @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object cellDisplacement; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + free + { + patchType overset; + type cellMotion; + value uniform (0 0 0); + } + + "(walls|hole|left1|right1)" + { + type cellMotion; + value uniform (0 0 0); + } + + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/pointDisplacement b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/pointDisplacement new file mode 100644 index 0000000000..6ee55aa34c --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/pointDisplacement @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: 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 +{ + ".*" + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + "(free|hole)" + { + patchType overset; + type uniformFixedValue; + uniformValue table + ( + (0.0 (0 0 0)) + (1.0 (0.2 0 0)) + (2.0 (0 0 0)) + ); + } +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/zoneID b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/zoneID new file mode 100644 index 0000000000..276e3eb273 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/zoneID @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object zoneID; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + ".*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allclean b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allclean new file mode 100755 index 0000000000..fb1f384730 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/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/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun new file mode 100755 index 0000000000..78d5debbe7 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +./Allrun.pre + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun.pre b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun.pre new file mode 100755 index 0000000000..c293562f5d --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/Allrun.pre @@ -0,0 +1,14 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh + +runApplication topoSet + +restore0Dir + +runApplication setFields + +#------------------------------------------------------------------------------ diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/README.md b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/README.md new file mode 100644 index 0000000000..18ea487708 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/README.md @@ -0,0 +1,17 @@ +## Implicit mass conservation test + +The implicit mass conservation is switched on in the field (here T) overset BC. + +The keyword is used as: + + free + { + type overset; + massCorrection true; + value uniform 300; + } + +A special net fringe flux is output in this tutorial. + +Switch `massCorrection` to `false` to evaluate the mass correction. + diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/dynamicMeshDict b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/dynamicMeshDict new file mode 100644 index 0000000000..7f46f2b24d --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/dynamicMeshDict @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +motionSolverLibs (fvMotionSolvers overset); + +solver displacementLaplacian; + +displacementLaplacianCoeffs +{ + diffusivity uniform 1; +} + +dynamicFvMesh staticOversetFvMesh; + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/transportProperties b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/transportProperties new file mode 100644 index 0000000000..70938e0384 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/constant/transportProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +DT 1; + +transportModel Newtonian; + +nu 1e-05; + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/blockMeshDict b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/blockMeshDict new file mode 100644 index 0000000000..bff7f6688d --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/blockMeshDict @@ -0,0 +1,103 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 1; + +vertices +( + ( 0.00 0.0 0) + ( 1.00 0.0 0) + ( 1.00 1.0 0) + ( 0.00 1.0 0) + ( 0.00 0.0 1) + ( 1.00 0.0 1) + ( 1.00 1.0 1) + ( 0.00 1.0 1) + +//- 0 degrees + ( 0.5 0 0) + ( 1.5 0 0) + ( 1.5 1 0) + ( 0.5 1 0) + ( 0.5 0 1) + ( 1.5 0 1) + ( 1.5 1 1) + ( 0.5 1 1) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1) + hex (8 9 10 11 12 13 14 15) movingZone (7 7 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + free + { + type overset; + faces + ( + (2 6 5 1) + (8 12 15 11) + ); + } + walls + { + type symmetry; + faces + ( + (3 7 6 2) + (1 5 4 0) + (11 15 14 10) + ( 9 13 12 8) + ); + } + frontAndBack + { + type empty; + faces + ( + (0 3 2 1) + (4 5 6 7) + ( 8 11 10 9) + (12 13 14 15) + ); + } + left + { + type patch; + faces + ( + (0 4 7 3) + ); + } + right + { + type patch; + faces + ( + (10 14 13 9) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/controlDict b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/controlDict new file mode 100644 index 0000000000..4ef0862481 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/controlDict @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +libs (overset); + +application overLaplacianDyMFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 3; + +deltaT 1; + +writeControl timeStep; + +writeInterval 1; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSchemes b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSchemes new file mode 100644 index 0000000000..70eb046da0 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSchemes @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default steadyState; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) bounded Gauss limitedLinearV 1; + div(phi,k) bounded Gauss limitedLinear 1; + div(phi,epsilon) bounded Gauss limitedLinear 1; + div(phi,R) bounded Gauss limitedLinear 1; + div(R) Gauss linear; + div(phi,nuTilda) bounded Gauss limitedLinear 1; + div((nuEff*dev(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + T; +} + +oversetInterpolation +{ + // Interpolation scheme to use for overset calculation + method inverseDistance; + + // The inverseDistance method uses a 'voxel' like search structure. + // Optionally specify the extent and number of divisions n. + // Note that it will allocate an array of nx*ny*nz. If not specified: + // - searchBox : local mesh bounding box + // - searchBoxDivisions : root (2D) or cube-root(3D) of number of cells + searchBox (-0.05 -0.02 0)(1.52 1.05 1); + searchBoxDivisions (120 120 1); + tolerance 1e-13; +} + +oversetInterpolationSuppressed +{ + // Any additional fields that require overset interpolation +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSolution b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSolution new file mode 100644 index 0000000000..dd0fc2e674 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/fvSolution @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + T + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-10; + relTol 0; + } + + cellDisplacement + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + maxIter 100; + } +} + +SIMPLE +{ + nNonOrthogonalCorrectors 0; + oversetPatchErrOutput true; +} + +relaxationFactors +{ + fields + { + p 0.3; + } + equations + { + U 0.7; + k 0.7; + omega 0.7; + } +} + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/setFieldsDict b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/setFieldsDict new file mode 100644 index 0000000000..d5ca7c6b10 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/setFieldsDict @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue zoneID 123 +); + +regions +( + cellToCell + { + set c0; + + fieldValues + ( + volScalarFieldValue zoneID 0 + ); + } + + cellToCell + { + set c1; + + fieldValues + ( + volScalarFieldValue zoneID 1 + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/topoSetDict b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/topoSetDict new file mode 100644 index 0000000000..0b59a69588 --- /dev/null +++ b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/system/topoSetDict @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name c0; + type cellSet; + action new; + source regionToCell; + sourceInfo + { + insidePoints ((0.001 0.001 0.001)); + } + } + + { + name c1; + type cellSet; + action new; + source cellToCell; + sourceInfo + { + set c0; + } + } + + { + name c1; + type cellSet; + action invert; + } +); + + +// ************************************************************************* // diff --git a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/system/fvSolution b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/system/fvSolution index 98f751d78a..5bdf27e0fb 100644 --- a/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/system/fvSolution +++ b/tutorials/compressible/overRhoPimpleDyMFoam/twoSimpleRotors/system/fvSolution @@ -85,12 +85,9 @@ solvers PIMPLE { momentumPredictor false; - correctPhi true; nOuterCorrectors 1; nCorrectors 4; nNonOrthogonalCorrectors 0; - ddtCorr false; - } relaxationFactors diff --git a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/system/fvSolution b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/system/fvSolution index f0a55f16f0..3edc76612e 100644 --- a/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/system/fvSolution +++ b/tutorials/heatTransfer/overBuoyantPimpleDyMFoam/movingBox/system/fvSolution @@ -85,13 +85,10 @@ solvers PIMPLE { momentumPredictor true; - correctPhi false; - checkMeshCourantNo yes; nOuterCorrectors 1; nCorrectors 4; nNonOrthogonalCorrectors 0; - ddtCorr true; - pRefCell 0; + pRefPoint (0.0001 0.0001 0.001); pRefValue 1e5; } diff --git a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/system/fvSolution b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/system/fvSolution index ad1ce720f8..8c2e284233 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/system/fvSolution +++ b/tutorials/incompressible/overPimpleDyMFoam/cylinder/cylinderAndBackground/system/fvSolution @@ -73,13 +73,9 @@ solvers PIMPLE { momentumPredictor false; - correctPhi false; //true; - oversetAdjustPhi true; nOuterCorrectors 1; nCorrectors 2; nNonOrthogonalCorrectors 0; - - ddtCorr true; } relaxationFactors diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/U b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/U new file mode 100644 index 0000000000..91d8e1070f --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/U @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 (1 0 0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + walls + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + hole + { + type movingWallVelocity; + value uniform (0 0 0); + } + + overset2 + { + patchType overset; + type overset; + setHoleCellValue true; + holeCellValue (0 0 0); + } + + inlet + { + type fixedValue; + value $internalField; + } + + outlet + { + type inletOutlet; + inletValue uniform (0 0 0); + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/epsilon b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/epsilon new file mode 100644 index 0000000000..ab3667a0a7 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/epsilon @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 200; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type epsilonWallFunction; + value $internalField; + } + + inlet + { + type turbulentMixingLengthDissipationRateInlet; + mixingLength 0.01; // 1cm - half channel height + value $internalField; + } + + outlet + { + type zeroGradient; + } + + overset + { + type overset; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/k b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/k new file mode 100644 index 0000000000..a5a0a76d6f --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/k @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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.2; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type kqRWallFunction; + value uniform 0; + } + + inlet + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.05; // 5% turbulent intensity + value $internalField; + } + + outlet + { + type zeroGradient; + } + + overset + { + type overset; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nuTilda b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nuTilda new file mode 100644 index 0000000000..f366ccacb5 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nuTilda @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + } + + inlet + { + type fixedValue; + value uniform 0; + } + + ".*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nut b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nut new file mode 100644 index 0000000000..f685eca1f6 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/nut @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type nutkWallFunction; + value uniform 0; + } + + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/p b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/p new file mode 100644 index 0000000000..f948222baa --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/p @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type zeroGradient; + } + + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/pointDisplacement b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/pointDisplacement new file mode 100644 index 0000000000..ec9bfcc885 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/pointDisplacement @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: 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 +{ + ".*" + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + overset + { + patchType overset; + type zeroGradient; + } + + hole + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/zoneID b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/zoneID new file mode 100644 index 0000000000..a7fc1a310e --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/0.orig/zoneID @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object zoneID; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + ".*" + { + type zeroGradient; + } + + overset + { + type overset; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allclean b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allclean new file mode 100755 index 0000000000..fb1f384730 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/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/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun new file mode 100755 index 0000000000..78d5debbe7 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +./Allrun.pre + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun.pre b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun.pre new file mode 100755 index 0000000000..3b9a368814 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/Allrun.pre @@ -0,0 +1,21 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh + +# Select cellSets +runApplication topoSet + +runApplication subsetMesh box -patch hole -overwrite + +# Select cellSets +runApplication -s box topoSet + +restore0Dir + +# Use cellSets to write zoneID +runApplication setFields + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/dynamicMeshDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/dynamicMeshDict new file mode 100644 index 0000000000..4c72007e3e --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/dynamicMeshDict @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dynamicFvMesh dynamicOversetFvMesh; + +solver multiSolidBodyMotionSolver; + +multiSolidBodyMotionSolverCoeffs +{ + background + { + solidBodyMotionFunction linearMotion; + linearMotionCoeffs + { + velocity (0 0 0); + } + } + + movingZone + { + solidBodyMotionFunction rotatingMotion; + origin (0.005 0 0.005); + axis (0 0 1); + omega 20; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/fvOptions b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/fvOptions new file mode 100644 index 0000000000..68237ec4a6 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/fvOptions @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvOptions; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +limitU +{ + type velocityDampingConstraint; + active true; + selectionMode cellType; + UMax 0; + C 1; +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/transportProperties b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/transportProperties new file mode 100644 index 0000000000..ffc26ece40 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/transportProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +transportModel Newtonian; + +nu 1e-05; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/turbulenceProperties b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/turbulenceProperties new file mode 100644 index 0000000000..a92c85795e --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/blockMeshDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/blockMeshDict new file mode 100644 index 0000000000..85abd6082b --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/blockMeshDict @@ -0,0 +1,110 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 0.01; + +vertices +( + ( 0.00 0.0 0) + ( 1.00 0.0 0) + ( 1.00 1.0 0) + ( 0.00 1.0 0) + ( 0.00 0.0 1) + ( 1.00 0.0 1) + ( 1.00 1.0 1) + ( 0.00 1.0 1) + +//- 0 degrees shifted down + ( 0.30 -0.20 0) + ( 0.70 -0.20 0) + ( 0.70 0.40 0) + ( 0.30 0.40 0) + ( 0.30 -0.20 1) + ( 0.70 -0.20 1) + ( 0.70 0.40 1) + ( 0.30 0.40 1) + +); + +blocks +( + hex (0 1 2 3 4 5 6 7) background (25 25 1) simpleGrading (1 1 1) + hex (8 9 10 11 12 13 14 15) movingZone (16 24 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + overset + { + type overset; + faces + ( + ( 8 12 15 11) + (10 14 13 9) + (11 15 14 10) + ( 9 13 12 8) + ); + } + walls + { + type wall; + faces + ( + (3 7 6 2) + (1 5 4 0) + ); + } + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + outlet + { + type patch; + faces + ( + (2 6 5 1) + ); + } + // Populated by subsetMesh + hole + { + type wall; + faces (); + } + frontAndBack + { + type empty; + faces + ( + (0 3 2 1) + (4 5 6 7) + ( 8 11 10 9) + (12 13 14 15) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/controlDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/controlDict new file mode 100644 index 0000000000..1352d192a4 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/controlDict @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application overPimpleDyMFoam; + +startFrom startTime; + +startTime 0.0; + +stopAt endTime; + +endTime 0.28; + +deltaT 0.02; + +writeControl adjustableRunTime; + +writeInterval 0.002; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 8; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + +adjustTimeStep yes; + +maxCo 1; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/decomposeParDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/decomposeParDict new file mode 100644 index 0000000000..a5379611da --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/decomposeParDict @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 3; + +method hierarchical; + +coeffs +{ + n (3 1 1); +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSchemes b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSchemes new file mode 100644 index 0000000000..eac198092a --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSchemes @@ -0,0 +1,72 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + default none; + div(phi,U) Gauss limitedLinear 1; + div(phi,k) Gauss limitedLinear 1; + div(phi,epsilon) Gauss limitedLinear 1; + div(phi,R) Gauss limitedLinear 1; + div(R) Gauss linear; + div(phi,nuTilda) Gauss limitedLinear 1; + div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; + laplacian(diffusivity,cellDisplacement) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +oversetInterpolation +{ + method inverseDistance; + searchBoxDivisions (200 200 1); + searchBox (0.00 -0.0021 -0.0001)(0.00701 0.00401 0.0101); + allowHoleDonors false; +} + +fluxRequired +{ + default no; + pcorr ; + p ; +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSolution b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSolution new file mode 100644 index 0000000000..aa58a0bacb --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/fvSolution @@ -0,0 +1,93 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + cellDisplacement + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + maxIter 100; + } + + p + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0; + } + + pFinal + { + $p; + } + + pcorr + { + $p; + solver PCG; + preconditioner DIC; + } + + pcorrFinal + { + $pcorr; + relTol 0; + } + + "(U|k|epsilon)" + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-6; + relTol 0; + } + + "(U|k|epsilon)Final" + { + $U; + tolerance 1e-6; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + correctPhi no; + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; + pRefPoint (0.0001 0.0001 0.001); + pRefValue 0.0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/setFieldsDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/setFieldsDict new file mode 100644 index 0000000000..5f37ffdff0 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/setFieldsDict @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue zoneID 123 +); + +regions +( + // Set cell values + // (does zerogradient on boundaries) + cellToCell + { + set c0; + + fieldValues + ( + volScalarFieldValue zoneID 0 + ); + } + + cellToCell + { + set c1; + + fieldValues + ( + volScalarFieldValue zoneID 1 + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/topoSetDict b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/topoSetDict new file mode 100644 index 0000000000..ce3f6ac250 --- /dev/null +++ b/tutorials/incompressible/overPimpleDyMFoam/rotatingSquare/system/topoSetDict @@ -0,0 +1,67 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name c0; + type cellSet; + action new; + source regionToCell; + insidePoints ((0.001 0.001 0.001)); + } + + { + name c1; + type cellSet; + action new; + source cellToCell; + set c0; + } + + { + name c1; + type cellSet; + action invert; + } + + // Select box to remove from region 1 + + { + name box; + type cellSet; + action new; + source cellToCell; + set c1; + } + + { + name box; + type cellSet; + action subset; + source boxToCell; + box (0.004 -0.001 -100)(0.006 0.003 100); + } + + { + name box; + type cellSet; + action invert; + } +); + + +// ************************************************************************* // diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean index 385a30a2f2..fb1f384730 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allclean @@ -5,8 +5,4 @@ cd "${0%/*}" || exit # Run from this directory cleanCase0 -rm -f constant/polyMesh/boundary -rm -f constant/polyMesh/zoneID -rm -f constant/cellInterpolationWeight - #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun index 54dcc75551..f2fdf5973c 100755 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/Allrun @@ -5,6 +5,10 @@ cd "${0%/*}" || exit # Run from this directory ./Allrun.pre -runApplication overPimpleDyMFoam +runApplication decomposePar -cellDist + +runParallel $(getApplication) + +runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/constant/dynamicMeshDict b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/constant/dynamicMeshDict index f02b27c805..18d3ca80a0 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/constant/dynamicMeshDict +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/constant/dynamicMeshDict @@ -16,15 +16,6 @@ FoamFile dynamicFvMesh dynamicOversetFvMesh; -//motionSolverLibs (fvMotionSolvers); -// -//solver displacementLaplacian; -// -//displacementLaplacianCoeffs -//{ -// diffusivity uniform 1; -//} - solver multiSolidBodyMotionSolver; multiSolidBodyMotionSolverCoeffs @@ -34,7 +25,7 @@ multiSolidBodyMotionSolverCoeffs solidBodyMotionFunction rotatingMotion; rotatingMotionCoeffs { - origin (0.005 0.005 0.005); + origin (0.05 0.05 0.05); axis (0 0 1); omega 100.0; } diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/blockMeshDict b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/blockMeshDict index 5cb3b367fa..b012a0a4b2 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/blockMeshDict +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/blockMeshDict @@ -14,7 +14,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -scale 0.01; +scale 0.1; vertices ( @@ -39,9 +39,9 @@ vertices blocks ( - hex (0 1 2 3 4 5 6 7) (36 36 1) simpleGrading (1 1 1) + hex (0 1 2 3 4 5 6 7) (72 72 1) simpleGrading (1 1 1) - hex (8 9 10 11 12 13 14 15) movingZone (28 12 1) simpleGrading (1 1 1) + hex (8 9 10 11 12 13 14 15) movingZone (56 24 1) simpleGrading (1 1 1) ); edges diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSchemes b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSchemes index 4ef5cd9c4d..f2e98ff01d 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSchemes +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSchemes @@ -57,11 +57,10 @@ snGradSchemes oversetInterpolation { method inverseDistance; - searchBox (0 0 0)(0.01 0.01 0.01); - searchBoxDivisions (100 100 1); - - //method trackingInverseDistance; - //searchBoxDivisions 2{(100 100 1)}; + searchBox (0 0 0)(0.1 0.1 0.1); + searchBoxDivisions (130 130 1); + holeLayers 4; + useLayer 2; } fluxRequired diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSolution b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSolution index dcda40c14a..6e9adf7f99 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSolution +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/fvSolution @@ -70,13 +70,10 @@ solvers PIMPLE { momentumPredictor no; - correctPhi no; nOuterCorrectors 1; nCorrectors 2; nNonOrthogonalCorrectors 0; - ddtCorr false; - pRefPoint (0.0001 0.0001 0.001); pRefValue 0.0; } diff --git a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/topoSetDict b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/topoSetDict index 3d4bf0a430..aed0a2982f 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/topoSetDict +++ b/tutorials/incompressible/overPimpleDyMFoam/simpleRotor/system/topoSetDict @@ -21,7 +21,7 @@ actions type cellSet; action new; source regionToCell; - insidePoints ((0.001 0.001 0.001)); + insidePoints ((0.01 0.01 0.01)); } { @@ -53,7 +53,7 @@ actions type cellSet; action subset; source boxToCell; - box (0.0025 0.0045 -100)(0.0075 0.0055 100); + box (0.025 0.045 -100)(0.075 0.055 100); } { diff --git a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSchemes b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSchemes index d3322474ce..938e6326c2 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSchemes +++ b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSchemes @@ -53,12 +53,11 @@ snGradSchemes oversetInterpolation { - method cellVolumeWeight; - // Faster but less accurate - //method trackingInverseDistance; - //searchBox (0 0 0)(0.02 0.01 0.01); - //searchBoxDivisions 3{(64 64 1)}; + method trackingInverseDistance; + searchBox (0 0 0)(0.02 0.01 0.01); + searchBoxDivisions 3{(64 64 1)}; + allowInterpolatedDonors false; } fluxRequired diff --git a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSolution b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSolution index 6ea70cc475..faef1b05ce 100644 --- a/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSolution +++ b/tutorials/incompressible/overPimpleDyMFoam/twoSimpleRotors/system/fvSolution @@ -71,13 +71,10 @@ solvers PIMPLE { momentumPredictor false; - correctPhi no; nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 0; - ddtCorr true; - pRefPoint (0.0001 0.0001 0.001); pRefValue 0.0; } diff --git a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/constant/turbulenceProperties b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/constant/turbulenceProperties index 24a7a38825..fbf989cc22 100644 --- a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/constant/turbulenceProperties +++ b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/constant/turbulenceProperties @@ -15,7 +15,7 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // simulationType RAS; - +density variable; RAS { RASModel kEpsilon; diff --git a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/controlDict b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/controlDict index 3ef0847481..fa4162f4ee 100644 --- a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/controlDict +++ b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/controlDict @@ -87,24 +87,6 @@ functions (0.0009999 0.0015 0.003) ); } - - alphaVol - { - libs (utilityFunctionObjects); - type coded; - name alphaVolume; - writeControl timeStep; - writeInterval 10; - - codeWrite - #{ - const auto& alpha = - mesh().lookupObject("alpha.water"); - - Info<< "Alpha volume = " << alpha.weightedAverage(mesh().Vsc()) - << endl; - #}; - } } diff --git a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/fvSolution b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/fvSolution index 7b9db71696..c4160a3638 100644 --- a/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/fvSolution +++ b/tutorials/multiphase/overCompressibleInterDyMFoam/compressibleTwoSimpleRotors/system/fvSolution @@ -92,11 +92,9 @@ solvers PIMPLE { momentumPredictor no; - correctPhi no; nOuterCorrectors 2; nCorrectors 3; nNonOrthogonalCorrectors 0; - ddtCorr false; } relaxationFactors diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/controlDict b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/controlDict index e9a515f45e..baf79486f5 100644 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/controlDict +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/controlDict @@ -30,7 +30,7 @@ deltaT 0.001; writeControl adjustable; -writeInterval 0.5; +writeInterval 0.05; purgeWrite 0; @@ -82,21 +82,20 @@ functions alphaVol { - libs (utilityFunctionObjects); - type coded; - name alphaVolume; + // Mandatory entries + type volFieldValue; + libs (fieldFunctionObjects); + fields (alpha.water); + operation volIntegrate; + regionType all; + + // Optional entries + postOperation none; + // Write at same frequency as fields writeControl timeStep; - writeInterval 10; - - codeWrite - #{ - - const volScalarField& alpha = - mesh().lookupObject("alpha.water"); - - Info<< "Alpha volume = " << alpha.weightedAverage(mesh().Vsc()) - << endl; - #}; + writeInterval 1; + writeFields false; + log true; } } diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSchemes b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSchemes index 2b9b9cb0d7..f7f368ddfd 100644 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSchemes +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSchemes @@ -54,7 +54,9 @@ snGradSchemes oversetInterpolation { - method cellVolumeWeight; + method inverseDistance; + holeLayers 6; + useLayer 3; } oversetInterpolationSuppressed diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSolution index 4c1f5fca6f..6604795337 100644 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSolution +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSolution @@ -80,12 +80,6 @@ PIMPLE nCorrectors 2; nNonOrthogonalCorrectors 0; - ddtCorr yes; - correctPhi no; - - moveMeshOuterCorrectors no; - turbOnFinalIterOnly no; - oversetAdjustPhi no; } diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/system/fvSolution index 37151be133..5dcad55881 100644 --- a/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/system/fvSolution +++ b/tutorials/multiphase/overInterDyMFoam/floatingBodyWithSpring/background/system/fvSolution @@ -80,12 +80,6 @@ PIMPLE nCorrectors 3; nNonOrthogonalCorrectors 0; - ddtCorr yes; - correctPhi no; - checkMeshCourantNo no; - - moveMeshOuterCorrectors no; - turbOnFinalIterOnly no; oversetAdjustPhi no; } diff --git a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/Allrun b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/Allrun index aafec1ca59..25fcd0f30b 100755 --- a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/Allrun +++ b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/Allrun @@ -28,4 +28,4 @@ runParallel $(getApplication) runParallel redistributePar -reconstruct -overwrite -#------------------------------------------------------------------------------ \ No newline at end of file +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSchemes b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSchemes index fa519e0e75..bcdff13df3 100644 --- a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSchemes +++ b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSchemes @@ -72,6 +72,9 @@ oversetInterpolation (500 500 500) (500 500 500) ); + + holeLayers 6; + useLayer 3; } oversetInterpolationSuppressed diff --git a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSolution index b1f72e00bf..ecd805abb2 100644 --- a/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSolution +++ b/tutorials/multiphase/overInterDyMFoam/rigidBodyHull/background/system/fvSolution @@ -117,9 +117,7 @@ PIMPLE nOuterCorrectors 2; nCorrectors 2; nNonOrthogonalCorrectors 0; - correctPhi no; oversetAdjustPhi no; - ddtCorr false; momentumPredictor false; } diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/U b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/U new file mode 100644 index 0000000000..e5132452aa --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/U @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + value uniform (0 0 0); + } + + walls + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + hole + { + type movingWallVelocity; + value uniform (0 0 0); + } + + top + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/alpha.water b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/alpha.water new file mode 100644 index 0000000000..c1fd49f538 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/alpha.water @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type zeroGradient; + } + + top + { + type inletOutlet; + inletValue uniform 0; + value uniform 0; + } + + overset + { + type overset; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p new file mode 100644 index 0000000000..02ceaec9d2 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type calculated; + value uniform 0; + } + + overset + { + type overset; + value uniform 0; + } + + top + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p_rgh b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p_rgh new file mode 100644 index 0000000000..6f7c3d19c7 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/p_rgh @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole)" + { + type fixedFluxPressure; + } + + overset + { + type overset; + value uniform 0; + massCorrection false; + } + + top + { + type prghTotalPressure; + p0 $internalField; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/pointDisplacement b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/pointDisplacement new file mode 100644 index 0000000000..ec9bfcc885 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/pointDisplacement @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: 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 +{ + ".*" + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + overset + { + patchType overset; + type zeroGradient; + } + + hole + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/zoneID b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/zoneID new file mode 100644 index 0000000000..91a8700c42 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/0.orig/zoneID @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object zoneID; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + ".*" + { + type zeroGradient; + } + + hole + { + type zeroGradient; + } + + overset + { + type overset; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allclean b/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allclean new file mode 100755 index 0000000000..fb1f384730 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/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/overInterDyMFoam/simpleRotor/Allrun b/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun new file mode 100755 index 0000000000..78d5debbe7 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +./Allrun.pre + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun.pre new file mode 100755 index 0000000000..3b9a368814 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/Allrun.pre @@ -0,0 +1,21 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh + +# Select cellSets +runApplication topoSet + +runApplication subsetMesh box -patch hole -overwrite + +# Select cellSets +runApplication -s box topoSet + +restore0Dir + +# Use cellSets to write zoneID +runApplication setFields + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/dynamicMeshDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/dynamicMeshDict new file mode 100644 index 0000000000..a965369bff --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/dynamicMeshDict @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dynamicFvMesh dynamicOversetFvMesh; + +solver multiSolidBodyMotionSolver; + +multiSolidBodyMotionSolverCoeffs +{ + movingZone + { + solidBodyMotionFunction rotatingMotion; + rotatingMotionCoeffs + { + origin (0.05 0.05 0.05); + axis (0 0 1); + omega 60.0; + } + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/fvOptions b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/fvOptions new file mode 100644 index 0000000000..a46546f6b8 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/fvOptions @@ -0,0 +1,35 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +limitU +{ + type velocityDampingConstraint; + active false; + selectionMode cellType; + UMax 0; + C 4; +} + +limitUAll +{ + type limitVelocity; + active false; + selectionMode all; + max 0.2; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/g b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/g new file mode 100644 index 0000000000..0caf41216a --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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/overInterDyMFoam/simpleRotor/constant/transportProperties b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/transportProperties new file mode 100644 index 0000000000..ef2a877eac --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/transportProperties @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 998.2; +} + +air +{ + transportModel Newtonian; + nu 1.48e-05; + rho 1; +} + +sigma 0.0; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/turbulenceProperties b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/turbulenceProperties new file mode 100644 index 0000000000..6f6dba7629 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/blockMeshDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/blockMeshDict new file mode 100644 index 0000000000..f537f24aa2 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/blockMeshDict @@ -0,0 +1,102 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 0.1; + +vertices +( + ( 0.00 0.0 0) + ( 1.00 0.0 0) + ( 1.00 1.0 0) + ( 0.00 1.0 0) + ( 0.00 0.0 1) + ( 1.00 0.0 1) + ( 1.00 1.0 1) + ( 0.00 1.0 1) + + ( 0.15 0.35 0) + ( 0.85 0.35 0) + ( 0.85 0.65 0) + ( 0.15 0.65 0) + ( 0.15 0.35 1) + ( 0.85 0.35 1) + ( 0.85 0.65 1) + ( 0.15 0.65 1) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (36 36 1) simpleGrading (1 1 1) + hex (8 9 10 11 12 13 14 15) movingZone (28 12 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + overset + { + type overset; + faces + ( + ( 8 12 15 11) + (10 14 13 9) + (11 15 14 10) + ( 9 13 12 8) + ); + } + + walls + { + type wall; + faces + ( + (1 5 4 0) + (0 4 7 3) + (2 6 5 1) + ); + } + + // Populated by subsetMesh + hole + { + type wall; + faces (); + } + + top + { + type patch; + faces ((3 7 6 2)); + } + + frontAndBack + { + type empty; + faces + ( + (0 3 2 1) + (4 5 6 7) + ( 8 11 10 9) + (12 13 14 15) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/controlDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/controlDict new file mode 100644 index 0000000000..fa9e751c9a --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/controlDict @@ -0,0 +1,103 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application overInterDyMFoam; + +startFrom startTime; + +startTime 0.; + +stopAt endTime; + +endTime 6; + +deltaT 0.0025; + +writeControl adjustable; + +writeInterval 0.5; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + +adjustTimeStep yes; + +maxCo 1.0; +maxAlphaCo 2.0; + +functions +{ + probes + { + type probes; + libs (sampling); + + // Name of the directory for probe data + name probes; + + // Write at same frequency as fields + writeControl timeStep; + writeInterval 1; + + // Fields to be probed + fields (p U); + + // Optional: interpolation scheme to use (default is cell) + interpolationScheme cell; + + probeLocations + ( + (0.0009999 0.0015 0.003) + ); + } + + residuals + { + type solverInfo; + libs (utilityFunctionObjects); + fields (p_rgh); + } + + alphaVol + { + type volFieldValue; + libs (fieldFunctionObjects); + fields (alpha.water); + operation volIntegrate; + regionType all; + postOperation none; + + // Write at same frequency as fields + writeControl timeStep; + writeInterval 1; + writeFields false; + log true; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/decomposeParDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/decomposeParDict new file mode 100644 index 0000000000..a5379611da --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/decomposeParDict @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 3; + +method hierarchical; + +coeffs +{ + n (3 1 1); +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSchemes b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSchemes new file mode 100644 index 0000000000..92f5b0408f --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSchemes @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + default none; + div(rhoPhi,U) Gauss upwind; + + div(phi,alpha) Gauss vanLeer; + div(phirb,alpha) Gauss linear; + + div(phi,k) Gauss limitedLinear 1; + div(phi,epsilon) Gauss limitedLinear 1; + div(phi,R) Gauss limitedLinear 1; + div(R) Gauss linear; + div(phi,nuTilda) Gauss limitedLinear 1; + div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +oversetInterpolation +{ + method inverseDistance; + searchBox (0 0 0)(0.1 0.1 0.1); + searchBoxDivisions (100 100 1); +} + +fluxRequired +{ + default no; + pcorr ; + p_rgh ; +} + +oversetInterpolationSuppressed +{ + grad(p_rgh); + surfaceIntegrate(phiHbyA); +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSolution new file mode 100644 index 0000000000..1910d0df0c --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/fvSolution @@ -0,0 +1,97 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + cellDisplacement + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + maxIter 100; + } + + "alpha.water.*" + { + nAlphaCorr 2; + nAlphaSubCycles 2; + cAlpha 1; + icAlpha 0; + scAlpha 0; + + MULESCorr yes; + nLimiterIter 5; + alphaApplyPrevCorr no; + + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-8; + relTol 0; + } + + p_rgh + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-8; + relTol 0; + } + + p_rghFinal + { + $p_rgh; + } + + "(U|k|epsilon)" + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-6; + relTol 0; + } + + "(U|k|epsilon)Final" + { + $U; + tolerance 1e-6; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor no; + nOuterCorrectors 1; + nCorrectors 3; + nNonOrthogonalCorrectors 0; + + oversetAdjustPhi true; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/setFieldsDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/setFieldsDict new file mode 100644 index 0000000000..69bef4168c --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/setFieldsDict @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue zoneID 123 + volScalarFieldValue alpha.water 0 +); + +regions +( + cellToCell + { + set c0; + + fieldValues + ( + volScalarFieldValue zoneID 0 + ); + } + + cellToCell + { + set c1; + + fieldValues + ( + volScalarFieldValue zoneID 1 + ); + } + + boxToCell + { + box ( -100 -100 -100 ) ( 100 0.05 100 ); + fieldValues + ( + volScalarFieldValue alpha.water 1 + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/topoSetDict b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/topoSetDict new file mode 100644 index 0000000000..ace174263f --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/simpleRotor/system/topoSetDict @@ -0,0 +1,67 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name c0; + type cellSet; + action new; + source regionToCell; + insidePoints ((0.001 0.001 0.001)); + } + + { + name c1; + type cellSet; + action new; + source cellToCell; + set c0; + } + + { + name c1; + type cellSet; + action invert; + } + + // Select box to remove from region 1 + + { + name box; + type cellSet; + action new; + source cellToCell; + set c1; + } + + { + name box; + type cellSet; + action subset; + source boxToCell; + box (0.025 0.045 -100)(0.075 0.055 100); + } + + { + name box; + type cellSet; + action invert; + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/system/fvSolution index 2ee913057c..c2941ede0d 100644 --- a/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/system/fvSolution +++ b/tutorials/multiphase/overInterDyMFoam/twoSimpleRotors/system/fvSolution @@ -91,12 +91,10 @@ solvers PIMPLE { momentumPredictor no; - correctPhi no; nOuterCorrectors 2; nCorrectors 3; nNonOrthogonalCorrectors 0; - ddtCorr true; pRefPoint (0.0002 0.0099 0.001); pRefValue 0.0; diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/U b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/U new file mode 100644 index 0000000000..a04774168a --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/U @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + walls + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + hole + { + type movingWallVelocity; + value uniform (0 0 0); + } + + outlet + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + inlet + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + overset + { + type overset; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/alpha.water b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/alpha.water new file mode 100644 index 0000000000..223b009fd6 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/alpha.water @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole|inlet|outlet)" + { + type zeroGradient; + } + + overset + { + type overset; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/epsilon b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/epsilon new file mode 100644 index 0000000000..9dea326107 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/epsilon @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + } + + "(walls|hole|inlet|outlet)" + { + type epsilonWallFunction; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/k b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/k new file mode 100644 index 0000000000..df0211d731 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/k @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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.01; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + } + + "(walls|hole|inlet|outlet)" + { + type kqRWallFunction; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/nut b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/nut new file mode 100644 index 0000000000..cd2e8b96e1 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/nut @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + } + + "(walls|hole|inlet|outlet)" + { + type nutkWallFunction; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p new file mode 100644 index 0000000000..ee9a3ce01e --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + "(walls|hole|outlet|inlet)" + { + type calculated; + value $internalField; + } + + overset + { + type overset; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p_rgh b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p_rgh new file mode 100644 index 0000000000..d16752625e --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/p_rgh @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + oversetPatch + { + type overset; + } + + "(walls|hole|outlet|inlet)" + { + type fixedFluxPressure; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/pointDisplacement b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/pointDisplacement new file mode 100644 index 0000000000..4fa76e1b4c --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/pointDisplacement @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: 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 +{ + ".*" + { + type uniformFixedValue; + uniformValue (0 0 0); + } + + hole + { + type zeroGradient; + } + + overset + { + patchType overset; + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/zoneID b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/zoneID new file mode 100644 index 0000000000..5940e58455 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/0.orig/zoneID @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object zoneID; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + overset + { + type overset; + } + + ".*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allclean b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allclean new file mode 100755 index 0000000000..fb1f384730 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/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/overInterDyMFoam/twoSquaresOutDomain/Allrun b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun new file mode 100755 index 0000000000..207f5d764f --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun @@ -0,0 +1,14 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +./Allrun.pre + +runApplication decomposePar -cellDist + +runParallel $(getApplication) + +runApplication reconstructPar + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun.pre b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun.pre new file mode 100755 index 0000000000..c0a6663fb9 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/Allrun.pre @@ -0,0 +1,21 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh + +# Select cellSets +runApplication -s 1 topoSet + +runApplication subsetMesh box -patch hole -overwrite + +# Select cellSets +runApplication -s 2 topoSet + +restore0Dir + +# Use cellSets to write zoneID +runApplication setFields + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/dynamicMeshDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/dynamicMeshDict new file mode 100644 index 0000000000..910ea490da --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/dynamicMeshDict @@ -0,0 +1,61 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dynamicFvMesh dynamicOversetFvMesh; + +solver multiSolidBodyMotionSolver; + +multiSolidBodyMotionSolverCoeffs +{ + movingZone1 + { + solidBodyMotionFunction multiMotion; + multiMotionCoeffs + { + one + { + solidBodyMotionFunction linearMotion; + origin (0.005 0.005 0.005); + axis (0 0 1); + omega 0; + velocity (-0.1 -0.1 0); + } + two + { + solidBodyMotionFunction rotatingMotion; + origin (0.005 0.005 0.005); + axis (0 0 1); + omega 20.0; + velocity (-0.1 0 0); + } + } + } + + movingZone2 + { + solidBodyMotionFunction linearMotion; + linearMotionCoeffs + { + velocity (0.1 0 0); + origin (0.009 0.005 0.005); + axis (0 0 1); + omega -100.0; + } + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/fvOptions b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/fvOptions new file mode 100644 index 0000000000..12c1095bab --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/fvOptions @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvOptions; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +limitU +{ + type velocityDampingConstraint; + active true; + selectionMode cellType; + UMax 0; + C 4; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/g b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/g new file mode 100644 index 0000000000..0caf41216a --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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/overInterDyMFoam/twoSquaresOutDomain/constant/transportProperties b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/transportProperties new file mode 100644 index 0000000000..15d82f70ce --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/transportProperties @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 998.2; +} + +air +{ + transportModel Newtonian; + nu 1.48e-05; + rho 1; +} + +sigma 0.0; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/turbulenceProperties b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/turbulenceProperties new file mode 100644 index 0000000000..1b7a22cd69 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/constant/turbulenceProperties @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +density variable; + +RAS +{ + RASModel kEpsilon; + + turbulence on; + + printCoeffs on; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/blockMeshDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/blockMeshDict new file mode 100644 index 0000000000..d4a1c04280 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/blockMeshDict @@ -0,0 +1,149 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 0.01; + +vertices +( + ( 0.00 0.0 0) + ( 2.00 0.0 0) + ( 2.00 1.0 0) + ( 0.00 1.0 0) + ( 0.00 0.0 1) + ( 2.00 0.0 1) + ( 2.00 1.0 1) + ( 0.00 1.0 1) + + // movingZone1 + ( 0.15 0.35 0) + ( 0.85 0.35 0) + ( 0.85 0.65 0) + ( 0.15 0.65 0) + ( 0.15 0.35 1) + ( 0.85 0.35 1) + ( 0.85 0.65 1) + ( 0.15 0.65 1) + + // movingZone2 + ( 1.15 0.15 0) + ( 1.45 0.15 0) + ( 1.45 0.85 0) + ( 1.15 0.85 0) + ( 1.15 0.15 1) + ( 1.45 0.15 1) + ( 1.45 0.85 1) + ( 1.15 0.85 1) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (140 70 1) simpleGrading (1 1 1) + + hex (8 9 10 11 12 13 14 15) movingZone1 (60 24 1) simpleGrading (1 1 1) + + hex (16 17 18 19 20 21 22 23) movingZone2 (24 60 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + overset1 + { + type overset; + faces + ( + ( 8 12 15 11) + (10 14 13 9) + (11 15 14 10) + ( 9 13 12 8) + ); + } + overset2 + { + type overset; + faces + ( + (16 20 23 19) + (18 22 21 17) + (19 23 22 18) + (17 21 20 16) + ); + } + walls + { + type wall; + faces + ( + (3 7 6 2) + (1 5 4 0) + ); + } + inlet + { + type wall; + faces + ( + (0 4 7 3) + ); + } + outlet + { + type wall; + faces + ( + (2 6 5 1) + ); + } + // Populated by subsetMesh + hole + { + type wall; + faces (); + } + frontAndBack + { + type empty; + faces + ( + (0 3 2 1) + (4 5 6 7) + ); + } + frontAndBack1 + { + type empty; + faces + ( + ( 8 11 10 9) + (12 13 14 15) + ); + } + frontAndBack2 + { + type empty; + faces + ( + (16 19 18 17) + (20 21 22 23) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/controlDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/controlDict new file mode 100644 index 0000000000..ccfe94e100 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/controlDict @@ -0,0 +1,91 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +libs (overset fvMotionSolvers); + +application overInterDyMFoam; + +startFrom startTime; + +startTime 0.0; + +stopAt endTime; + +endTime 0.08; + +deltaT 0.001; + +writeControl adjustable; + +writeInterval 0.01; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 12; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 1.5; + +maxAlphaCo 2.0; + +maxDeltaT 1; + + +functions +{ + probes + { + type probes; + libs (sampling); + name probes; + writeControl timeStep; + writeInterval 1; + fields (p U); + interpolationScheme cell; + probeLocations + ( + (0.0009999 0.0015 0.003) + ); + } + + alphaVol + { + type volFieldValue; + libs (fieldFunctionObjects); + fields (alpha.water); + operation volIntegrate; + regionType all; + postOperation none; + writeControl timeStep; + writeInterval 1; + writeFields false; + log true; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/decomposeParDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/decomposeParDict new file mode 100644 index 0000000000..a5379611da --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/decomposeParDict @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 3; + +method hierarchical; + +coeffs +{ + n (3 1 1); +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSchemes b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSchemes new file mode 100644 index 0000000000..8a31dddef2 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSchemes @@ -0,0 +1,83 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / 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 +{ + default none; + + div(rhoPhi,U) Gauss upwind; + div(U) Gauss linear; + + div(phi,alpha) Gauss vanLeer; + div(phirb,alpha) Gauss linear; + + div(phi,alpha.water) Gauss upwind; + + div(phi,epsilon) Gauss upwind; + div(phi,k) Gauss upwind; + + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; +} + +laplacianSchemes +{ + default Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +oversetInterpolation +{ + method trackingInverseDistance; + searchBox (-0.01 -0.01 0)(0.03 0.02 0.01); + searchBoxDivisions 3{(264 264 1)}; + allowInterpolatedDonors false; +} + +fluxRequired +{ + default no; + pcorr ; + p ; +} + +oversetInterpolationSuppressed +{ + grad(p_rgh); + surfaceIntegrate(phiHbyA); +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSolution b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSolution new file mode 100644 index 0000000000..8d99832414 --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/fvSolution @@ -0,0 +1,115 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + cellDisplacement + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + maxIter 100; + } + + "alpha.water.*" + { + nAlphaCorr 3; + nAlphaSubCycles 2; + cAlpha 1; + icAlpha 0; + scAlpha 0; + + MULESCorr yes; + nLimiterIter 5; + alphaApplyPrevCorr no; + + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-8; + relTol 0; + } + + p_rgh + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-12; + relTol 0.01; + maxIter 500; + } + + p_rghFinal + { + $p_rgh; + relTol 0; + } + + pcorr + { + $p; + solver PCG; + preconditioner DIC; + } + + pcorrFinal + { + $pcorr; + relTol 0; + } + + "(U|k|epsilon)" + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-6; + relTol 0.01; + maxIter 200; + minIter 1; + } + + "(U|k|epsilon)Final" + { + $U; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor no; + correctPhi no; + nOuterCorrectors 2; + nCorrectors 3; + nNonOrthogonalCorrectors 0; + + pRefPoint (0.0002 0.0099 0.001); + pRefValue 0.0; +} + +relaxationFactors +{ + fields + { + } + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/setFieldsDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/setFieldsDict new file mode 100644 index 0000000000..0bf2eebe3d --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/setFieldsDict @@ -0,0 +1,68 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues +( + volScalarFieldValue zoneID 123 + volScalarFieldValue alpha.water 0 +); + +regions +( + // Set cell values + // (does zerogradient on boundaries) + cellToCell + { + set c0; + + fieldValues + ( + volScalarFieldValue zoneID 0 + ); + } + + cellToCell + { + set c1; + + fieldValues + ( + volScalarFieldValue zoneID 1 + ); + } + + cellToCell + { + set c2; + + fieldValues + ( + volScalarFieldValue zoneID 2 + ); + } + + boxToCell + { + box ( -100 -100 -100 ) ( 100 0.005 100 ); + fieldValues + ( + volScalarFieldValue alpha.water 1 + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/topoSetDict b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/topoSetDict new file mode 100644 index 0000000000..7a0c2b4b4e --- /dev/null +++ b/tutorials/multiphase/overInterDyMFoam/twoSquaresOutDomain/system/topoSetDict @@ -0,0 +1,95 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2206 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name c0; + type cellSet; + action new; + source regionsToCell; + insidePoints ((0.001 0.001 0.001)); + } + + { + name c1; + type cellSet; + action new; + source cellToCell; + set c0; + } + + { + name c1; + type cellSet; + action invert; + } + + { + name c2; + type cellSet; + action new; + source regionsToCell; + insidePoints ((0.0116 0.00151 0.001)); + set c1; + } + + { + name c1; + type cellSet; + action subtract; + source cellToCell; + set c2; + } + + // Select box to remove from region 1 and 2 + { + name box; + type cellSet; + action new; + source cellToCell; + set c1; + } + + { + name box; + type cellSet; + action add; + source cellToCell; + set c2; + } + + { + name box; + type cellSet; + action subset; + source boxToCell; + boxes + ( + (0.0025 0.0045 -100)(0.0075 0.0055 100) + (0.0125 0.0025 -100)(0.0135 0.0075 100) + ); + } + + { + name box; + type cellSet; + action invert; + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/controlDict b/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/controlDict index c111ae23d3..3ed597003e 100644 --- a/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/controlDict +++ b/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/controlDict @@ -31,13 +31,13 @@ startTime 0.0; stopAt endTime; -endTime 0.2; +endTime 0.1; deltaT 0.00001; writeControl adjustable; -writeInterval 0.001; +writeInterval 0.01; purgeWrite 0; @@ -87,24 +87,6 @@ functions (0.0009999 0.0015 0.003) ); } - - alphaVol - { - libs (utilityFunctionObjects); - type coded; - name alphaVolume; - writeControl timeStep; - writeInterval 10; - - codeWrite - #{ - const auto& alpha = - mesh().lookupObject("alpha.water"); - - Info<< "Alpha volume = " << alpha.weightedAverage(mesh().Vsc()) - << endl; - #}; - } } // ************************************************************************* // diff --git a/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/fvSolution b/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/fvSolution index fd9c104a08..01b91be689 100644 --- a/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/fvSolution +++ b/tutorials/multiphase/overInterPhaseChangeDyMFoam/twoSimpleRotors/system/fvSolution @@ -63,8 +63,8 @@ solvers pcorr { $p; - solver PCG; - preconditioner DIC; + solver PBiCGStab; + preconditioner DILU; } pcorrFinal @@ -93,15 +93,12 @@ solvers PIMPLE { momentumPredictor no; - correctPhi no; nOuterCorrectors 2; nCorrectors 3; nNonOrthogonalCorrectors 0; - ddtCorr false; - pRefPoint (0.0002 0.0099 0.001); - pRefValue 1e5; //Not used + pRefValue 1e5; } relaxationFactors