topoSet is a utility that collects points, faces and cells in sets, based on different criteria, for later usage with different other utilities like subsetMesh and setSet.
Contents
1 Dictionary
The default dictionary is located in
/system/topoSetDict
Usually dictionaries created elsewhere have the extension .topoSet (i.e. myTopoSet.topoSet).
The dictionary looks like:
actions ( { name selectedCells; type cellSet; action new; source boxToCell; sourceInfo { box (x0 y0 z0) (x1 y1 z1); } } { name selectedFaces; type faceSet; action new; source patchToFace; sourceInfo { name bottomWall; } } );
2 List of sources
2.1 cell sources
- boxToCell: Select all cells with cellCentre within bounding box
boxToCell (MINX MINY MINZ) (MAXX MAXY MAXZ)
- cellToCell: Select all cells in the cellSet
cellToCell CELLSET
- cylinderAnnulusToCell: Select all cells with cell centre within bounding cylinder annulus
cylinderAnnulusToCell (p1X p1Y p1Z) (p2X p2Y p2Z) outerRadius innerRadius
- cylinderToCell: Select all cells with cell centre within bounding cylinder
cylinderToCell (p1X p1Y p1Z) (p2X p2Y p2Z) radius
- faceToCell: Select cells that are the owner|neighbour|any of the faces in the faceSet or where all faces are in the faceSet
faceToCell FACESET neighbour|owner|any|all
- faceZoneToCell: Select master or slave side of the faceZone. Note:accepts wildcards for zone.
faceZoneToCell ZONE master|slave
- fieldToCell: Select all cells with field value >= min and <= max
fieldToCell FIELD MIN MAX
- labelToCell: Select cells by cellLabel
labelToCell (I0 I1 .. In)
- nbrToCell: Select all cells with only NNBR or less neighbouring cells
nbrToCell NNBR
- nearestToCell: Select the nearest cell for each of the points pt0 ..ptn
nearestToCell (PT0 .. PTN)
- pointToCell: Select all cells with any point in the pointSet
pointToCell POINTSET any
- regionToCell: Select all cells in the connected region containing point. If started inside the subCellSet keeps to it; if started outside stays outside.
regionToCell SUBCELLSET (X Y Z)
- rotatedBoxToCell: Select all cells with cellCentre within parallelopiped
rotatedBoxToCell (ORIGINX ORIGINY ORIGINZ) (IX IY IZ) (JX JY JZ) (KX KY KZ)
- shapeToCell: Select all cells of given cellShape (splitHex hardcoded with internal angle < 10 degrees).
shapeToCell tet|pyr|prism|hex|tetWedge|wedge|splitHex
- surfaceToCell
surfaceToCell<surface> <outsidePoints> <cut> <inside> <outside> <near> <curvature>
- <surface> name of triSurface
- <outsidePoints> list of points that define outside
- <cut> boolean whether to include cells cut by surface
- <inside> ,, ,, inside surface
- <outside> ,, ,, outside surface
- <near> scalar; include cells with centre <= near to surface
- <curvature> scalar; include cells close to strong curvature on surface (curvature defined as difference in surface normal at nearest point on surface for each vertex of cell)
- zoneToCell: Select all cells of CELLZONE
zoneToCell CELLZONE
2.2 cellZone sources
- setToCellZone
2.3 face sources
- boundaryToFace
- boxToFace
- cellToFace
- faceToFace
- labelToFace
- normalToFace
- patchToFace
- pointToFace
- zoneToFace
2.4 faceZone sources
- faceZoneToFaceZone
- setsToFaceZone
- setToFaceZone
2.5 point sources
- boxToPoint
- cellToPoint
- faceToPoint
- labelToPoint
- nearestToPoint
- pointToPoint
- surfaceToPoint
- zoneToPoint
2.6 pointZone sources
- setToPointZone
3 Usage
topoSet
or
topoSet myTopoSet.topoSet
results in sets stored in
/constants/polyMesh/sets