faceToCell

Description

A topoSetCellSource to select all cells based on usage in given faceSet(s), e.g. select cells that are the owner/neighbour/any of the faces in a given faceSet.

Operands

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

Description

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

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

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

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

    // Option-1
    sets
    (
        <faceSetName0>
        <faceSetName1>
        ...
    );

    // Option-2 
    set     <faceSetName>;
}

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: faceToCell 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:

all       | Cells that are either owner or neighbour of given faces
any       | Cells that are either owner or neighbour of given faces
owner     | Cells that are owner of given faces
neighbour | Cells that are neighbour of given faces

Options for the conditional mandatory entries:

Entry    | Description                | Type     | Req'd  | Dflt
sets     | Names of input faceSets    | wordList | cond'l | -
set      | Name of input faceSet      | word     | cond'l | -

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