A topoSetCellSource to select all cells whose cell centre inside a given bounding cylinder or cylinder annulus.


Operand Type Location
output cellSet $FOAM_CASE/constant/polyMesh/sets/<set>


Example of the cylinderToCell topoSet by using actions sub-dictionary in system/topoSetDict file:

    // Mandatory (inherited) entries
    name        <name>;
    type        cellSet;
    action      <action>;

    // Mandatory entries
    source      cylinderToCell;
    p1          (<p1X> <p1Y> <p1Z>);
    p2          (<p2X> <p2Y> <p2Z>);
    radius      <radius1>;

    // Optional entries
    innerRadius <radius2>;

where the entries mean:

Property Description Type Required Default
name Name of cellSet word yes -
type Type name: cellSet word yes -
action Action applied on cells - see below word yes -
source Source name: cylinderToCell word yes -
p1 Coordinate of one of the endpoints vector yes -
p2 Coordinate of the other endpoint vector yes -
radius Cylinder outer radius scalar yes -
innerRadius Cylinder inner radius scalar no 0

Options for the action entry:

new      | Create a new cellSet from selected cells
add      | Add selected cells into this cellSet
subtract | Remove selected cells from this cellSet

Further information


Source code:


  • Introduced in version 1.6

Would you like to suggest an improvement to this page? Create an issue

Copyright © 2020 OpenCFD Ltd.

Licensed under the Creative Commons License BY-NC-ND Creative Commons License