diff --git a/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T b/tutorials/basic/overLaplacianDyMFoam/heatTransferMassConservation1D/0.orig/T new file mode 100644 index 0000000000000000000000000000000000000000..335e318a57dc03b445031ab6acac023eb23c759d --- /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 0000000000000000000000000000000000000000..b8b6dd7a12c26f153d96d50b14b14b1798c28753 --- /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 0000000000000000000000000000000000000000..6ee55aa34cbef7731f921a1ede59baea743f8b98 --- /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 0000000000000000000000000000000000000000..276e3eb2733aca8ccf84d2094ae8e9fabce2c51d --- /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 0000000000000000000000000000000000000000..fb1f3847301c377e02e12439ba58cbf303af3ef9 --- /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 0000000000000000000000000000000000000000..78d5debbe7f687177b9c06cd6b65b939d99f8820 --- /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 0000000000000000000000000000000000000000..c293562f5dd83bd8add68aa2eceb11034b5b2577 --- /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 0000000000000000000000000000000000000000..18ea48770854b6e873c70b068da002a3af46100e --- /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 0000000000000000000000000000000000000000..7f46f2b24d2fff2ba0d65b61524a7178e0913b18 --- /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 0000000000000000000000000000000000000000..70938e0384d6b1c95f878cecb0151fe66e27cd9e --- /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 0000000000000000000000000000000000000000..bff7f6688d3af6658ca2cda84cdd6afc3b87dca8 --- /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 0000000000000000000000000000000000000000..4ef0862481b44ffe141d63fb355c5757d6da5ec0 --- /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 0000000000000000000000000000000000000000..70eb046da066f59ef4880ccf7a74254321a3b1ba --- /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 0000000000000000000000000000000000000000..dd0fc2e674f8e9aa7cbc7db09be93abc6e33b41c --- /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 0000000000000000000000000000000000000000..d5ca7c6b108b88b1aa2624f4db00b3a0fac5a6f2 --- /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 0000000000000000000000000000000000000000..0b59a695888d473f44a521800107b10a878a4bde --- /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 98f751d78ae12f291509a26440c151951729abae..5bdf27e0fbad206fdbe5ce40153c1b805cdcf883 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 f0a55f16f0aeeb74d4a4869a20274773bb4ea04b..3edc76612e8763e10498c00c9336b0793aac1456 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 ad1ce720f8fa523076c7c5284317976d0b33d63c..8c2e284233e6bfa59a99ee237ba88ce63c566a71 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 0000000000000000000000000000000000000000..91d8e1070f2de03009dfb7e2a7a65604245c8ca9 --- /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 0000000000000000000000000000000000000000..ab3667a0a76945aeb14badd344444c6cf8f104cc --- /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 0000000000000000000000000000000000000000..a5a0a76d6fbab0a3961b682375acd140186d384b --- /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 0000000000000000000000000000000000000000..f366ccacb5c43f5909ccd470ff8bfe77f6184ec0 --- /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 0000000000000000000000000000000000000000..f685eca1f6af786a73373d604981cb03429a110c --- /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 0000000000000000000000000000000000000000..f948222baabb33c83a015b9db9502a7a4cbde986 --- /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 0000000000000000000000000000000000000000..ec9bfcc8855da483a4b6c6211cc5d81a756bcd3e --- /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 0000000000000000000000000000000000000000..a7fc1a310e00104f92e380c01595ea41147b1ea6 --- /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 0000000000000000000000000000000000000000..fb1f3847301c377e02e12439ba58cbf303af3ef9 --- /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 0000000000000000000000000000000000000000..78d5debbe7f687177b9c06cd6b65b939d99f8820 --- /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 0000000000000000000000000000000000000000..3b9a368814f0c63a79445be01f73b46836accc39 --- /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 0000000000000000000000000000000000000000..4c72007e3eccbccf66614d57e0c856da9f6c1719 --- /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 0000000000000000000000000000000000000000..68237ec4a62913555d631a6c3c26a5df35cfdadd --- /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 0000000000000000000000000000000000000000..ffc26ece4048565ef455548d363727f67e7d4188 --- /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 0000000000000000000000000000000000000000..a92c85795e499734d725e9226b25d93aa512300f --- /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 0000000000000000000000000000000000000000..85abd6082b60f0c70d1264fe669d8f4f48210242 --- /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 0000000000000000000000000000000000000000..1352d192a48aa506536a79233bd4e12ad675c5c2 --- /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 0000000000000000000000000000000000000000..a5379611da2f91003287a44a7812545665f5056a --- /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 0000000000000000000000000000000000000000..eac198092afbbd490e4d344e9561103353fb658a --- /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 0000000000000000000000000000000000000000..aa58a0bacb139bd5ad02a9340c3299b49210e8eb --- /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 0000000000000000000000000000000000000000..5f37ffdff00da155c9dd640791bdbd4aae6284cf --- /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 0000000000000000000000000000000000000000..ce3f6ac2501641d17564817be26f011c1b776d8a --- /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 385a30a2f2d111a1a6983b6881da24f13bc76afa..fb1f3847301c377e02e12439ba58cbf303af3ef9 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 54dcc75551bf66e88f3055033b29afa8dce85128..f2fdf5973cd8158cf319dd4f8a24adf5f3a4f0bc 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 f02b27c805eea41833d3e81746b7c7a64821699e..18d3ca80a0a73606df19a5f91f646034277bf6a8 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 5cb3b367fa27e9327e010888b420259e29dac0e9..b012a0a4b265613eb70e23d971ad44e9295c1386 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 4ef5cd9c4d2d3e939f350b5763512089fa5ac991..f2e98ff01dfa234aa01ef39f7e3e7ec14ac66a31 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 dcda40c14a2be169dae51e41b9ac95631d2f36a1..6e9adf7f9911f19b4656bb5da69929047e70184f 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 3d4bf0a430ae2f7b0c1d0ae83b810a74219783de..aed0a2982f93934d6d685d5741171da82506aeba 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 d3322474ce5ee3fdde9b9a91ebd2d368b5371a2a..938e6326c249c003a3c056b404c152a62ce15859 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 6ea70cc4750e5674c64894f11172f51580e8c0ab..faef1b05ce40e04399a5b72e67be62b75ca7082f 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 24a7a3882571f8c6bc7f8208a715da726ccb8bec..fbf989cc22fec04483bb433c4488cd166c05fb90 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 3ef0847481ad7c1f61a3e2ccbecddca944f4cae8..fa4162f4ee6794c201a2b5c1a6e37976c898dcd5 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<volScalarField>("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 7b9db71696f54602dd8a6833e33d20f14e47ae25..c4160a36383b3a0cf33b92783227538b9840cc22 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 e9a515f45e930500c1fa94dedcdeb38d00189181..baf79486f5fb9ffade1f415ec1b2275e56475b0b 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<volScalarField>("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 2b9b9cb0d7ab30fa96e8c5546610e44ac1bf91b1..f7f368ddfdf5b2924d5f0823866f20f25157adc6 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 4c1f5fca6fc849964c48c3706c4ee4c6ca0fba96..66047953379eef6f4b52252110fbb629d3e82dca 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 37151be1337822a7217c2e0f12f994029caec9b0..5dcad5588125a9707df75e19ef55a3215b9e31c5 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 aafec1ca59e5f233ac2641861227c40df20959c5..25fcd0f30bbdf4752585557236a47665f194477d 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 fa519e0e75ae8ef3167bf7b7c0c2d7ec90c7099d..bcdff13df3702b455daaef8e73beee087660c369 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 b1f72e00bfa779eafc38ddfd45a388471bc93a70..ecd805abb22795c9d6953b899eaf7c3f699029c1 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 0000000000000000000000000000000000000000..e5132452aa46795289234fdde03ba896ade55f1c --- /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 0000000000000000000000000000000000000000..c1fd49f538a81a4c70080f96378acaf9c659f91f --- /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 0000000000000000000000000000000000000000..02ceaec9d22185f5a45756433f7bfe30f4e8706f --- /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 0000000000000000000000000000000000000000..6f7c3d19c76cff711a20aaeb1dcacec1041f6da5 --- /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 0000000000000000000000000000000000000000..ec9bfcc8855da483a4b6c6211cc5d81a756bcd3e --- /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 0000000000000000000000000000000000000000..91a8700c427b817e8c492043105fda681114cb06 --- /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 0000000000000000000000000000000000000000..fb1f3847301c377e02e12439ba58cbf303af3ef9 --- /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 0000000000000000000000000000000000000000..78d5debbe7f687177b9c06cd6b65b939d99f8820 --- /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 0000000000000000000000000000000000000000..3b9a368814f0c63a79445be01f73b46836accc39 --- /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 0000000000000000000000000000000000000000..a965369bffa8c1eb830d795d556c3825834cc1f2 --- /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 0000000000000000000000000000000000000000..a46546f6b85de87e4532f20dc22ae9a409cc9363 --- /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 0000000000000000000000000000000000000000..0caf41216abffe2ce9e02bf934e8bbd5122c19b9 --- /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 0000000000000000000000000000000000000000..ef2a877eac294ec7ab92a526deb01eb2ca4042a4 --- /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 0000000000000000000000000000000000000000..6f6dba762925713871b2ad3157886eaf90afe32c --- /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 0000000000000000000000000000000000000000..f537f24aa2e0312ff05ca029c72a4651def71606 --- /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 0000000000000000000000000000000000000000..fa9e751c9ae19e91bf3ba06cabb5576b909873b8 --- /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 0000000000000000000000000000000000000000..a5379611da2f91003287a44a7812545665f5056a --- /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 0000000000000000000000000000000000000000..92f5b0408ff5e08a8f37c383b60b1e9d4bd35ec3 --- /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 0000000000000000000000000000000000000000..1910d0df0c0bd37d57c575c447d0e6dcb2fb6050 --- /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 0000000000000000000000000000000000000000..69bef4168cf8db3a4a7a6a6e329b0fd03c6d5a48 --- /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 0000000000000000000000000000000000000000..ace174263fb0c701aad0585ac1ccfd6b7d7f7d6f --- /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 2ee913057cdaf891187ac55ece03372cc4723cb7..c2941ede0d4fd61c25b9f8a276da17f87bec39a6 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 0000000000000000000000000000000000000000..a04774168a5fb387a3d0e9c9117a441c9c5e4431 --- /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 0000000000000000000000000000000000000000..223b009fd6b2e0ddf1497b730758d7bc3ea34423 --- /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 0000000000000000000000000000000000000000..9dea3261072aa1b00441cbc357ac6db284e0f4b9 --- /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 0000000000000000000000000000000000000000..df0211d73126d8402ed7003c427017ff008fb0ab --- /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 0000000000000000000000000000000000000000..cd2e8b96e175fe04a0067992641ca726720cdad6 --- /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 0000000000000000000000000000000000000000..ee9a3ce01e34b95737857f388885bfed2bf3d7c3 --- /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 0000000000000000000000000000000000000000..d16752625ef19c7848152903e32edfbf352bd225 --- /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 0000000000000000000000000000000000000000..4fa76e1b4c79b032b695b4bc94ad986c22e39688 --- /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 0000000000000000000000000000000000000000..5940e58455abd0ba37d27071bfeb98512b4b2e2d --- /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 0000000000000000000000000000000000000000..fb1f3847301c377e02e12439ba58cbf303af3ef9 --- /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 0000000000000000000000000000000000000000..207f5d764f09e48466b0864a0d78fd28dc457afa --- /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 0000000000000000000000000000000000000000..c0a6663fb91e0b99e57bb5179da380df56c730e6 --- /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 0000000000000000000000000000000000000000..910ea490da2004b39d856a44f449c946e4f3dadf --- /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 0000000000000000000000000000000000000000..12c1095babe35b2240978d29619e8ee8f1cd7f23 --- /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 0000000000000000000000000000000000000000..0caf41216abffe2ce9e02bf934e8bbd5122c19b9 --- /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 0000000000000000000000000000000000000000..15d82f70ce82ac9916995268d055c6bcaab90be1 --- /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 0000000000000000000000000000000000000000..1b7a22cd691e9a725bb3a3c043409810a6aa67af --- /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 0000000000000000000000000000000000000000..d4a1c0428004642bc9672ec6f98386cbefe6f049 --- /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 0000000000000000000000000000000000000000..ccfe94e1009843cc3b6b1ebff74479eee0cbe51d --- /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 0000000000000000000000000000000000000000..a5379611da2f91003287a44a7812545665f5056a --- /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 0000000000000000000000000000000000000000..8a31dddef29e5e547d8e0d3254144129185efa6e --- /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 0000000000000000000000000000000000000000..8d99832414a147129b7fc22355711d93b3652de7 --- /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 0000000000000000000000000000000000000000..0bf2eebe3d9e748fbdfad1e4535562105a062c61 --- /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 0000000000000000000000000000000000000000..7a0c2b4b4e4c8e256c7be9695c04552d5c21749e --- /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 c111ae23d3ebbd957bdc4222be76857a62a09246..3ed597003ee17be55531949857178a268aa31189 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<volScalarField>("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 fd9c104a08d9aa6d234f7c5a5c3d8a1f9ff23dff..01b91be6895692272fead8a9b96bf94fc2e90889 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