A topoSetPointSource to select all points based on whether they are inside given bounding box(es).


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


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

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

    // Mandatory entries
    source      boxToPoint;

    // Conditional mandatory entries
    // Select either of the below

    // Option-1
        (<minX> <minY> <minZ>) (<maxX> <maxY> <maxZ>) // box-1
        (<minX> <minY> <minZ>) (<maxX> <maxY> <maxZ>) // box-2

    // Option-2 
    box (<minX> <minY> <minZ>) (<maxX> <maxY> <maxZ>);

    // Option-3
    min (<minX> <minY> <minZ>);
    max (<maxX> <maxY> <maxZ>);

where the entries mean:

Property Description Type Required Default
name Name of pointSet word yes -
type Type name: pointSet word yes -
action Action applied on points - see below word yes -
source Source name: boxToPoint word yes -

Options for the action entry:

new      | Create a new pointSet from selected points
add      | Add selected points into this pointSet
subtract | Remove selected points from this pointSet

Options for the conditional mandatory entries:

Entry    | Description                    | Type       | Required    | Default
boxes    | Multiple bounding boxes        | vectorList | conditional | -
box      | A single bounding box          | vector     | conditional | -
min      | Minimum point for a single box | vector     | conditional | -
max      | Maximum point for a single box | vector     | conditional | -

Notes on entries

The order of precedence among the conditional mandatory entries from the highest to the lowest is boxes, box or a min-max pair (compatibility with searchableBox).

Further information


Source code:


  • Introduced in version 1.5

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