From fb1783ab293a59db392fef9ba32199b8714409ed Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 14 Nov 2011 15:10:11 +0000 Subject: [PATCH] ENH: pipeCyclic: pipe using AMI --- .../simpleFoam/pipeCyclic/0.org/U | 58 +++++++++ .../simpleFoam/pipeCyclic/0.org/epsilon | 50 ++++++++ .../simpleFoam/pipeCyclic/0.org/k | 50 ++++++++ .../simpleFoam/pipeCyclic/0.org/nuTilda | 44 +++++++ .../simpleFoam/pipeCyclic/0.org/nut | 49 ++++++++ .../simpleFoam/pipeCyclic/0.org/p | 45 +++++++ .../simpleFoam/pipeCyclic/Allclean | 11 ++ .../simpleFoam/pipeCyclic/Allrun | 19 +++ .../pipeCyclic/constant/RASProperties | 25 ++++ .../constant/polyMesh/blockMeshDict | 118 ++++++++++++++++++ .../pipeCyclic/constant/polyMesh/boundary | 62 +++++++++ .../pipeCyclic/constant/transportProperties | 23 ++++ .../pipeCyclic/constant/turbulenceProperties | 20 +++ .../simpleFoam/pipeCyclic/system/controlDict | 49 ++++++++ .../pipeCyclic/system/decomposeParDict | 22 ++++ .../simpleFoam/pipeCyclic/system/fvSchemes | 71 +++++++++++ .../simpleFoam/pipeCyclic/system/fvSolution | 104 +++++++++++++++ .../simpleFoam/pipeCyclic/system/topoSetDict | 76 +++++++++++ 18 files changed, 896 insertions(+) create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/U create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/epsilon create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/k create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nuTilda create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nut create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/0.org/p create mode 100755 tutorials/incompressible/simpleFoam/pipeCyclic/Allclean create mode 100755 tutorials/incompressible/simpleFoam/pipeCyclic/Allrun create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/constant/RASProperties create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/boundary create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/constant/transportProperties create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/constant/turbulenceProperties create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/system/controlDict create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/system/decomposeParDict create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSchemes create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSolution create mode 100644 tutorials/incompressible/simpleFoam/pipeCyclic/system/topoSetDict diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/U b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/U new file mode 100644 index 0000000000..8ad1348851 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/U @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ 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 +{ + inlet + { + type codedFixedValue; + redirectType swirl; + + code + #{ + const vector axis(1, 0, 0); + + vectorField v = 2.0*this->patch().Cf() ^ axis; + v.replace(vector::X, 1.0); + operator==(v); + #}; + value $internalField; + } + + outlet + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + "side.*" + { + type cyclicAMI; + } +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/epsilon b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/epsilon new file mode 100644 index 0000000000..9f571637a7 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/epsilon @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -3 0 0 0 0 ]; + +internalField uniform 1; + +boundaryField +{ + inlet + { + type turbulentMixingLengthDissipationRateInlet; + mixingLength 0.5; // 0.5m - half channel height + value $internalField; + } + + outlet + { + type inletOutlet; + inletValue $internalField; + } + + walls + { + type epsilonWallFunction; + value uniform 0; + } + + "side.*" + { + type cyclicAMI; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/k b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/k new file mode 100644 index 0000000000..7266279462 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/k @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform 1; + +boundaryField +{ + inlet + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.05; // 5% turbulent intensity + value $internalField; + } + + outlet + { + type inletOutlet; + inletValue $internalField; + } + + walls + { + type kqRWallFunction; + value uniform 0; + } + + "side.*" + { + type cyclicAMI; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nuTilda b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nuTilda new file mode 100644 index 0000000000..f25d205095 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nuTilda @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object nuTilda; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type zeroGradient; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + "side.*" + { + type cyclicAMI; + } +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nut b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nut new file mode 100644 index 0000000000..62cb2f0e62 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/nut @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -1 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value $internalField; + } + + outlet + { + type calculated; + value $internalField; + } + + walls + { + type nutkWallFunction; + value $internalField; + } + + "side.*" + { + type cyclicAMI; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/p b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/p new file mode 100644 index 0000000000..ede4c306b8 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/0.org/p @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type zeroGradient; + } + + outlet + { + type fixedValue; + value uniform 0; + } + + walls + { + type zeroGradient; + } + + "side.*" + { + type cyclicAMI; + } +} + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean b/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean new file mode 100755 index 0000000000..d16400a94f --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/Allclean @@ -0,0 +1,11 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +rm -rf 0 > /dev/null 2>&1 + +cleanCase + +# ----------------------------------------------------------------- end-of-file diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun new file mode 100755 index 0000000000..6ab4c317b6 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun @@ -0,0 +1,19 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Get application directory +application=`getApplication` + +runApplication blockMesh +runApplication topoSet +runApplication refineHexMesh c0 -overwrite +cp -r 0.org 0 + +#runApplication $application +runApplication decomposePar -cellDist +runParallel $application 5 + +# ----------------------------------------------------------------- end-of-file diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/constant/RASProperties b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/RASProperties new file mode 100644 index 0000000000..63ed5a5ef8 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/RASProperties @@ -0,0 +1,25 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object RASProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +RASModel realizableKE; + +turbulence on; + +printCoeffs on; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict new file mode 100644 index 0000000000..e8fa4bbb33 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/blockMeshDict @@ -0,0 +1,118 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +//- half angle of wedge in degrees +halfAngle 45.0; + +//- Radius of pipe [m] +radius 0.5; + + +radHalfAngle #calc "degToRad($halfAngle)"; +y #calc "$radius*sin($radHalfAngle)"; +minY #calc "-1.0*$y"; +z #calc "$radius*cos($radHalfAngle)"; +minZ #calc "-1.0*$z"; + +vertices +( + (0.0 0.0 0) //0 + (10 0.0 0) + (10 0.0 0) //2 + (0.0 0.0 0) + + (0.0 $minY $z) //4 + (10 $minY $z) + (10 $y $z) //6 + (0.0 $y $z) + +); + +blocks +( + // inlet block + hex (0 1 2 3 4 5 6 7) (50 5 5) simpleGrading (1 1 1) +); + +edges +( + arc 4 7 (0 0 $radius) + arc 5 6 (10 0 $radius) +); + +boundary +( + inlet + { + type patch; + faces + ( + (0 4 7 3) + ); + } + + outlet + { + type patch; + faces + ( + (1 2 6 5) + ); + } + + side1 + { + type cyclicAMI; + neighbourPatch side2; + faces + ( + (0 1 5 4) + ); + + transform rotational; + rotationAxis (1 0 0); + rotationCentre (0 0 0); + } + + side2 + { + type cyclicAMI; + neighbourPatch side1; + faces + ( + (7 6 2 3) + ); + + transform rotational; + rotationAxis (1 0 0); + rotationCentre (0 0 0); + } + + walls + { + type wall; + faces + ( + (4 5 6 7) + (3 2 1 0) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/boundary b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/boundary new file mode 100644 index 0000000000..9b8e73ecfd --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/polyMesh/boundary @@ -0,0 +1,62 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +5 +( + inlet + { + type patch; + nFaces 28; + startFace 4422; + } + outlet + { + type patch; + nFaces 28; + startFace 4450; + } + side1 + { + type cyclicAMI; + nFaces 400; + startFace 4478; + matchTolerance 0.0001; + neighbourPatch side2; + transform rotational; + rotationAxis (1 0 0); + rotationCentre (0 0 0); + } + side2 + { + type cyclicAMI; + nFaces 250; + startFace 4878; + matchTolerance 0.0001; + neighbourPatch side1; + transform rotational; + rotationAxis (1 0 0); + rotationCentre (0 0 0); + } + walls + { + type wall; + nFaces 250; + startFace 5128; + } +) + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/constant/transportProperties b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/transportProperties new file mode 100644 index 0000000000..ab12b49567 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/transportProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +transportModel Newtonian; + +nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/constant/turbulenceProperties b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/turbulenceProperties new file mode 100644 index 0000000000..e7fa28c74a --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RASModel; + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/system/controlDict b/tutorials/incompressible/simpleFoam/pipeCyclic/system/controlDict new file mode 100644 index 0000000000..e43cefc79a --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/system/controlDict @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application simpleFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 1000; + +deltaT 1; + +writeControl timeStep; + +writeInterval 100; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression uncompressed; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/system/decomposeParDict b/tutorials/incompressible/simpleFoam/pipeCyclic/system/decomposeParDict new file mode 100644 index 0000000000..b76e7ccd24 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/system/decomposeParDict @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object decomposeParDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 5; + +method scotch; + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSchemes b/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSchemes new file mode 100644 index 0000000000..c1af3f9649 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSchemes @@ -0,0 +1,71 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default steadyState; +} + +gradSchemes +{ + default Gauss linear; + grad(p) Gauss linear; + grad(U) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss limitedLinearV 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; +} + +laplacianSchemes +{ + default none; + laplacian(nuEff,U) Gauss linear corrected; + laplacian((1|A(U)),p) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + laplacian(DepsilonEff,epsilon) Gauss linear corrected; + laplacian(DREff,R) Gauss linear corrected; + laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; + interpolate(U) linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + default no; + p ; +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSolution b/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSolution new file mode 100644 index 0000000000..5d305469b4 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/system/fvSolution @@ -0,0 +1,104 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p + { + solver GAMG; + smoother GaussSeidel; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + + tolerance 1e-06; + relTol 0.05; + } + + pFinal + { + solver GAMG; + smoother GaussSeidel; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + + tolerance 1e-06; + relTol 0; + } + + "(U|k|epsilon)" + { + solver smoothSolver; + smoother GaussSeidel; + tolerance 1e-05; + relTol 0.1; + } + + "(U|k|epsilon)Final" + { + solver PBiCG; + preconditioner DILU; + + tolerance 1e-05; + relTol 0; + } +} + +PIMPLE +{ + nOuterCorrectors 4; + nCorrectors 1; + nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 0; +} + +SIMPLE +{ + nNonOrthogonalCorrectors 0; + residualControl + { + p 1e-2; + U 1e-3; + "(k|epsilon)" 1e-3; + } +} + +relaxationFactors +{ + fields + { + p 0.3; + } + equations + { + U 0.7; + k 0.7; + "epsilon.*" 0.7; + } +} + +cache +{ + grad(U); +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/system/topoSetDict b/tutorials/incompressible/simpleFoam/pipeCyclic/system/topoSetDict new file mode 100644 index 0000000000..bce9f89021 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/system/topoSetDict @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name f0; + type faceSet; + action new; + source patchToFace; + sourceInfo + { + name "side1"; + } + } + { + name f0; + type faceSet; + action subset; + source boxToFace; + sourceInfo + { + box (0 -100 -100)(100 -0.2 100); + } + } + { + name c0; + type cellSet; + action new; + source faceToCell; + sourceInfo + { + set f0; + option any; + } + } + + + { + name walls; + type faceSet; + action new; + source patchToFace; + sourceInfo + { + name "walls"; + } + } + { + name c0; + type cellSet; + action delete; + source faceToCell; + sourceInfo + { + set walls; + option any; + } + } +); + +// ************************************************************************* //