orient Class Reference

A zoneGenerator which sets the face orientation flipMap. More...

Inheritance diagram for orient:
Collaboration diagram for orient:

Public Member Functions

 TypeName ("orient")
 Runtime type information. More...
 
 orient (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~orient ()
 Destructor. More...
 
virtual zoneSet generate () const
 Generate and return the zoneSet. More...
 
- Public Member Functions inherited from zoneGenerator
 TypeName ("zoneGenerator")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, zoneGenerator, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
 
 zoneGenerator (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from name, polyMesh and dictionary. More...
 
 zoneGenerator (const zoneGenerator &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~zoneGenerator ()
 Destructor. More...
 
const wordname () const
 
const wordzoneName () const
 
bool moveUpdate () const
 Return true if the zoneGenerator updates any of the zones. More...
 
virtual zoneSet movePoints () const
 Regenerate the zoneSet following mesh point motion. More...
 
void operator= (const zoneGenerator &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from zoneGenerator
static autoPtr< zoneGeneratorNew (const word &name, const polyMesh &mesh, const dictionary &dict)
 Select constructed from name, mesh and dictionary. More...
 
static autoPtr< zoneGeneratorNew (const word &name, const zoneTypes &zoneType, const polyMesh &mesh, const dictionary &dict)
 Select constructed from name, zoneType, mesh and dictionary. More...
 
static autoPtr< zoneGeneratorNew (const polyMesh &mesh, const dictionary &dict)
 Select constructed from mesh and first valid dictionary. More...
 
static labelList indices (const boolList &selected)
 Return the list of selected indices. More...
 
- Protected Attributes inherited from zoneGenerator
const word name_
 Name of zone generator. More...
 
const dictionary dict_
 Dictionary cached for error context. More...
 
const word zoneName_
 Name of the zone (defaults to the name of the generator) More...
 
const polyMeshmesh_
 Reference to the polyMesh. More...
 
bool moveUpdate_
 Switch to update the zones if the mesh points are moved. More...
 

Detailed Description

A zoneGenerator which sets the face orientation flipMap.

based either on the face normal alignment with the given normal or orientation with respect to a given point outside the surface.

The returned faceZone is oriented and provides the corresponding flipMap.

Usage
Property Description Required Default value
type Type: face yes
name Name of the zone no zoneGenerator name
normal Reference unit vector no
outsidePoint Point outside the surface no
moveUpdate Switch to update after mesh motion no false

To orient the faceZone cut corresponding to the positive y-direction:

        orientedCut
        {
            type        orient;
            normal      (0 1 0);
            cut;
        }

To orient the faceZone cut with respect to the point (0 100 0) outside the surface:

        orientedCut
        {
            type        orient;
            point       (0 100 0);
            cut;
        }
Source files

Definition at line 116 of file orient_zoneGenerator.H.

Constructor & Destructor Documentation

◆ orient()

orient ( const word name,
const polyMesh mesh,
const dictionary dict 
)

Construct from dictionary.

Definition at line 413 of file orient_zoneGenerator.C.

◆ ~orient()

~orient ( )
virtual

Destructor.

Definition at line 434 of file orient_zoneGenerator.C.

Member Function Documentation

◆ TypeName()

TypeName ( "orient"  )

Runtime type information.

◆ generate()

Foam::zoneSet generate ( ) const
virtual

Generate and return the zoneSet.

Implements zoneGenerator.

Definition at line 440 of file orient_zoneGenerator.C.

References zoneSet::fZone().

Here is the call graph for this function:

The documentation for this class was generated from the following files: