cellToFace

Description

A topoSetFaceSource to select all the faces from given cellSet(s).

Operands

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

Description

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

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

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

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

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

    // Option-2 
    set <faceSetName>;
}

where the entries mean:

Property Description Type Required Default
name Name of faceSet word yes -
type Type name: faceSet word yes -
action Action applied on faces - see below word yes -
source Source name: cellToFace word yes -
option Selection type - see below word yes -

Options for the action entry:

new      | Create a new faceSet from selected cells of cellSet(s)
add      | Add selected faces of cellSet(s) into this faceSet
subtract | Remove selected faces of cellSet(s) from this faceSet

Options for the option entry:

all     | All faces of cells in the cellSet
both    | Faces where both neighbours are in the cellSet

Options for the conditional mandatory entries:

Entry    | Description                    | Type     | Required    | Default
sets     | Names of input cellSets        | wordList | conditional | -
set      | Name of input cellSet          | 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