regionToFace

Description

A topoSetFaceSource to select cells belonging to a topologically connected region (that contains given points).

Operands

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

Description

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

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

    // Mandatory entries
    source      regionToFace;
    set         <faceSetName>;
    nearPoint   <point>;
}

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: regionToFace word yes -
set Name of faceSet restricting search word yes -
nearPoint The point on/near to the region vector yes -

Options for the action entry:

new      | Create a new faceSet from selected faces
add      | Add selected faces into this faceSet
subtract | Remove selected faces from this faceSet

Further information

Tutorial:

Source code:

History

  • Introduced in version 2.2.0

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