A topoSetFaceSource to select faces whose surface normal aligned with a given direction.


Operand Type Location
output faceSet $FOAM_CASE/constant/polyMesh/sets/<set>


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

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

    // Mandatory entries
    source      normalToFace;
    normal      (1 0 0);
    cos         0.01;

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: normalToFace word yes -
normal The surface normal direction vector yes -
cos Tolerance angle (range -1, +1), i.e. cosine of angle between the input normal and face normal scalar 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


Source code:


  • 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