FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

polyBoundaryMesh Class Reference

Foam::polyBoundaryMesh. More...

#include <OpenFOAM/polyBoundaryMesh.H>


Detailed Description

Foam::polyBoundaryMesh.

Source files

Definition at line 61 of file polyBoundaryMesh.H.

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 polyMesh &  mesh () 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.
Ostream &  operator<< (Ostream &, const polyBoundaryMesh &)

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 53 of file polyBoundaryMesh.C.

References IOstream::check(), forAll, IOobject::MUST_READ, polyPatch::New(), patches, PtrList< T >::set(), PtrList< T >::setSize(), and PtrList< T >::size().

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

Construct given size.

Definition at line 101 of file polyBoundaryMesh.C.

Definition at line 116 of file polyBoundaryMesh.C.

References Foam::deleteDemandDrivenData().


Member Function Documentation

TypeName ( "polyBoundaryMesh"    )

Runtime type information.

void clearGeom (  )

Clear geometry at this level and at patches.

Definition at line 122 of file polyBoundaryMesh.C.

References forAll.

void clearAddressing (  )

Clear addressing at this level and at patches.

Definition at line 131 of file polyBoundaryMesh.C.

References Foam::deleteDemandDrivenData(), and forAll.

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

Return a list of patch types.

Definition at line 306 of file polyBoundaryMesh.C.

References forAll, patches, and PtrList< T >::size().

Referenced by polyMesh::readUpdate().

Foam::wordList physicalTypes (  ) const

Return a list of physical types.

Definition at line 321 of file polyBoundaryMesh.C.

References forAll, patches, and PtrList< T >::size().

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 412 of file polyBoundaryMesh.C.

References UList< T >::empty(), Foam::endl(), Foam::findStrings(), forAll, HashSet< Key, Hash >::insert(), and WarningIn.

Referenced by forces::read().

bool checkParallelSync ( const bool   report = false  ) const
bool checkDefinition ( const bool   report = false  ) const

Check boundary definition. Return true if in error.

Definition at line 529 of file polyBoundaryMesh.C.

References Foam::endl(), forAll, Foam::Info, mesh, IOobject::name(), primitiveMesh::nInternalFaces(), Foam::Pout, Foam::reduce(), and PtrList< T >::size().

void movePoints ( const pointField &   p  )

Correct polyBoundaryMesh after moving points.

Definition at line 578 of file polyBoundaryMesh.C.

References forAll, and patches.

void updateMesh (  )

Correct polyBoundaryMesh after topology update.

Definition at line 594 of file polyBoundaryMesh.C.

References Foam::deleteDemandDrivenData(), forAll, and patches.

Referenced by polyMesh::polyMesh(), and polyMesh::updateMesh().

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.

Reimplemented from PtrList< T >.

Definition at line 612 of file polyBoundaryMesh.C.

References forAll, patches, and PtrList< T >::reorder().

Referenced by meshRefinement::addPatch().

bool writeData ( Ostream &   os  ) const [virtual]
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 653 of file polyBoundaryMesh.C.

References IOstream::UNCOMPRESSED, and regIOobject::writeObject().


Friends And Related Function Documentation

friend class polyMesh [friend]

Declare friendship with polyMesh.

Definition at line 93 of file polyBoundaryMesh.H.

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

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