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

polyBoundaryMesh Class Reference

Foam::polyBoundaryMesh. More...

Inheritance diagram for polyBoundaryMesh:
Collaboration diagram for polyBoundaryMesh:

List of all members.


Public Member Functions

 TypeName ("polyBoundaryMesh")
 Runtime type information.
 polyBoundaryMesh (const IOobject &, const polyMesh &)
 Read constructor given IOobject and a polyMesh reference.
 polyBoundaryMesh (const IOobject &, const polyMesh &, const label size)
 Construct given size.
 ~polyBoundaryMesh ()
void clearGeom ()
 Clear geometry at this level and at patches.
void clearAddressing ()
 Clear addressing at this level and at patches.
const polyMeshmesh () const
 Return the mesh reference.
const List< labelPairList > & neighbourEdges () const
 Per patch the edges on the neighbouring patch. Is for every external.
wordList names () const
 Return a list of patch names.
wordList types () const
 Return a list of patch types.
wordList physicalTypes () const
 Return a list of physical types.
label findPatchID (const word &patchName) const
 Find patch index given a name.
label whichPatch (const label faceIndex) const
 Return patch index for a given face label.
labelHashSet patchSet (const wordList &) const
 Return the set of patch IDs corresponding to the given list of names.
bool checkParallelSync (const bool report=false) const
 Check whether all procs have all patches and in same order. Return.
bool checkDefinition (const bool report=false) const
 Check boundary definition. Return true if in error.
void movePoints (const pointField &)
 Correct polyBoundaryMesh after moving points.
void updateMesh ()
 Correct polyBoundaryMesh after topology update.
void reorder (const UList< label > &)
 Reorders patches. Ordering does not have to be done in.
bool writeData (Ostream &) const
 writeData member function required by regIOobject
bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write using given format, version and form uncompression.

Friends

class polyMesh
 Declare friendship with polyMesh.
Ostreamoperator<< (Ostream &, const polyBoundaryMesh &)

Detailed Description

Foam::polyBoundaryMesh.

Source files

Definition at line 56 of file polyBoundaryMesh.H.


Constructor & Destructor Documentation

polyBoundaryMesh ( const IOobject io,
const polyMesh mesh 
)

Read constructor given IOobject and a polyMesh reference.

Note point pointers are unset, only used in copying meshes

Definition at line 45 of file polyBoundaryMesh.C.

polyBoundaryMesh ( const IOobject io,
const polyMesh pm,
const label  size 
)

Construct given size.

Definition at line 93 of file polyBoundaryMesh.C.

~polyBoundaryMesh (  ) 

Definition at line 108 of file polyBoundaryMesh.C.


Member Function Documentation

TypeName ( "polyBoundaryMesh"   ) 

Runtime type information.

void clearGeom (  ) 

Clear geometry at this level and at patches.

Definition at line 114 of file polyBoundaryMesh.C.

References Foam::deleteDemandDrivenData().

Here is the call graph for this function:

void clearAddressing (  ) 

Clear addressing at this level and at patches.

Definition at line 123 of file polyBoundaryMesh.C.

References forAll, and patchi.

const polyMesh& mesh (  )  const [inline]

Return the mesh reference.

Definition at line 130 of file polyBoundaryMesh.H.

Referenced by NamedEnum< Enum, nEnum >::names(), and directMappedPatchBase::samplePolyPatch().

Here is the caller graph for this function:

const Foam::List< Foam::labelPairList > & neighbourEdges (  )  const

Per patch the edges on the neighbouring patch. Is for every external.

edge the neighbouring patch and neighbouring (external) patch edge label. Note that edge indices are offset by nInternalEdges to keep it as much as possible consistent with coupled patch addressing (where coupling is by local patch face index). Only valid for singly connected polyBoundaryMesh and not parallel

Definition at line 151 of file polyBoundaryMesh.C.

References patchi.

Foam::wordList names (  )  const

Return a list of patch names.

Definition at line 283 of file polyBoundaryMesh.C.

Foam::wordList types (  )  const

Return a list of patch types.

Definition at line 298 of file polyBoundaryMesh.C.

Foam::wordList physicalTypes (  )  const

Return a list of physical types.

Definition at line 313 of file polyBoundaryMesh.C.

Foam::label findPatchID ( const word patchName  )  const

Find patch index given a name.

Definition at line 328 of file polyBoundaryMesh.C.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

Foam::label whichPatch ( const label  faceIndex  )  const

Foam::labelHashSet patchSet ( const wordList patchNames  )  const

Return the set of patch IDs corresponding to the given list of names.

Wild cards are expanded.

Definition at line 404 of file polyBoundaryMesh.C.

bool checkParallelSync ( const bool  report = false  )  const

Check whether all procs have all patches and in same order. Return.

true if in error.

Definition at line 434 of file polyBoundaryMesh.C.

bool checkDefinition ( const bool  report = false  )  const

Check boundary definition. Return true if in error.

Definition at line 521 of file polyBoundaryMesh.C.

void movePoints ( const pointField p  ) 

Correct polyBoundaryMesh after moving points.

Definition at line 570 of file polyBoundaryMesh.C.

References Foam::endl(), and Foam::Info.

Here is the call graph for this function:

void updateMesh (  ) 

Correct polyBoundaryMesh after topology update.

Definition at line 586 of file polyBoundaryMesh.C.

Referenced by polyMesh::updateMesh().

Here is the caller graph for this function:

void reorder ( const UList< label > &  oldToNew  ) 

Reorders patches. Ordering does not have to be done in.

ascending or descending order. Reordering has to be unique. (is shuffle) Calls updateMesh() after reordering to recalculate data.

Definition at line 604 of file polyBoundaryMesh.C.

bool writeData ( Ostream os  )  const [virtual]

writeData member function required by regIOobject

Implements regIOobject.

Definition at line 621 of file polyBoundaryMesh.C.

References patchi.

bool writeObject ( IOstream::streamFormat  fmt,
IOstream::versionNumber  ver,
IOstream::compressionType  cmp 
) const [virtual]

Write using given format, version and form uncompression.

Reimplemented from regIOobject.

Definition at line 645 of file polyBoundaryMesh.C.


Friends And Related Function Documentation

friend class polyMesh [friend]

Declare friendship with polyMesh.

Definition at line 88 of file polyBoundaryMesh.H.

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


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd