regionToCell

Description

A topoSetCellSource to select cells belonging to a topologically connected region (that contains given points). If started inside a given subCellSet keeps to it; if started outside stays outside.

Operands

Operand Type Location
input region $FOAM_CASE/constant/{<region>, polyMesh}
output cellSet $FOAM_CASE/constant/polyMesh/sets/<set>

Description

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

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

    // Mandatory entries
    source      regionToCell;
    insidePoints
    (
        (<p1x> <p1y> <p1z>)
        (<p2x> <p2y> <p2z>)
        ...
    );

    // Optional entries
    set       <cellSetName>;
    nErode    <label>;
}

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: regionToCell word yes -
insidePoints Coordinate(s) that is inside connected region vectorList yes -
set Name of cellSet restricting search word no none
nErode Number of cell layers to erode mesh to detect holes in the mesh - set to 0 if not used label 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 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