OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

faceZone Class Reference

A subset of mesh faces organised as a primitive patch. More...

Inheritance diagram for faceZone:
Collaboration diagram for faceZone:

List of all members.


Public Member Functions

 TypeName ("faceZone")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, faceZone, dictionary,(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm),(name, dict, index, zm))
 faceZone (const word &name, const labelList &addr, const boolList &fm, const label index, const faceZoneMesh &zm)
 Construct from components.
 faceZone (const word &name, const Xfer< labelList > &addr, const Xfer< boolList > &fm, const label index, const faceZoneMesh &)
 Construct from components, transferring contents.
 faceZone (const word &name, const dictionary &, const label index, const faceZoneMesh &)
 Construct from dictionary.
 faceZone (const faceZone &, const labelList &addr, const boolList &fm, const label index, const faceZoneMesh &)
 Construct given the original zone and resetting the.
 faceZone (const faceZone &, const Xfer< labelList > &addr, const Xfer< boolList > &fm, const label index, const faceZoneMesh &)
 Construct given the original zone, resetting the.
virtual autoPtr< faceZoneclone (const faceZoneMesh &zm) const
 Construct and return a clone, resetting the zone mesh.
virtual autoPtr< faceZoneclone (const labelList &addr, const boolList &fm, const label index, const faceZoneMesh &zm) const
 Construct and return a clone, resetting the face list.
virtual ~faceZone ()
 Destructor.
const wordname () const
 Return name.
const boolListflipMap () const
 Return face flip map.
label whichFace (const label globalFaceID) const
 Map storing the local face index for every global face index.
const primitiveFacePatchoperator() () const
 Return reference to primitive patch.
label index () const
 Return the index of this zone in zone list.
const faceZoneMeshzoneMesh () const
 Return zoneMesh reference.
const labelListmasterCells () const
 Return labels of master cells (cells next to the master face.
const labelListslaveCells () const
 Return labels of slave cells.
const labelListmeshEdges () const
 Return global edge index for local edges.
void clearAddressing ()
 Clear addressing.
void resetAddressing (const labelList &, const boolList &)
 Reset addressing and flip map (clearing demand-driven data).
bool checkDefinition (const bool report=false) const
 Check zone definition. Return true if in error.
bool checkParallelSync (const bool report=false) const
 Check whether all procs have faces synchronised. Return.
virtual void movePoints (const pointField &)
 Correct patch after moving points.
void updateMesh (const mapPolyMesh &mpm)
 Update for changes in topology.
virtual void write (Ostream &) const
 Write.
virtual void writeDict (Ostream &) const
 Write dictionary.

Static Public Member Functions

static autoPtr< faceZoneNew (const word &name, const dictionary &, const label index, const faceZoneMesh &)
 Return a pointer to a new face zone.

Friends

Ostreamoperator<< (Ostream &, const faceZone &)

Detailed Description

A subset of mesh faces organised as a primitive patch.

For quick check whether a face belongs to the zone use the lookup mechanism in faceZoneMesh, where all the zoned faces are registered with their zone number.

Source files

Definition at line 63 of file faceZone.H.


Constructor & Destructor Documentation

faceZone ( const word name,
const labelList addr,
const boolList fm,
const label  index,
const faceZoneMesh zm 
)

Construct from components.

Definition at line 215 of file faceZone.C.

faceZone ( const word name,
const Xfer< labelList > &  addr,
const Xfer< boolList > &  fm,
const label  index,
const faceZoneMesh zm 
)

Construct from components, transferring contents.

Definition at line 239 of file faceZone.C.

faceZone ( const word name,
const dictionary dict,
const label  index,
const faceZoneMesh zm 
)

Construct from dictionary.

Definition at line 264 of file faceZone.C.

faceZone ( const faceZone fz,
const labelList addr,
const boolList fm,
const label  index,
const faceZoneMesh zm 
)

Construct given the original zone and resetting the.

face list and zone mesh information

Definition at line 289 of file faceZone.C.

faceZone ( const faceZone fz,
const Xfer< labelList > &  addr,
const Xfer< boolList > &  fm,
const label  index,
const faceZoneMesh zm 
)

Construct given the original zone, resetting the.

face list and zone mesh information

Definition at line 313 of file faceZone.C.

~faceZone (  )  [virtual]

Destructor.

Definition at line 338 of file faceZone.C.


Member Function Documentation

TypeName ( "faceZone"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
faceZone  ,
dictionary  ,
(const word &name, const dictionary &dict, const label index, const faceZoneMesh &zm)  ,
(name, dict, index, zm)   
)

virtual autoPtr<faceZone> clone ( const faceZoneMesh zm  )  const [inline, virtual]

Construct and return a clone, resetting the zone mesh.

Definition at line 208 of file faceZone.H.

References faceZone::flipMap(), and faceZone::index().

Here is the call graph for this function:

virtual autoPtr<faceZone> clone ( const labelList addr,
const boolList fm,
const label  index,
const faceZoneMesh zm 
) const [inline, virtual]

Construct and return a clone, resetting the face list.

and zone mesh

Definition at line 221 of file faceZone.H.

Foam::autoPtr< Foam::faceZone > New ( const word name,
const dictionary dict,
const label  index,
const faceZoneMesh zm 
) [static]

Return a pointer to a new face zone.

created on freestore from dictionary

Definition at line 29 of file newFaceZone.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, Foam::Info, and dictionary::lookup().

Here is the call graph for this function:

const word& name (  )  const [inline]

Return name.

Definition at line 258 of file faceZone.H.

Referenced by faceZone::writeDict().

Here is the caller graph for this function:

const boolList& flipMap (  )  const [inline]

Return face flip map.

Definition at line 264 of file faceZone.H.

Referenced by faceZone::clone(), faceZone::updateMesh(), and faceZone::writeDict().

Here is the caller graph for this function:

Foam::label whichFace ( const label  globalFaceID  )  const

Map storing the local face index for every global face index.

Used to find out the index of face in the zone from the known global face index. If the face is not in the zone, returns -1

Definition at line 346 of file faceZone.C.

References faceZone::clearAddressing().

Here is the call graph for this function:

const Foam::primitiveFacePatch & operator() (  )  const

Return reference to primitive patch.

Definition at line 369 of file faceZone.C.

label index (  )  const [inline]

Return the index of this zone in zone list.

Definition at line 280 of file faceZone.H.

Referenced by faceZone::clone().

Here is the caller graph for this function:

const Foam::faceZoneMesh & zoneMesh (  )  const

Return zoneMesh reference.

Definition at line 363 of file faceZone.C.

const Foam::labelList & masterCells (  )  const

Return labels of master cells (cells next to the master face.

zone in the prescribed direction)

Definition at line 380 of file faceZone.C.

const Foam::labelList & slaveCells (  )  const

Return labels of slave cells.

Definition at line 391 of file faceZone.C.

const Foam::labelList & meshEdges (  )  const

Return global edge index for local edges.

Definition at line 402 of file faceZone.C.

void clearAddressing (  ) 

Clear addressing.

Definition at line 443 of file faceZone.C.

Referenced by faceZone::updateMesh(), and faceZone::whichFace().

Here is the caller graph for this function:

void resetAddressing ( const labelList addr,
const boolList flipMap 
)

Reset addressing and flip map (clearing demand-driven data).

Definition at line 456 of file faceZone.C.

bool checkDefinition ( const bool  report = false  )  const

Check zone definition. Return true if in error.

Definition at line 497 of file faceZone.C.

bool checkParallelSync ( const bool  report = false  )  const

Check whether all procs have faces synchronised. Return.

true if in error.

Definition at line 526 of file faceZone.C.

void movePoints ( const pointField p  )  [virtual]

Correct patch after moving points.

Definition at line 607 of file faceZone.C.

void updateMesh ( const mapPolyMesh mpm  ) 

Update for changes in topology.

Definition at line 467 of file faceZone.C.

References faceZone::clearAddressing(), and faceZone::flipMap().

Here is the call graph for this function:

void write ( Ostream os  )  const [virtual]

Write.

Definition at line 615 of file faceZone.C.

void writeDict ( Ostream os  )  const [virtual]

Write dictionary.

Definition at line 623 of file faceZone.C.

References faceZone::flipMap(), faceZone::name(), and Foam::nl.

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream ,
const faceZone  
) [friend]


The documentation for this class was generated from the following files:
  • src/OpenFOAM/meshes/polyMesh/zones/faceZone/faceZone.H
  • src/OpenFOAM/meshes/polyMesh/zones/faceZone/faceZone.C
  • src/OpenFOAM/meshes/polyMesh/zones/faceZone/newFaceZone.C
Copyright © 2000-2009 OpenCFD Ltd