A topoSetFaceSource to select all faces whose face centre inside a given bounding cylinder or cylinder annulus.


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


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

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

    // Mandatory entries
    source      cylinderToFace;
    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 faceSet word yes -
type Type name: faceSet word yes -
action Action applied on faces - see below word yes -
source Source name: cylinderToFace 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 faceSet from selected faces
add      | Add selected faces into this faceSet
subtract | Remove selected faces from this faceSet

Further information


Source code:


  • Introduced in version v1712

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