ENH: Adding topo set to tutorial

This commit is contained in:
sergio
2011-07-22 18:39:27 +01:00
parent 01d07b6772
commit bae831d7cb
2 changed files with 57 additions and 2 deletions

View File

@ -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

View File

@ -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;
}
}
);
// ************************************************************************* //