nearestToPoint

Description

A topoSetPointSource to select points nearest to given points.

Operands

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

Description

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

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

    // Mandatory entries
    source      nearestToPoint;
    points
    (
        (<p1x> <p1y> <p1z>)
        (<p2x> <p2y> <p2z>)
        ...
    );
}

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: nearestToPoint word yes -
points List of selection points vectorList 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

Further information

Tutorial:

Source code:

History

  • 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