cylinderAnnulusToCell

Description

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

Operands

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

Description

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

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

    // Mandatory entries
    source      cylinderAnnulusToCell;
    p1          (<p1X> <p1Y> <p1Z>);
    p2          (<p2X> <p2Y> <p2Z>);
    outerRadius <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: cylinderAnnulusToCell word yes -
p1 Coordinate of one of the endpoints vector yes -
p2 Coordinate of the other endpoint vector yes -
outerRadius 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

Tutorial:

Source code:

History

  • Introduced in version 2.0.1

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