diff --git a/tutorials/compressible/steadyCompressibleMRFFoam/bentRotorStator/system/fvSolution b/tutorials/compressible/steadyCompressibleMRFFoam/bentRotorStator/system/fvSolution index 9b985f11f..4b82cca5e 100644 --- a/tutorials/compressible/steadyCompressibleMRFFoam/bentRotorStator/system/fvSolution +++ b/tutorials/compressible/steadyCompressibleMRFFoam/bentRotorStator/system/fvSolution @@ -25,7 +25,7 @@ solvers maxIter 1000; tolerance 1e-8; relTol 0.001; - }; + } U { solver BiCGStab; @@ -78,14 +78,13 @@ PIMPLE relaxationFactors { // Note: under-relaxation factors used in wave-transmissive schemes - U 0.5; - p 0.2; + U 0.7; + p 1; i 0.1; - h 0.5; rho 0.25; - k 0.2; - epsilon 0.2; + k 0.5; + epsilon 0.5; } fieldBounds diff --git a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/controlDict b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/controlDict index 9628e5593..9ac14a7d7 100644 --- a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/controlDict +++ b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/controlDict @@ -50,4 +50,28 @@ maxCo 0.8; maxDeltaT 0.01; + +functions +( + minMaxU + { + type minMaxField; + + // Where to load it from (if not already in solver) + functionObjectLibs (/*"libsampling.so"*/ "libfieldFunctionObjects.so"); + + name U; + } + minMaxP + { + type minMaxField; + + // Where to load it from (if not already in solver) + functionObjectLibs ("libfieldFunctionObjects.so"); + + name p; + } +); + + // ************************************************************************* // diff --git a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/decomposeParDict b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/decomposeParDict index 30d891a20..4b1faa378 100644 --- a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/decomposeParDict +++ b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/decomposeParDict @@ -14,12 +14,6 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -//- Keep owner and neighbour on same processor for faces in zones: -// preserveFaceZones ( interface1_faces interface2_faces ); - -//- Keep owner and neighbour on same processor for faces in patches: -// preservePatches ( interface1 interface2 ); - globalFaceZones ( interface1_faces @@ -28,10 +22,9 @@ globalFaceZones rotor_cyclic_lower_faces ); // Those are the names of the face zones created previously -numberOfSubdomains 4; // The problem will be decomposed in 4 different processors +numberOfSubdomains 4; method scotch; -// method metis; simpleCoeffs { @@ -39,32 +32,6 @@ simpleCoeffs delta 0.001; } -metisCoeffs -{ -/* - processorWeights - ( - 1 - 1 - 1 - 1 - ); -*/ -} - -scotchCoeffs -{ - //processorWeights - //( - // 1 - // 1 - // 1 - // 1 - //); - //writeGraph true; - //strategy "b"; -} - distributed no; roots diff --git a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/fvSchemes b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/fvSchemes index 1650e3534..2bcdf4a03 100644 --- a/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/fvSchemes +++ b/tutorials/incompressible/icoDyMFoam/turboPassageRotating/system/fvSchemes @@ -33,12 +33,7 @@ divSchemes laplacianSchemes { - default none; - laplacian(nu,U) Gauss linear corrected; - laplacian(rAU,pcorr) Gauss linear corrected; - laplacian(rAU,p) Gauss linear corrected; - - laplacian((1|A(U)),p) Gauss linear corrected; + default Gauss linear corrected; } interpolationSchemes diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/U b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/U new file mode 100644 index 000000000..07e9283c3 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/U @@ -0,0 +1,71 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | foam-extend: Open Source CFD | +| \\ / O peration | Version: 3.1 | +| \\ / A nd | Web: http://www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + upstreamMixingPlanePatch + { + type mixingPlane; + } + downstreamMixingPlanePatch + { + type mixingPlane; + } + upstreamPerio1 + { + type cyclicGgi; + } + upstreamPerio2 + { + type cyclicGgi; + } + downstreamPerio1 + { + type cyclicGgi; + } + downstreamPerio2 + { + type cyclicGgi; + } + downstreamWall + { + type symmetryPlane; + } + upstreamWall + { + type symmetryPlane; + } + inflow + { + type surfaceNormalFixedValue; + refValue uniform -10; + value uniform (0 0 0); + } + outflow + { + type inletOutlet; + inletValue uniform (0 0 0); + value uniform (0 0 0); + } +} + +// ************************************************************************* // + diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/epsilon b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/epsilon new file mode 100644 index 000000000..09404a324 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/epsilon @@ -0,0 +1,68 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | foam-extend: Open Source CFD | +| \\ / O peration | Version: 3.1 | +| \\ / A nd | Web: http://www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -3 0 0 0 0 ]; + +internalField uniform 0.1; + +boundaryField +{ + downstreamMixingPlanePatch + { + type mixingPlane; + } + upstreamMixingPlanePatch + { + type mixingPlane; + } + downstreamWall + { + type symmetryPlane; + } + upstreamWall + { + type symmetryPlane; + } + downstreamPerio1 + { + type cyclicGgi; + } + downstreamPerio2 + { + type cyclicGgi; + } + upstreamPerio1 + { + type cyclicGgi; + } + upstreamPerio2 + { + type cyclicGgi; + } + inflow + { + type fixedValue; + value uniform 0.1; + } + outflow + { + type zeroGradient; + } +} + +// ************************************************************************* // + diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/k b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/k new file mode 100644 index 000000000..19d4fd141 --- /dev/null +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/k @@ -0,0 +1,69 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | foam-extend: Open Source CFD | +| \\ / O peration | Version: 3.1 | +| \\ / A nd | Web: http://www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform 0.01; + +boundaryField +{ + downstreamPerio1 + { + type cyclicGgi; + } + downstreamPerio2 + { + type cyclicGgi; + } + upstreamPerio1 + { + type cyclicGgi; + } + upstreamPerio2 + { + type cyclicGgi; + } + downstreamWall + { + type symmetryPlane; + } + upstreamWall + { + type symmetryPlane; + } + downstreamMixingPlanePatch + { + type mixingPlane; + } + upstreamMixingPlanePatch + { + type mixingPlane; + } + inflow + { + type fixedValue; + value uniform 0.01; + } + outflow + { + type zeroGradient; + } + +} + +// ************************************************************************* // + diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/p b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/p new file mode 100644 index 000000000..ba4e1b07e --- /dev/null +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/0/p @@ -0,0 +1,68 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | foam-extend: Open Source CFD | +| \\ / O peration | Version: 3.1 | +| \\ / A nd | Web: http://www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform 0; + +boundaryField +{ + downstreamMixingPlanePatch + { + type mixingPlane; + } + upstreamMixingPlanePatch + { + type mixingPlane; + } + downstreamWall + { + type symmetryPlane; + } + upstreamWall + { + type symmetryPlane; + } + upstreamPerio1 + { + type cyclicGgi; + } + upstreamPerio2 + { + type cyclicGgi; + } + downstreamPerio1 + { + type cyclicGgi; + } + downstreamPerio2 + { + type cyclicGgi; + } + inflow + { + type zeroGradient; + } + outflow + { + type fixedValue; + value uniform 0; + } +} + +// ************************************************************************* // + diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allclean b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allclean index 7a6f8eb4a..1be212c5c 100755 --- a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allclean +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allclean @@ -5,4 +5,4 @@ cleanCase \rm constant/polyMesh/blockMeshDict constant/polyMesh/boundary -\rm -r 0 +\rm -rf 0 ; cp -r save 0 diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allrun b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allrun index d4262da46..71cb3b184 100755 --- a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allrun +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/Allrun @@ -9,11 +9,7 @@ runApplication blockMesh runApplication setSet -batch setBatch.batch runApplication setsToZones -noFlipMap - -cp -r save 0 - runApplication potentialFoam - runApplication simpleFoam diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/decomposeParDict b/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/decomposeParDict index 44da178ca..46cf9d521 100644 --- a/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/decomposeParDict +++ b/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/decomposeParDict @@ -14,9 +14,10 @@ FoamFile } numberOfSubdomains 4; -method manual; //metis; //simple; +method metis; //metis; //simple; -globalFaceZones ( +globalFaceZones +( ggi1DomBZone ggi1DomAZone ggi2DomBZone