pointToCell

Description

A topoSetCellSource to select cells with any point or any edge within a given pointSet(s).

Operands

Operand Type Location
input pointSet(s) $FOAM_CASE/constant/polyMesh/sets/<set>
output cellSet $FOAM_CASE/constant/polyMesh/sets/<set>

Description

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

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

    // Mandatory entries
    source      pointToCell;
    option      <option>;

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

    // Option-1
    sets
    (
        <pointSetName1>
        <pointSetName2>
        ...
    );

    // Option-2
    set   <pointSetName>;
}

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: pointToCell word yes -
option Selection type - see below word yes -

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

Options for the option entry:

any     | Cells using any point in pointSet
edge    | Cells using an edge with both points in pointSet

Options for the conditional mandatory entries:

Entry    | Description                | Type     | Required    | Default
sets     | Names of input pointSets   | wordList | conditional | -
set      | Name of input pointSet     | word     | conditional | -

Notes on entries

The order of precedence among the conditional mandatory entries from the highest to the lowest is sets, and set.

Further information

Tutorial:

Source code:

History

  • 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