From bae831d7cbfd611891ec0dee969e278e157c721f Mon Sep 17 00:00:00 2001 From: sergio Date: Fri, 22 Jul 2011 18:39:27 +0100 Subject: [PATCH] ENH: Adding topo set to tutorial --- .../interFoam/ras/damBreakPorousBaffle/Allrun | 4 +- .../damBreakPorousBaffle/system/topoSetDict | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/topoSetDict diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/Allrun b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/Allrun index 0a6076a61e..29758935af 100755 --- a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/Allrun +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/Allrun @@ -13,8 +13,8 @@ runApplication setFields unset FOAM_SIGFPE unset FOAM_SETNAN -# Add cyclic baffles for fan -runApplication setSet -batch selectCyclics.setSet +# Create faceZones for porous baffles +runApplication topoSet createBaffles cyclicZoneFaces '(porous_half0 porous_half1)' -overwrite > log.createBaffles 2>&1 diff --git a/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/topoSetDict b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/topoSetDict new file mode 100644 index 0000000000..cb01338cff --- /dev/null +++ b/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/system/topoSetDict @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name cyclicFaces; + type faceSet; + action new; + source boxToFace; + sourceInfo + { + box (0.3015 0.0493 -1) (0.3069 0.2077 1); + } + } + + { + name cyclicFacesSlaveCells; + type cellSet; + action new; + source boxToCell; + sourceInfo + { + box (-1 0 -1) (0.305 0.31 1); + } + } + + { + name cyclicZoneFaces; + type faceZoneSet; + action new; + source setsToFaceZone; + sourceInfo + { + faceSet cyclicFaces; + cellSet cyclicFacesSlaveCells; + } + } +); + +// ************************************************************************* //