From c146ef5a1fc17218a3d5236fc3d2d88f28f34af6 Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Mon, 19 Aug 2013 23:02:27 +0200 Subject: [PATCH] Converting tutorial basic/laplacianFoam/twoBlocksMixingPlaneMismatch to new mixing plane syntax --- .../twoBlocksMixingPlaneMismatch/Allrun | 15 +++++++++++---- .../twoBlocksMixingPlaneMismatch/setBatch | 3 +++ .../twoBlocksMixingPlaneMismatch/system/fvSchemes | 4 ++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/setBatch diff --git a/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/Allrun b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/Allrun index 2750c1fcf..99d10317b 100755 --- a/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/Allrun +++ b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/Allrun @@ -23,8 +23,10 @@ then echo "Using pyFoamChangeMixingPlaneBoundary.py" pyFoamChangeMixingPlaneBoundary.py . mixpLeftOut \ --shadowPatch mixpRightIn \ - --assembly both \ - --orientation dirY_spanZ \ + --zone mixpLeftOutZone \ + --ribbonPatchDiscretisation bothPatches \ + --ribbonPatchStackAxis Y \ + --ribbonPatchSweepAxis Z \ --coordinateSystemType coordinateSystem \ --coordinateSystemOrigin "(0 0 0.005)" \ --coordinateSystemE1 "(1 0 0)" \ @@ -32,8 +34,10 @@ then pyFoamChangeMixingPlaneBoundary.py . mixpRightIn \ --shadowPatch mixpLeftOut \ - --assembly both \ - --orientation dirY_spanZ \ + --zone mixpRightInZone \ + --ribbonPatchDiscretisation bothPatches \ + --ribbonPatchStackAxis Y \ + --ribbonPatchSweepAxis Z \ --coordinateSystemType coordinateSystem \ --coordinateSystemOrigin "(0 0 0.005)" \ --coordinateSystemE1 "(1 0 0)" \ @@ -43,6 +47,9 @@ else cp constant/polyMesh/boundary.preconfigured constant/polyMesh/boundary fi +echo "$caseName: Creating zones for the mixingPlane" +runApplicationAndReportOnError setSet -batch setBatch +runApplicationAndReportOnError setsToZones -noFlipMap echo "$caseName: Creating the starting time directory" cp -r 0_orig 0 diff --git a/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/setBatch b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/setBatch new file mode 100644 index 000000000..070702982 --- /dev/null +++ b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/setBatch @@ -0,0 +1,3 @@ +faceSet mixpLeftOutZone new patchToFace mixpLeftOut +faceSet mixpRightInZone new patchToFace mixpRightIn +quit diff --git a/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/system/fvSchemes b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/system/fvSchemes index 11638e5bd..22e9846af 100644 --- a/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/system/fvSchemes +++ b/tutorials/basic/laplacianFoam/twoBlocksMixingPlaneMismatch/system/fvSchemes @@ -52,4 +52,8 @@ fluxRequired T; } +mixingPlane +{ + default zeroGradient; +} // ************************************************************************* //