From 30fdce1de401c8f33556f0db2be83b0b9baa4cda Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 29 Sep 2011 02:13:00 +0100 Subject: [PATCH] Improvements in conjugate heat solver: non-matching interface, parallelisation --- .../conjugateHeatFoam/conjugateCavity/Allrun | 4 + .../conjugateCavity/boundary | 77 ++++++++++--------- .../constant/polyMesh/blockMeshDict | 2 +- .../conjugateCavity/setBatch | 2 + .../conjugateHeatFoam/heatedBlock/boundary | 4 + .../conjugateHeatFoam/heatedBlock/setBatch | 2 + tutorials/coupled/conjugateHeatFoam/makeLinks | 42 ++++++++++ .../boundaryTwoWallsFlowSolution/0/nut | 52 +++++++++++++ .../simpleFoam/pitzDaily/system/fvSolution | 12 +-- 9 files changed, 152 insertions(+), 45 deletions(-) create mode 100644 tutorials/coupled/conjugateHeatFoam/conjugateCavity/setBatch create mode 100644 tutorials/coupled/conjugateHeatFoam/heatedBlock/setBatch create mode 100644 tutorials/coupled/conjugateHeatFoam/makeLinks create mode 100644 tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/0/nut diff --git a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/Allrun b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/Allrun index 9ceb1a2d9..4a60921f7 100755 --- a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/Allrun +++ b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/Allrun @@ -6,10 +6,14 @@ application="conjugateHeatFoam" runApplication blockMesh cp boundary constant/polyMesh +runApplication setSet -batch setBatch +runApplication setsToZones -noFlipMap cd ../heatedBlock runApplication blockMesh cp boundary constant/polyMesh +runApplication setSet -batch setBatch +runApplication setsToZones -noFlipMap cd ../conjugateCavity runApplication $application diff --git a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/boundary b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/boundary index 296110854..25e298c77 100644 --- a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/boundary +++ b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/boundary @@ -1,6 +1,6 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | -| \\ / F ield | OpenFOAM Extend Project: Open Source CFD | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | @@ -10,51 +10,52 @@ FoamFile version 2.0; format ascii; class polyBoundaryMesh; + location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 5 ( -movingWall -{ - type wall; - nFaces 10; - startFace 180; -} + movingWall + { + type wall; + nFaces 15; + startFace 420; + } + left + { + type wall; + nFaces 15; + startFace 435; + } + right + { + type regionCouple; + nFaces 15; + startFace 450; -left -{ - type wall; - nFaces 10; - startFace 190; -} + zone rightZone; + shadowRegion solid; + shadowPatch left; -right -{ - type regionCouple; - nFaces 10; - startFace 200; - - shadowRegion solid; - shadowPatch left; - attached on; - isWall yes; -} - -bottom -{ - type wall; - nFaces 10; - startFace 210; -} - -frontAndBack -{ - type empty; - nFaces 200; - startFace 220; -} + master yes; + attached on; + isWall yes; + bridgeOverlap no; + } + bottom + { + type wall; + nFaces 15; + startFace 465; + } + frontAndBack + { + type empty; + nFaces 450; + startFace 480; + } ) // ************************************************************************* // diff --git a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/constant/polyMesh/blockMeshDict b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/constant/polyMesh/blockMeshDict index 514a8ea28..2301db2e4 100644 --- a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/constant/polyMesh/blockMeshDict +++ b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/constant/polyMesh/blockMeshDict @@ -30,7 +30,7 @@ vertices blocks ( - hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1) + hex (0 1 2 3 4 5 6 7) (15 15 1) simpleGrading (1 1 1) ); edges diff --git a/tutorials/coupled/conjugateHeatFoam/conjugateCavity/setBatch b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/setBatch new file mode 100644 index 000000000..add1b53fe --- /dev/null +++ b/tutorials/coupled/conjugateHeatFoam/conjugateCavity/setBatch @@ -0,0 +1,2 @@ +faceSet rightZone new patchToFace right +quit diff --git a/tutorials/coupled/conjugateHeatFoam/heatedBlock/boundary b/tutorials/coupled/conjugateHeatFoam/heatedBlock/boundary index 87e7d3a26..e47c97111 100644 --- a/tutorials/coupled/conjugateHeatFoam/heatedBlock/boundary +++ b/tutorials/coupled/conjugateHeatFoam/heatedBlock/boundary @@ -29,10 +29,14 @@ left nFaces 10; startFace 200; + zone leftZone; shadowRegion region0; shadowPatch right; + + master no; attached on; isWall yes; // Not relevant + bridgeOverlap no; } right diff --git a/tutorials/coupled/conjugateHeatFoam/heatedBlock/setBatch b/tutorials/coupled/conjugateHeatFoam/heatedBlock/setBatch new file mode 100644 index 000000000..c9911f12e --- /dev/null +++ b/tutorials/coupled/conjugateHeatFoam/heatedBlock/setBatch @@ -0,0 +1,2 @@ +faceSet leftZone new patchToFace left +quit diff --git a/tutorials/coupled/conjugateHeatFoam/makeLinks b/tutorials/coupled/conjugateHeatFoam/makeLinks new file mode 100644 index 000000000..f2557bab5 --- /dev/null +++ b/tutorials/coupled/conjugateHeatFoam/makeLinks @@ -0,0 +1,42 @@ +ln -s ../conjugateCavity/0.1/solid/ 0.1 +ln -s ../conjugateCavity/0.2/solid/ 0.2 +ln -s ../conjugateCavity/0.3/solid/ 0.3 +ln -s ../conjugateCavity/0.4/solid/ 0.4 +ln -s ../conjugateCavity/0.5/solid/ 0.5 +ln -s ../conjugateCavity/0.6/solid/ 0.6 +ln -s ../conjugateCavity/0.7/solid/ 0.7 +ln -s ../conjugateCavity/0.8/solid/ 0.8 +ln -s ../conjugateCavity/0.9/solid/ 0.9 + + +ln -s ../conjugateCavity/0.15/solid/ 0.15 +ln -s ../conjugateCavity/0.25/solid/ 0.25 +ln -s ../conjugateCavity/0.35/solid/ 0.35 +ln -s ../conjugateCavity/0.45/solid/ 0.45 +ln -s ../conjugateCavity/0.55/solid/ 0.55 +ln -s ../conjugateCavity/0.65/solid/ 0.65 +ln -s ../conjugateCavity/0.75/solid/ 0.75 +ln -s ../conjugateCavity/0.85/solid/ 0.85 +ln -s ../conjugateCavity/0.95/solid/ 0.95 + + +ln -s ../conjugateCavity/1.1/solid/ 1.1 +ln -s ../conjugateCavity/1.2/solid/ 1.2 +ln -s ../conjugateCavity/1.3/solid/ 1.3 +ln -s ../conjugateCavity/1.4/solid/ 1.4 +ln -s ../conjugateCavity/1.5/solid/ 1.5 +ln -s ../conjugateCavity/1.6/solid/ 1.6 +ln -s ../conjugateCavity/1.7/solid/ 1.7 +ln -s ../conjugateCavity/1.8/solid/ 1.8 +ln -s ../conjugateCavity/1.9/solid/ 1.9 + + +ln -s ../conjugateCavity/1.15/solid/ 1.15 +ln -s ../conjugateCavity/1.25/solid/ 1.25 +ln -s ../conjugateCavity/1.35/solid/ 1.35 +ln -s ../conjugateCavity/1.45/solid/ 1.45 +ln -s ../conjugateCavity/1.55/solid/ 1.55 +ln -s ../conjugateCavity/1.65/solid/ 1.65 +ln -s ../conjugateCavity/1.75/solid/ 1.75 +ln -s ../conjugateCavity/1.85/solid/ 1.85 +ln -s ../conjugateCavity/1.95/solid/ 1.95 diff --git a/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/0/nut b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/0/nut new file mode 100644 index 000000000..1d492d29b --- /dev/null +++ b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/0/nut @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ 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 +{ + lowerWall + { + type nutWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + upperWall + { + type nutWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + flow + { + type cyclic; + value uniform 0; + } + defaultFaces + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution index 816710a3f..be354973f 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSolution @@ -22,42 +22,42 @@ solvers preconditioner DIC; tolerance 1e-06; relTol 0.01; - }; + } U { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; - }; + } k { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; - }; + } epsilon { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; - }; + } R { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; - }; + } nuTilda { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; - }; + } } SIMPLE