diff --git a/tutorials/lesCavitatingFoam/Allclean b/tutorials/lesCavitatingFoam/Allclean new file mode 100755 index 0000000000000000000000000000000000000000..d37677187f39aed7d21c2ce584e2ec6d052c6464 --- /dev/null +++ b/tutorials/lesCavitatingFoam/Allclean @@ -0,0 +1,23 @@ +#!/bin/sh + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cd throttle + rm -rf constant/polyMesh/sets > /dev/null 2>&1 + rm -rf 0/polyMesh > /dev/null 2>&1 + rm system/cellSetDict > /dev/null 2>&1 + + cleanCase +cd .. + +cd throttle3D + rm -rf constant/polyMesh/sets > /dev/null 2>&1 + rm -rf 0 > /dev/null 2>&1 + cp -r 0.orig 0 + rm system/cellSetDict > /dev/null 2>&1 + rm -rf processor[0-9] > /dev/null 2>&1 + + cleanCase +cd .. + diff --git a/tutorials/lesCavitatingFoam/Allrun b/tutorials/lesCavitatingFoam/Allrun new file mode 100755 index 0000000000000000000000000000000000000000..f16d9a5c001fd0b84a0cd42d1aacafe25583d2d7 --- /dev/null +++ b/tutorials/lesCavitatingFoam/Allrun @@ -0,0 +1,44 @@ +#!/bin/sh + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application="lesCavitatingFoam" + +refineMeshByCellSet() +{ + echo "creating cell set for primary zone - $1" + cp system/cellSetDict.$1 system/cellSetDict + cellSet >& log.cellSet.$1 + + echo "refining primary zone - $1" + refineMesh -dict -overwrite >& log.refineMesh.$1 +} + +cd throttle + runApplication blockMesh + + refineMeshByCellSet 1 + refineMeshByCellSet 2 + refineMeshByCellSet 3 + + runApplication $application +cd .. + +cd throttle3D + cp -r 0.orig 0 + + runApplication blockMesh + + refineMeshByCellSet 1 + refineMeshByCellSet 2 + refineMeshByCellSet 3 + + echo "mapping fields from 2D throttle case" + mapFields ../throttle -sourceTime latestTime >& log.mapFields + + runApplication decomposePar + hostname > system/machines + runParallel $application 4 system/machines + runApplication reconstructPar +cd .. diff --git a/tutorials/lesCavitatingFoam/throttle/0/U b/tutorials/lesCavitatingFoam/throttle/0/U new file mode 100644 index 0000000000000000000000000000000000000000..9f02c5d6a097072e62feb11b69cd5c6399419d07 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/U @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volVectorField; + object U; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/0/gamma b/tutorials/lesCavitatingFoam/throttle/0/gamma new file mode 100644 index 0000000000000000000000000000000000000000..908f5965b470d257b8e604cb7755815c5bf48172 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/gamma @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object gamma; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/0/k b/tutorials/lesCavitatingFoam/throttle/0/k new file mode 100644 index 0000000000000000000000000000000000000000..9103bf7494bb5801c853e2fb52613c1a3ff8e3cf --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/k @@ -0,0 +1,55 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object k; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 2 -2 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 0.5; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/0/nuSgs b/tutorials/lesCavitatingFoam/throttle/0/nuSgs new file mode 100644 index 0000000000000000000000000000000000000000..a0dc83485dc2db0e9ac70ae2b087cfc2a3beead1 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/nuSgs @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4.2 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + object nuSgs; + location "0"; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 1e-11; + +boundaryField +{ + inlet + { + type zeroGradient; + } + outlet + { + type zeroGradient; + } + walls + { + type fixedValue; + value uniform 0; + } + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/0/p b/tutorials/lesCavitatingFoam/throttle/0/p new file mode 100644 index 0000000000000000000000000000000000000000..5409818144503d7f8749a737258c3393aa6432e4 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/p @@ -0,0 +1,61 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object p; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/0/rho b/tutorials/lesCavitatingFoam/throttle/0/rho new file mode 100644 index 0000000000000000000000000000000000000000..e9454d05b3e3de2b944a431d514d89e1815ac6db --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/0/rho @@ -0,0 +1,56 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object rho; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/constant/LESProperties b/tutorials/lesCavitatingFoam/throttle/constant/LESProperties new file mode 100644 index 0000000000000000000000000000000000000000..b7167dc837b07bc9708c31c478a20935e8e9020e --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/constant/LESProperties @@ -0,0 +1,189 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object LESProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +LESModel devOneEqEddy; + +delta smooth; + +laminarCoeffs +{ +} + +devOneEqEddyCoeffs +{ + ck 0.07; + ce 1.05; +} + +oneEqEddyCoeffs +{ + ck 0.07; + ce 1.05; +} + +dynOneEqEddyCoeffs +{ + ce 1.05; + filter simple; +} + +locDynOneEqEddyCoeffs +{ + ce 1.05; + filter simple; +} + +SmagorinskyCoeffs +{ + ce 1.05; + ck 0.07; +} + +Smagorinsky2Coeffs +{ + ce 1.05; + ck 0.07; + cD2 0.02; +} + +spectEddyViscCoeffs +{ + ce 1.05; + cB 8.22; + cK1 0.83; + cK2 1.03; + cK3 4.75; + cK4 2.55; +} + +dynSmagorinskyCoeffs +{ + ce 1.05; + filter simple; +} + +mixedSmagorinskyCoeffs +{ + ce 1.05; + ck 0.07; + filter simple; +} + +dynMixedSmagorinskyCoeffs +{ + ce 1.05; + filter simple; +} + +LRRDiffStressCoeffs +{ + ce 1.05; + ck 0.09; + c1 1.8; + c2 0.6; +} + +DeardorffDiffStressCoeffs +{ + ce 1.05; + ck 0.09; + cm 4.13; +} + +SpalartAllmarasCoeffs +{ + alphaNut 1.5; + Cb1 0.1355; + Cb2 0.622; + Cw2 0.3; + Cw3 2; + Cv1 7.1; + Cv2 5.0; + CDES 0.65; + ck 0.07; +} + +cubeRootVolCoeffs +{ + deltaCoeff 1; +} + +PrandtlCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } + Cdelta 0.158; +} + +vanDriestCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } + Aplus 26; + Cdelta 0.158; +} + +smoothCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; +} + +kappa 0.4187; + +wallFunctionCoeffs +{ + E 9; +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/blockMeshDict b/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..1a91064940ef705bacb9ff15029c332b3c9a5579 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/blockMeshDict @@ -0,0 +1,132 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.0 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object blockMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1.0e-3; + +vertices +( + ( 0.00 -2.50 -0.50) + ( 5.00 -2.50 -0.50) + ( 5.00 -0.15 -0.50) + ( 7.00 -0.15 -0.50) + ( 7.00 -2.50 -0.50) + (17.00 -2.50 -0.50) + (17.00 -0.15 -0.50) + (17.00 0.15 -0.50) + (17.00 2.50 -0.50) + ( 7.00 2.50 -0.50) + ( 7.00 0.15 -0.50) + ( 5.00 0.15 -0.50) + ( 5.00 2.50 -0.50) + ( 0.00 2.50 -0.50) + ( 0.00 0.15 -0.50) + ( 0.00 -0.15 -0.50) + + ( 0.00 -2.50 0.50) + ( 5.00 -2.50 0.50) + ( 5.00 -0.15 0.50) + ( 7.00 -0.15 0.50) + ( 7.00 -2.50 0.50) + (17.00 -2.50 0.50) + (17.00 -0.15 0.50) + (17.00 0.15 0.50) + (17.00 2.50 0.50) + ( 7.00 2.50 0.50) + ( 7.00 0.15 0.50) + ( 5.00 0.15 0.50) + ( 5.00 2.50 0.50) + ( 0.00 2.50 0.50) + ( 0.00 0.15 0.50) + ( 0.00 -0.15 0.50) +); + + +blocks +( + hex ( 0 1 2 15 16 17 18 31) ( 50 24 1) simpleGrading (1 1 1) + hex (15 2 11 14 31 18 27 30) ( 50 3 1) simpleGrading (1 1 1) + hex (14 11 12 13 30 27 28 29) ( 50 24 1) simpleGrading (1 1 1) + hex ( 2 3 10 11 18 19 26 27) ( 20 3 1) simpleGrading (1 1 1) + hex ( 4 5 6 3 20 21 22 19) (100 24 1) simpleGrading (1 1 1) + hex ( 3 6 7 10 19 22 23 26) (100 3 1) simpleGrading (1 1 1) + hex (10 7 8 9 26 23 24 25) (100 24 1) simpleGrading (1 1 1) +); + + +edges +( +); + +patches +( + patch inlet + ( + (15 0 16 31) + (14 15 31 30) + (13 14 30 29) + ) + + patch outlet + ( + ( 5 6 22 21) + ( 6 7 23 22) + ( 7 8 24 23) + ) + + wall walls + ( + ( 1 0 16 17) + ( 2 1 17 18) + ( 3 2 18 19) + ( 4 3 19 20) + ( 5 4 20 21) + ( 9 8 24 25) + (10 9 25 26) + (11 10 26 27) + (12 11 27 28) + (13 12 28 29) + ) + + empty frontBack + ( + ( 0 15 2 1) + (15 14 11 2) + (14 13 12 11) + ( 2 11 10 3) + ( 4 3 6 5) + ( 3 10 7 6) + (10 9 8 7) + + (16 17 18 31) + (31 18 27 30) + (30 27 28 29) + (18 19 26 27) + (20 21 22 19) + (19 22 23 26) + (26 23 24 25) + ) +); + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/boundary b/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/boundary new file mode 100644 index 0000000000000000000000000000000000000000..f7d75820c377876486fc7e532ffb122f9547d02d --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + inlet + { + type patch; + nFaces 51; + startFace 15151; + } + outlet + { + type patch; + nFaces 51; + startFace 15202; + } + walls + { + type wall; + nFaces 436; + startFace 15253; + } + frontBack + { + type empty; + nFaces 15420; + startFace 15689; + } +) + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/constant/thermodynamicProperties b/tutorials/lesCavitatingFoam/throttle/constant/thermodynamicProperties new file mode 100644 index 0000000000000000000000000000000000000000..73712572f265bfd5d6e4242b4c426499c2cda40f --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/constant/thermodynamicProperties @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object thermodynamicProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +barotropicCompressibilityModel linear; //Chung; + +psiv psiv [0 -2 2 0 0] 2.5e-06; + +rholSat rholSat [1 -3 0 0 0] 830; + +psil psil [0 -2 2 0 0] 5e-07; + +pSat pSat [1 -1 -2 0 0] 4500; + +rhoMin rhoMin [1 -3 0 0 0] 0.001; + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/constant/transportProperties b/tutorials/lesCavitatingFoam/throttle/constant/transportProperties new file mode 100644 index 0000000000000000000000000000000000000000..6d5853219c431fb77da9a4f51f87fd00052e7895 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/constant/transportProperties @@ -0,0 +1,78 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object transportProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +mul mul [1 -1 -1 0 0] 6.500e-03; +muv muv [1 -1 -1 0 0] 5.953e-06; + +twoPhase +{ + transportModel twoPhase; + phase1 phase1; + phase2 phase2; +} + +phase1 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 7.831e-06; + rho rho [1 -3 0 0 0 0 0] 830; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + +phase2 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 4.252e-05; + rho rho [1 -3 0 0 0 0 0] 0.14; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.1 b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.1 new file mode 100644 index 0000000000000000000000000000000000000000..17b78b6c3716316e7499eb44f169ad8073787f5c --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.1 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4e-03 -1e-03 -1) (12e-3 1e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.2 b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.2 new file mode 100644 index 0000000000000000000000000000000000000000..326bcb48f20decfe8ba45c2822ba514f28778fef --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.2 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.5e-03 -0.75e-03 -1) (9.5e-3 0.75e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.3 b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.3 new file mode 100644 index 0000000000000000000000000000000000000000..40d5dc4f53c49cb2e7fbfcb32917ddfb6452de25 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/cellSetDict.3 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.75e-03 -0.375e-03 -1) (9e-03 0.375e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/controlDict b/tutorials/lesCavitatingFoam/throttle/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..34bfbb5102c1aca322ce78912c2365306dce19cc --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/controlDict @@ -0,0 +1,94 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object controlDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2e-3; + +deltaT 1e-8; + +writeControl adjustableRunTime; + +writeInterval 1e-4; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 6; + +writeCompression compressed; + +timeFormat general; + +runTimeModifiable yes; + +adjustTimeStep on; + +maxCo 0.5; + +maxAcousticCo 50.0; + +functions +( +/* + fieldAverage1 + { + // Type of functionObject + type fieldAverage; + + // Where to load it from (if not already in solver) + functionObjectLibs ("libfieldAverage.so"); + + // Fields to be probed. runTime modifiable! + fields + ( + U + { + mean on; + prime2Mean off; + base time; + } + p + { + mean on; + prime2Mean off; + base time; + } + gamma + { + mean on; + prime2Mean off; + base time; + } + ); + } +*/ +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/fvSchemes b/tutorials/lesCavitatingFoam/throttle/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..8a043c36eddcfe982ad58d8af5c72cca2bc3fc86 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/fvSchemes @@ -0,0 +1,79 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +interpolationSchemes +{ + default linear; +} + +divSchemes +{ + default none; +// div(phiv,rho) Gauss upwind; +// div(phi,U) Gauss upwind; +// div(phiv,k) Gauss upwind; + + div(phiv,rho) Gauss limitedLinear 0.2; + div(phi,U) Gauss filteredLinear2V 0.2 0; + div(phiv,k) Gauss filteredLinear2 0.2 0; +} + +gradSchemes +{ + default Gauss linear; +} + +laplacianSchemes +{ + default none; + + laplacian(nuf,rhoU) Gauss linear corrected; + laplacian(muEff,U) Gauss linear corrected; + laplacian(rrhoUAf,p) Gauss linear corrected; + laplacian(rUAf,p) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + + laplacian(1,p) Gauss linear corrected; +} + +snGradSchemes +{ + default none; + snGrad(p) corrected; +} + +fluxRequired +{ + default none; + p; + rho; +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/fvSolution b/tutorials/lesCavitatingFoam/throttle/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..fdde2e5563bf6d9d48cb0a7900353eb2952ab906 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/fvSolution @@ -0,0 +1,85 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSolution; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + omega PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + k PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + rho PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + U PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + p GAMG + { + tolerance 1e-8; + relTol 0; + + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + }; +} + +PISO +{ + nCorrectors 2; + nNonOrthogonalCorrectors 0; + +// removeSwirl 2; +} + +SIMPLE +{ + +} + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle/system/refineMeshDict b/tutorials/lesCavitatingFoam/throttle/system/refineMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..df30f712ceb63e3102e9cbe9b581073bffa3595b --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle/system/refineMeshDict @@ -0,0 +1,47 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object refineMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +set c0; + +coordinateSystem global; + +globalCoeffs +{ + tan1 (1 0 0); + tan2 (0 1 0); +} + +directions +( + tan1 + tan2 +); + +useHexTopology yes; + +geometricCut no; + +writeMesh no; + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/U b/tutorials/lesCavitatingFoam/throttle3D/0/U new file mode 100644 index 0000000000000000000000000000000000000000..6bd81e4e0d143c94c2f9065131ac07fa5652079c --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/U @@ -0,0 +1,58 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volVectorField; + object U; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/gamma b/tutorials/lesCavitatingFoam/throttle3D/0/gamma new file mode 100644 index 0000000000000000000000000000000000000000..24bb2d500c10419e11597a9d93f4f59928f67fa2 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/gamma @@ -0,0 +1,58 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object gamma; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type calculated; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/k b/tutorials/lesCavitatingFoam/throttle3D/0/k new file mode 100644 index 0000000000000000000000000000000000000000..15737221bac4994754e06ce553a622611d5aa2de --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/k @@ -0,0 +1,55 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object k; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 2 -2 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 0.5; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/nuSgs b/tutorials/lesCavitatingFoam/throttle3D/0/nuSgs new file mode 100644 index 0000000000000000000000000000000000000000..3501d1bbb96cf3479f306cd7cdfcc4ec2e249d89 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/nuSgs @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4.2 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + object nuSgs; + location "0"; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 1e-11; + +boundaryField +{ + inlet + { + type zeroGradient; + } + outlet + { + type zeroGradient; + } + walls + { + type fixedValue; + value uniform 0; + } + frontBack + { + type fixedValue; + value uniform 0; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/p b/tutorials/lesCavitatingFoam/throttle3D/0/p new file mode 100644 index 0000000000000000000000000000000000000000..a4f465e0607f6e4988f4f96a0afe763389d4aff5 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/p @@ -0,0 +1,61 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object p; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/0/rho b/tutorials/lesCavitatingFoam/throttle3D/0/rho new file mode 100644 index 0000000000000000000000000000000000000000..de5b1fac7658fdf8544fda51be3139df873818c6 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/0/rho @@ -0,0 +1,56 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object rho; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/constant/LESProperties b/tutorials/lesCavitatingFoam/throttle3D/constant/LESProperties new file mode 100644 index 0000000000000000000000000000000000000000..b7167dc837b07bc9708c31c478a20935e8e9020e --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/constant/LESProperties @@ -0,0 +1,189 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object LESProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +LESModel devOneEqEddy; + +delta smooth; + +laminarCoeffs +{ +} + +devOneEqEddyCoeffs +{ + ck 0.07; + ce 1.05; +} + +oneEqEddyCoeffs +{ + ck 0.07; + ce 1.05; +} + +dynOneEqEddyCoeffs +{ + ce 1.05; + filter simple; +} + +locDynOneEqEddyCoeffs +{ + ce 1.05; + filter simple; +} + +SmagorinskyCoeffs +{ + ce 1.05; + ck 0.07; +} + +Smagorinsky2Coeffs +{ + ce 1.05; + ck 0.07; + cD2 0.02; +} + +spectEddyViscCoeffs +{ + ce 1.05; + cB 8.22; + cK1 0.83; + cK2 1.03; + cK3 4.75; + cK4 2.55; +} + +dynSmagorinskyCoeffs +{ + ce 1.05; + filter simple; +} + +mixedSmagorinskyCoeffs +{ + ce 1.05; + ck 0.07; + filter simple; +} + +dynMixedSmagorinskyCoeffs +{ + ce 1.05; + filter simple; +} + +LRRDiffStressCoeffs +{ + ce 1.05; + ck 0.09; + c1 1.8; + c2 0.6; +} + +DeardorffDiffStressCoeffs +{ + ce 1.05; + ck 0.09; + cm 4.13; +} + +SpalartAllmarasCoeffs +{ + alphaNut 1.5; + Cb1 0.1355; + Cb2 0.622; + Cw2 0.3; + Cw3 2; + Cv1 7.1; + Cv2 5.0; + CDES 0.65; + ck 0.07; +} + +cubeRootVolCoeffs +{ + deltaCoeff 1; +} + +PrandtlCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } + Cdelta 0.158; +} + +vanDriestCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } + Aplus 26; + Cdelta 0.158; +} + +smoothCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; +} + +kappa 0.4187; + +wallFunctionCoeffs +{ + E 9; +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/blockMeshDict b/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..a26886597fb0433c145ab379f28faa8f6a189f26 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/blockMeshDict @@ -0,0 +1,132 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.0 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object blockMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1.0e-3; + +vertices +( + ( 0.00 -2.50 -0.50) + ( 5.00 -2.50 -0.50) + ( 5.00 -0.15 -0.50) + ( 7.00 -0.15 -0.50) + ( 7.00 -2.50 -0.50) + (17.00 -2.50 -0.50) + (17.00 -0.15 -0.50) + (17.00 0.15 -0.50) + (17.00 2.50 -0.50) + ( 7.00 2.50 -0.50) + ( 7.00 0.15 -0.50) + ( 5.00 0.15 -0.50) + ( 5.00 2.50 -0.50) + ( 0.00 2.50 -0.50) + ( 0.00 0.15 -0.50) + ( 0.00 -0.15 -0.50) + + ( 0.00 -2.50 0.50) + ( 5.00 -2.50 0.50) + ( 5.00 -0.15 0.50) + ( 7.00 -0.15 0.50) + ( 7.00 -2.50 0.50) + (17.00 -2.50 0.50) + (17.00 -0.15 0.50) + (17.00 0.15 0.50) + (17.00 2.50 0.50) + ( 7.00 2.50 0.50) + ( 7.00 0.15 0.50) + ( 5.00 0.15 0.50) + ( 5.00 2.50 0.50) + ( 0.00 2.50 0.50) + ( 0.00 0.15 0.50) + ( 0.00 -0.15 0.50) +); + + +blocks +( + hex ( 0 1 2 15 16 17 18 31) ( 50 24 10) simpleGrading (1 1 1) + hex (15 2 11 14 31 18 27 30) ( 50 3 10) simpleGrading (1 1 1) + hex (14 11 12 13 30 27 28 29) ( 50 24 10) simpleGrading (1 1 1) + hex ( 2 3 10 11 18 19 26 27) ( 20 3 10) simpleGrading (1 1 1) + hex ( 4 5 6 3 20 21 22 19) (100 24 10) simpleGrading (1 1 1) + hex ( 3 6 7 10 19 22 23 26) (100 3 10) simpleGrading (1 1 1) + hex (10 7 8 9 26 23 24 25) (100 24 10) simpleGrading (1 1 1) +); + + +edges +( +); + +patches +( + patch inlet + ( + (15 0 16 31) + (14 15 31 30) + (13 14 30 29) + ) + + patch outlet + ( + ( 5 6 22 21) + ( 6 7 23 22) + ( 7 8 24 23) + ) + + wall walls + ( + ( 1 0 16 17) + ( 2 1 17 18) + ( 3 2 18 19) + ( 4 3 19 20) + ( 5 4 20 21) + ( 9 8 24 25) + (10 9 25 26) + (11 10 26 27) + (12 11 27 28) + (13 12 28 29) + ) + + wall frontBack + ( + ( 0 15 2 1) + (15 14 11 2) + (14 13 12 11) + ( 2 11 10 3) + ( 4 3 6 5) + ( 3 10 7 6) + (10 9 8 7) + + (16 17 18 31) + (31 18 27 30) + (30 27 28 29) + (18 19 26 27) + (20 21 22 19) + (19 22 23 26) + (26 23 24 25) + ) +); + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/boundary b/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/boundary new file mode 100644 index 0000000000000000000000000000000000000000..30c545703a24f488a1d52a1d8ceca4fb3dfdc69e --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + inlet + { + type patch; + nFaces 510; + startFace 220900; + } + outlet + { + type patch; + nFaces 510; + startFace 221410; + } + walls + { + type wall; + nFaces 4360; + startFace 221920; + } + frontBack + { + type wall; + nFaces 15420; + startFace 226280; + } +) + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/constant/thermodynamicProperties b/tutorials/lesCavitatingFoam/throttle3D/constant/thermodynamicProperties new file mode 100644 index 0000000000000000000000000000000000000000..73712572f265bfd5d6e4242b4c426499c2cda40f --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/constant/thermodynamicProperties @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object thermodynamicProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +barotropicCompressibilityModel linear; //Chung; + +psiv psiv [0 -2 2 0 0] 2.5e-06; + +rholSat rholSat [1 -3 0 0 0] 830; + +psil psil [0 -2 2 0 0] 5e-07; + +pSat pSat [1 -1 -2 0 0] 4500; + +rhoMin rhoMin [1 -3 0 0 0] 0.001; + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/constant/transportProperties b/tutorials/lesCavitatingFoam/throttle3D/constant/transportProperties new file mode 100644 index 0000000000000000000000000000000000000000..6d5853219c431fb77da9a4f51f87fd00052e7895 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/constant/transportProperties @@ -0,0 +1,78 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object transportProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +mul mul [1 -1 -1 0 0] 6.500e-03; +muv muv [1 -1 -1 0 0] 5.953e-06; + +twoPhase +{ + transportModel twoPhase; + phase1 phase1; + phase2 phase2; +} + +phase1 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 7.831e-06; + rho rho [1 -3 0 0 0 0 0] 830; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + +phase2 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 4.252e-05; + rho rho [1 -3 0 0 0 0 0] 0.14; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.1 b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.1 new file mode 100644 index 0000000000000000000000000000000000000000..17b78b6c3716316e7499eb44f169ad8073787f5c --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.1 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4e-03 -1e-03 -1) (12e-3 1e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.2 b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.2 new file mode 100644 index 0000000000000000000000000000000000000000..326bcb48f20decfe8ba45c2822ba514f28778fef --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.2 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.5e-03 -0.75e-03 -1) (9.5e-3 0.75e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.3 b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.3 new file mode 100644 index 0000000000000000000000000000000000000000..40d5dc4f53c49cb2e7fbfcb32917ddfb6452de25 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/cellSetDict.3 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.75e-03 -0.375e-03 -1) (9e-03 0.375e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/controlDict b/tutorials/lesCavitatingFoam/throttle3D/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..ddc25e78b20e050b493672253216fe02de0393f8 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/controlDict @@ -0,0 +1,94 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object controlDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 1e-4; + +deltaT 1e-8; + +writeControl adjustableRunTime; + +writeInterval 5e-6; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 6; + +writeCompression compressed; + +timeFormat general; + +runTimeModifiable yes; + +adjustTimeStep on; + +maxCo 0.5; + +maxAcousticCo 50.0; + +functions +( +/* + fieldAverage1 + { + // Type of functionObject + type fieldAverage; + + // Where to load it from (if not already in solver) + functionObjectLibs ("libfieldAverage.so"); + + // Fields to be probed. runTime modifiable! + fields + ( + U + { + mean on; + prime2Mean off; + base time; + } + p + { + mean on; + prime2Mean off; + base time; + } + gamma + { + mean on; + prime2Mean off; + base time; + } + ); + } +*/ +); + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/decomposeParDict b/tutorials/lesCavitatingFoam/throttle3D/system/decomposeParDict new file mode 100644 index 0000000000000000000000000000000000000000..01d2010854fecf74a87f4c3968fc57b97bd09fcf --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/decomposeParDict @@ -0,0 +1,66 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n (2 2 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (1 1 1); + delta 0.001; + order xyz; +} + +metisCoeffs +{ + processorWeights + ( + 1 + 1 + 1 + 1 + ); +} + +manualCoeffs +{ + dataFile ""; +} + +distributed no; + +roots +( +); + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/fvSchemes b/tutorials/lesCavitatingFoam/throttle3D/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..8a043c36eddcfe982ad58d8af5c72cca2bc3fc86 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/fvSchemes @@ -0,0 +1,79 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +interpolationSchemes +{ + default linear; +} + +divSchemes +{ + default none; +// div(phiv,rho) Gauss upwind; +// div(phi,U) Gauss upwind; +// div(phiv,k) Gauss upwind; + + div(phiv,rho) Gauss limitedLinear 0.2; + div(phi,U) Gauss filteredLinear2V 0.2 0; + div(phiv,k) Gauss filteredLinear2 0.2 0; +} + +gradSchemes +{ + default Gauss linear; +} + +laplacianSchemes +{ + default none; + + laplacian(nuf,rhoU) Gauss linear corrected; + laplacian(muEff,U) Gauss linear corrected; + laplacian(rrhoUAf,p) Gauss linear corrected; + laplacian(rUAf,p) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + + laplacian(1,p) Gauss linear corrected; +} + +snGradSchemes +{ + default none; + snGrad(p) corrected; +} + +fluxRequired +{ + default none; + p; + rho; +} + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/fvSolution b/tutorials/lesCavitatingFoam/throttle3D/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..fdde2e5563bf6d9d48cb0a7900353eb2952ab906 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/fvSolution @@ -0,0 +1,85 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSolution; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + omega PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + k PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + rho PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + U PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + p GAMG + { + tolerance 1e-8; + relTol 0; + + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + }; +} + +PISO +{ + nCorrectors 2; + nNonOrthogonalCorrectors 0; + +// removeSwirl 2; +} + +SIMPLE +{ + +} + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/machines b/tutorials/lesCavitatingFoam/throttle3D/system/machines new file mode 100644 index 0000000000000000000000000000000000000000..b5426a67199866fdf9b6281e500db190f343d5c7 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/machines @@ -0,0 +1 @@ +shelob diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/mapFieldsDict b/tutorials/lesCavitatingFoam/throttle3D/system/mapFieldsDict new file mode 100644 index 0000000000000000000000000000000000000000..517a710e84035235799bdc09fb713c02edf463db --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/mapFieldsDict @@ -0,0 +1,34 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object mapFieldsDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +patchMap +( +); + +cuttingPatches +( +); + + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/refineMeshDict b/tutorials/lesCavitatingFoam/throttle3D/system/refineMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..683c119f05fe9c171cd977b7e6228c200d1200e4 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/refineMeshDict @@ -0,0 +1,49 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object refineMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +set c0; + +coordinateSystem global; + +globalCoeffs +{ + tan1 (1 0 0); + tan2 (0 1 0); + tan3 (0 0 1); +} + +directions +( + tan1 + tan2 + tan3 +); + +useHexTopology yes; + +geometricCut no; + +writeMesh no; + +// ************************************************************************* // diff --git a/tutorials/lesCavitatingFoam/throttle3D/system/sampleDict b/tutorials/lesCavitatingFoam/throttle3D/system/sampleDict new file mode 100644 index 0000000000000000000000000000000000000000..c7c9d3a1722a012f11c381795476f87dc6eccbc8 --- /dev/null +++ b/tutorials/lesCavitatingFoam/throttle3D/system/sampleDict @@ -0,0 +1,164 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.0 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object sampleDict; +} + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// interpolationScheme : choice of +// cell : use cell-centre value only; constant over cells +// cellPoint : use cell-centre and vertex values +// cellPointFace : use cell-centre, vertex and face values. +// 1] vertex values determined from neighbouring cell-centre values +// 2] face values determined using the current face interpolation scheme +// for the field (linear, gamma, etc.) +interpolationScheme cellPointFace; + + +// setFormat : choice of +// xmgr +// jplot +// gnuplot +// raw +setFormat raw; + + +// Surface output format. Choice of +// null : suppress output +// foamFile : separate points, faces and values file +// dx : DX scalar or vector format +// vtk : VTK ascii format +// raw : x y z value format for use with e.g. gnuplot 'splot'. +// stl : ascii stl. Does not contain values! +surfaceFormat vtk; + + +// sampling definition: +// +// Dictionary with fields +// type : type of sampling method +// name : name of samples. Used e.g. as filename +// axis : how to write point coordinate +// ... : depending on method +// +// +// sample: choice of +// uniform evenly distributed points on line +// face one point per face intersection +// midPoint one point per cell, inbetween two face intersections +// midPointAndFace combination of face and midPoint +// +// curve specified points, not nessecary on line, uses +// tracking +// cloud specified points, uses findCell +// +// +// axis: how to write point coordinate. Choice of +// - x/y/z: x/y/z coordinate only +// - xyz: three columns +// (probably does not make sense for anything but raw) +// - distance: distance from start of sampling line (if uses line) or +// distance from first specified sampling point +// +// type specific: +// uniform, face, midPoint, midPointAndFace : start and end coordinate +// uniform: extra number of sampling points +// curve, cloud: list of coordinates +sets +( + IN1 + { + type uniform; + axis y; + + start (11.8224e-3 -1.0e-3 1.0e-8); + end (11.8224e-3 1.0e-3 1.0e-8); + nPoints 100; + } + IN + { + type uniform; + axis y; + + start (12.0864e-3 -1.0e-3 1.0e-8); + end (12.0864e-3 1.0e-3 1.0e-8); + nPoints 50; + } + M1 + { + type uniform; + axis y; + + start (12.3424e-3 -0.147539e-3 1.0e-8); + end (12.3424e-3 0.147539e-3 1.0e-8); + nPoints 50; + } + M2 + { + type uniform; + axis y; + + start (12.6032e-3 -0.147539e-3 1.0e-8); + end (12.6032e-3 0.147539e-3 1.0e-8); + nPoints 50; + } + OUT + { + type uniform; + axis y; + + start (12.8928e-3 -0.147539e-3 1.0e-8); + end (12.8928e-3 0.147539e-3 1.0e-8); + nPoints 50; + } + + IN1_GR1 + { + type uniform; + axis y; + + start (11.778e-3 -1.0e-3 1.0e-8); + end (11.778e-3 1.0e-3 1.0e-8); + nPoints 100; + } + OUT_GR1 + { + type uniform; + axis y; + + start (13.14e-3 -2.0e-3 1.0e-8); + end (13.14e-3 2.0e-3 1.0e-8); + nPoints 200; + } +); + +surfaces +(); + +// Fields to sample. +fields +( +// magUMean + UMeanx +); + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/U b/tutorials/rasCavitatingFoam/0/U new file mode 100644 index 0000000000000000000000000000000000000000..624d95897626701c3045761f3db68308b92a4692 --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/U @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volVectorField; + object U; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/gamma b/tutorials/rasCavitatingFoam/0/gamma new file mode 100644 index 0000000000000000000000000000000000000000..908f5965b470d257b8e604cb7755815c5bf48172 --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/gamma @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object gamma; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/k b/tutorials/rasCavitatingFoam/0/k new file mode 100644 index 0000000000000000000000000000000000000000..9e2c67698e32d464d71f7b4a0a3353f81c0da5c8 --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/k @@ -0,0 +1,56 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object k; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 2 -2 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.05; + value uniform 0.05; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/omega b/tutorials/rasCavitatingFoam/0/omega new file mode 100644 index 0000000000000000000000000000000000000000..c7b63f6f3d49dacfa4b1a2c28acbcac08b328f6b --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/omega @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object omega; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [0 0 -1 0 0]; + +internalField uniform 77200; + +boundaryField +{ + inlet + { + type turbulentMixingLengthFrequencyInlet; + mixingLength 0.5e-03; + k k; + value uniform 77200; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/p b/tutorials/rasCavitatingFoam/0/p new file mode 100644 index 0000000000000000000000000000000000000000..5409818144503d7f8749a737258c3393aa6432e4 --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/p @@ -0,0 +1,61 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object p; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/0/rho b/tutorials/rasCavitatingFoam/0/rho new file mode 100644 index 0000000000000000000000000000000000000000..e9454d05b3e3de2b944a431d514d89e1815ac6db --- /dev/null +++ b/tutorials/rasCavitatingFoam/0/rho @@ -0,0 +1,56 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class volScalarField; + object rho; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/Allclean b/tutorials/rasCavitatingFoam/Allclean new file mode 100755 index 0000000000000000000000000000000000000000..224fbd6f0e714cd4e9f9a21ec1971bf3210fcdbf --- /dev/null +++ b/tutorials/rasCavitatingFoam/Allclean @@ -0,0 +1,9 @@ +#!/bin/sh + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +rm -rf constant/polyMesh/sets > /dev/null 2>&1 +rm -rf 0/polyMesh > /dev/null 2>&1 +rm system/cellSetDict > /dev/null 2>&1 +cleanCase diff --git a/tutorials/rasCavitatingFoam/Allrun b/tutorials/rasCavitatingFoam/Allrun new file mode 100755 index 0000000000000000000000000000000000000000..54efa294ddcfa12b8c35b8e6d64755f826db6166 --- /dev/null +++ b/tutorials/rasCavitatingFoam/Allrun @@ -0,0 +1,29 @@ +#!/bin/sh + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application="rasCavitatingFoam" + +refineMeshByCellSet() +{ + echo "creating cell set for primary zone - $1" + cp system/cellSetDict.$1 system/cellSetDict + cellSet >& log.cellSet.$1 + + echo "refining primary zone - $1" + refineMesh -dict >& log.refineMesh.$1 + rm -rf 0/polyMesh + mv 1e-08/polyMesh 0/ + rm -rf 1e-08 +} + +runApplication blockMesh + +refineMeshByCellSet 1 + +refineMeshByCellSet 2 + +refineMeshByCellSet 3 + +runApplication $application diff --git a/tutorials/rasCavitatingFoam/constant/RASProperties b/tutorials/rasCavitatingFoam/constant/RASProperties new file mode 100644 index 0000000000000000000000000000000000000000..6b6a49d627ea5bdab0c420bdda0c47260571e3e1 --- /dev/null +++ b/tutorials/rasCavitatingFoam/constant/RASProperties @@ -0,0 +1,207 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object RASProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +RASModel kOmegaSST; + +turbulence on; + +laminarCoeffs +{ +} + +kOmegaSSTCoeffs +{ + alphaK1 0.85034; + alphaK2 1.0; + alphaOmega1 0.5; + alphaOmega2 0.85616; + gamma1 0.5532; + gamma2 0.4403; + beta1 0.0750; + beta2 0.0828; + betaStar 0.09; + a1 0.31; + c1 10; + + Cmu 0.09; +} + +kEpsilonCoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphaEps 0.76923; +} + +RNGkEpsilonCoeffs +{ + Cmu 0.0845; + C1 1.42; + C2 1.68; + alphak 1.39; + alphaEps 1.39; + eta0 4.38; + beta 0.012; +} + +realizableKECoeffs +{ + Cmu 0.09; + A0 4.0; + C2 1.9; + alphak 1; + alphaEps 0.833333; +} + +NonlinearKEShihCoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphak 1; + alphaEps 0.76932; + A1 1.25; + A2 1000; + Ctau1 -4; + Ctau2 13; + Ctau3 -2; + alphaKsi 0.9; +} + +LienCubicKECoeffs +{ + C1 1.44; + C2 1.92; + alphak 1; + alphaEps 0.76923; + A1 1.25; + A2 1000; + Ctau1 -4; + Ctau2 13; + Ctau3 -2; + alphaKsi 0.9; +} + +QZetaCoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphaZeta 0.76923; + anisotropic no; +} + +LaunderSharmaKECoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphaEps 0.76923; +} + +LamBremhorstKECoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphaEps 0.76923; +} + +LienCubicKELowReCoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphak 1; + alphaEps 0.76923; + A1 1.25; + A2 1000; + Ctau1 -4; + Ctau2 13; + Ctau3 -2; + alphaKsi 0.9; + Am 0.016; + Aepsilon 0.263; + Amu 0.00222; +} + +LienLeschzinerLowReCoeffs +{ + Cmu 0.09; + C1 1.44; + C2 1.92; + alphak 1; + alphaEps 0.76923; + Am 0.016; + Aepsilon 0.263; + Amu 0.00222; +} + +LRRCoeffs +{ + Cmu 0.09; + Clrr1 1.8; + Clrr2 0.6; + C1 1.44; + C2 1.92; + Cs 0.25; + Ceps 0.15; + alphaEps 0.76923; +} + +LaunderGibsonRSTMCoeffs +{ + Cmu 0.09; + Clg1 1.8; + Clg2 0.6; + C1 1.44; + C2 1.92; + C1Ref 0.5; + C2Ref 0.3; + Cs 0.25; + Ceps 0.15; + alphaEps 0.76923; + alphaR 1.22; +} + +SpalartAllmarasCoeffs +{ + alphaNut 1.5; + Cb1 0.1355; + Cb2 0.622; + Cw2 0.3; + Cw3 2; + Cv1 7.1; + Cv2 5.0; +} + +wallFunctionCoeffs +{ + kappa 0.4187; + E 9; +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/constant/polyMesh/blockMeshDict b/tutorials/rasCavitatingFoam/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..1a91064940ef705bacb9ff15029c332b3c9a5579 --- /dev/null +++ b/tutorials/rasCavitatingFoam/constant/polyMesh/blockMeshDict @@ -0,0 +1,132 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.0 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object blockMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1.0e-3; + +vertices +( + ( 0.00 -2.50 -0.50) + ( 5.00 -2.50 -0.50) + ( 5.00 -0.15 -0.50) + ( 7.00 -0.15 -0.50) + ( 7.00 -2.50 -0.50) + (17.00 -2.50 -0.50) + (17.00 -0.15 -0.50) + (17.00 0.15 -0.50) + (17.00 2.50 -0.50) + ( 7.00 2.50 -0.50) + ( 7.00 0.15 -0.50) + ( 5.00 0.15 -0.50) + ( 5.00 2.50 -0.50) + ( 0.00 2.50 -0.50) + ( 0.00 0.15 -0.50) + ( 0.00 -0.15 -0.50) + + ( 0.00 -2.50 0.50) + ( 5.00 -2.50 0.50) + ( 5.00 -0.15 0.50) + ( 7.00 -0.15 0.50) + ( 7.00 -2.50 0.50) + (17.00 -2.50 0.50) + (17.00 -0.15 0.50) + (17.00 0.15 0.50) + (17.00 2.50 0.50) + ( 7.00 2.50 0.50) + ( 7.00 0.15 0.50) + ( 5.00 0.15 0.50) + ( 5.00 2.50 0.50) + ( 0.00 2.50 0.50) + ( 0.00 0.15 0.50) + ( 0.00 -0.15 0.50) +); + + +blocks +( + hex ( 0 1 2 15 16 17 18 31) ( 50 24 1) simpleGrading (1 1 1) + hex (15 2 11 14 31 18 27 30) ( 50 3 1) simpleGrading (1 1 1) + hex (14 11 12 13 30 27 28 29) ( 50 24 1) simpleGrading (1 1 1) + hex ( 2 3 10 11 18 19 26 27) ( 20 3 1) simpleGrading (1 1 1) + hex ( 4 5 6 3 20 21 22 19) (100 24 1) simpleGrading (1 1 1) + hex ( 3 6 7 10 19 22 23 26) (100 3 1) simpleGrading (1 1 1) + hex (10 7 8 9 26 23 24 25) (100 24 1) simpleGrading (1 1 1) +); + + +edges +( +); + +patches +( + patch inlet + ( + (15 0 16 31) + (14 15 31 30) + (13 14 30 29) + ) + + patch outlet + ( + ( 5 6 22 21) + ( 6 7 23 22) + ( 7 8 24 23) + ) + + wall walls + ( + ( 1 0 16 17) + ( 2 1 17 18) + ( 3 2 18 19) + ( 4 3 19 20) + ( 5 4 20 21) + ( 9 8 24 25) + (10 9 25 26) + (11 10 26 27) + (12 11 27 28) + (13 12 28 29) + ) + + empty frontBack + ( + ( 0 15 2 1) + (15 14 11 2) + (14 13 12 11) + ( 2 11 10 3) + ( 4 3 6 5) + ( 3 10 7 6) + (10 9 8 7) + + (16 17 18 31) + (31 18 27 30) + (30 27 28 29) + (18 19 26 27) + (20 21 22 19) + (19 22 23 26) + (26 23 24 25) + ) +); + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/constant/polyMesh/boundary b/tutorials/rasCavitatingFoam/constant/polyMesh/boundary new file mode 100644 index 0000000000000000000000000000000000000000..716ff9df05e0d84e526e8feefb9a721fd0f04798 --- /dev/null +++ b/tutorials/rasCavitatingFoam/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + inlet + { + type patch; + nFaces 51; + startFace 15151; + } + outlet + { + type patch; + nFaces 51; + startFace 15202; + } + walls + { + type wall; + nFaces 436; + startFace 15253; + } + frontBack + { + type empty; + nFaces 15420; + startFace 15689; + } +) + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/constant/thermodynamicProperties b/tutorials/rasCavitatingFoam/constant/thermodynamicProperties new file mode 100644 index 0000000000000000000000000000000000000000..73712572f265bfd5d6e4242b4c426499c2cda40f --- /dev/null +++ b/tutorials/rasCavitatingFoam/constant/thermodynamicProperties @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object thermodynamicProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +barotropicCompressibilityModel linear; //Chung; + +psiv psiv [0 -2 2 0 0] 2.5e-06; + +rholSat rholSat [1 -3 0 0 0] 830; + +psil psil [0 -2 2 0 0] 5e-07; + +pSat pSat [1 -1 -2 0 0] 4500; + +rhoMin rhoMin [1 -3 0 0 0] 0.001; + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/constant/transportProperties b/tutorials/rasCavitatingFoam/constant/transportProperties new file mode 100644 index 0000000000000000000000000000000000000000..6d5853219c431fb77da9a4f51f87fd00052e7895 --- /dev/null +++ b/tutorials/rasCavitatingFoam/constant/transportProperties @@ -0,0 +1,78 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object transportProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +mul mul [1 -1 -1 0 0] 6.500e-03; +muv muv [1 -1 -1 0 0] 5.953e-06; + +twoPhase +{ + transportModel twoPhase; + phase1 phase1; + phase2 phase2; +} + +phase1 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 7.831e-06; + rho rho [1 -3 0 0 0 0 0] 830; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + +phase2 +{ + transportModel Newtonian; + nu nu [0 2 -1 0 0 0 0] 4.252e-05; + rho rho [1 -3 0 0 0 0 0] 0.14; + CrossPowerLawCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + m m [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } + BirdCarreauCoeffs + { + nu0 nu0 [0 2 -1 0 0 0 0] -999; + nuInf nuInf [0 2 -1 0 0 0 0] -999; + k k [0 0 1 0 0 0 0] -999; + n n [0 0 0 0 0 0 0] -999; + } +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/cellSetDict.1 b/tutorials/rasCavitatingFoam/system/cellSetDict.1 new file mode 100644 index 0000000000000000000000000000000000000000..17b78b6c3716316e7499eb44f169ad8073787f5c --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/cellSetDict.1 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4e-03 -1e-03 -1) (12e-3 1e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/cellSetDict.2 b/tutorials/rasCavitatingFoam/system/cellSetDict.2 new file mode 100644 index 0000000000000000000000000000000000000000..326bcb48f20decfe8ba45c2822ba514f28778fef --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/cellSetDict.2 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.5e-03 -0.75e-03 -1) (9.5e-3 0.75e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/cellSetDict.3 b/tutorials/rasCavitatingFoam/system/cellSetDict.3 new file mode 100644 index 0000000000000000000000000000000000000000..40d5dc4f53c49cb2e7fbfcb32917ddfb6452de25 --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/cellSetDict.3 @@ -0,0 +1,37 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (4.75e-03 -0.375e-03 -1) (9e-03 0.375e-03 1); + } +); + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/controlDict b/tutorials/rasCavitatingFoam/system/controlDict new file mode 100644 index 0000000000000000000000000000000000000000..dab5c8e74d54097cb0f31bd5bd098e10ea4030aa --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/controlDict @@ -0,0 +1,57 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object controlDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 2e-3; + +deltaT 1e-8; + +writeControl adjustableRunTime; + +writeInterval 1e-4; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression uncompressed; + +timeFormat general; + +runTimeModifiable yes; + +adjustTimeStep on; + +maxCo 0.5; + +maxAcousticCo 50.0; + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/fvSchemes b/tutorials/rasCavitatingFoam/system/fvSchemes new file mode 100644 index 0000000000000000000000000000000000000000..5765793f75015c7475ce03e7b273315ca6f3e046 --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/fvSchemes @@ -0,0 +1,77 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +interpolationSchemes +{ + default linear; +} + +divSchemes +{ + default none; + div(phiv,rho) Gauss limitedLinear 0.2; + div(phi,U) Gauss limitedLinearV 0.2; + div(phiv,omega) Gauss limitedLinear 0.2; + div(phiv,k) Gauss limitedLinear 0.2; +} + +gradSchemes +{ + default Gauss linear; +} + +laplacianSchemes +{ + default none; + + laplacian(nuf,rhoU) Gauss linear corrected; + laplacian(muEff,U) Gauss linear corrected; + laplacian(rrhoUAf,p) Gauss linear corrected; + laplacian(rUAf,p) Gauss linear corrected; + laplacian(DomegaEff,omega) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + + laplacian(1,p) Gauss linear corrected; +} + +snGradSchemes +{ + default none; + snGrad(p) corrected; +} + +fluxRequired +{ + default none; + p; + rho; +} + + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/fvSolution b/tutorials/rasCavitatingFoam/system/fvSolution new file mode 100644 index 0000000000000000000000000000000000000000..7a74bca95f71bbf197a4d462e5d9eeab75151b19 --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/fvSolution @@ -0,0 +1,83 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object fvSolution; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + omega PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + k PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + rho PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + U PBiCG + { + preconditioner DILU; + tolerance 1e-08; + relTol 0; + }; + + p GAMG + { + preconditioner 1e-5; + relTol 0; + + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + }; +} + +PISO +{ + nCorrectors 2; + nNonOrthogonalCorrectors 1; + +// removeSwirl 2; +} + +SIMPLE +{} + +// ************************************************************************* // diff --git a/tutorials/rasCavitatingFoam/system/refineMeshDict b/tutorials/rasCavitatingFoam/system/refineMeshDict new file mode 100644 index 0000000000000000000000000000000000000000..df30f712ceb63e3102e9cbe9b581073bffa3595b --- /dev/null +++ b/tutorials/rasCavitatingFoam/system/refineMeshDict @@ -0,0 +1,47 @@ +/*---------------------------------------------------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.4 | +| \\ / A nd | Web: http://www.openfoam.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +FoamFile +{ + version 2.0; + format ascii; + + root ""; + case ""; + instance ""; + local ""; + + class dictionary; + object refineMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +set c0; + +coordinateSystem global; + +globalCoeffs +{ + tan1 (1 0 0); + tan2 (0 1 0); +} + +directions +( + tan1 + tan2 +); + +useHexTopology yes; + +geometricCut no; + +writeMesh no; + +// ************************************************************************* //