Public Member Functions | Static Public Member Functions | List of all members
blockMesh Class Reference

A multi-block mesh generator. More...

Inheritance diagram for blockMesh:
Inheritance graph
[legend]
Collaboration diagram for blockMesh:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("blockMesh")
 
 blockMesh (const IOdictionary &, const word &regionName)
 Construct from IOdictionary. More...
 
 ~blockMesh ()
 Destructor. More...
 
const pointFieldblockPointField () const
 Reference to point field defining the block mesh. More...
 
const polyMeshtopology () const
 Return the blockMesh topology as a polyMesh. More...
 
const curvedEdgeListedges () const
 Return the curved edges. More...
 
scalar scaleFactor () const
 The scaling factor used to convert to metres. More...
 
const pointFieldpoints () const
 The points for the entire mesh. More...
 
const cellShapeListcells () const
 Return cell shapes list. More...
 
const faceListListpatches () const
 Return the patch face lists. More...
 
PtrList< dictionarypatchDicts () const
 Get patch information from the topology mesh. More...
 
wordList patchNames () const
 Return patch names. More...
 
label numZonedBlocks () const
 Number of blocks with specified zones. More...
 
void clearGeom ()
 Clear geometry (internal points, cells, boundaryPatches) More...
 
void writeTopology (Ostream &) const
 Writes edges of blockMesh in OBJ format. More...
 
- Public Member Functions inherited from PtrList< T >
 PtrList ()
 Null Constructor. More...
 
 PtrList (const label)
 Construct with size specified. More...
 
 PtrList (const PtrList< T > &)
 Copy constructor. More...
 
template<class CloneArg >
 PtrList (const PtrList< T > &, const CloneArg &)
 Copy constructor with additional argument for clone. More...
 
 PtrList (const Xfer< PtrList< T > > &)
 Construct by transferring the parameter contents. More...
 
 PtrList (PtrList< T > &, bool reUse)
 Construct as copy or re-use as specified. More...
 
 PtrList (const SLPtrList< T > &)
 Construct as copy of SLPtrList<T> More...
 
template<class INew >
 PtrList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class. More...
 
 PtrList (Istream &)
 Construct from Istream using default Istream constructor class. More...
 
 ~PtrList ()
 Destructor. More...
 
label size () const
 Return the number of elements in the PtrList. More...
 
bool empty () const
 Return true if the PtrList is empty (ie, size() is zero). More...
 
Tfirst ()
 Return reference to the first element of the list. More...
 
const Tfirst () const
 Return reference to first element of the list. More...
 
Tlast ()
 Return reference to the last element of the list. More...
 
const Tlast () const
 Return reference to the last element of the list. More...
 
void setSize (const label)
 Reset size of PtrList. If extending the PtrList, new entries are. More...
 
void resize (const label)
 Alias for setSize(const label) More...
 
void clear ()
 Clear the PtrList, i.e. set size to zero deleting all the. More...
 
void append (T *)
 Append an element at the end of the list. More...
 
void append (const autoPtr< T > &)
 
void append (const tmp< T > &)
 
void transfer (PtrList< T > &)
 Transfer the contents of the argument PtrList into this PtrList. More...
 
Xfer< PtrList< T > > xfer ()
 Transfer contents to the Xfer container. More...
 
bool set (const label) const
 Is element set. More...
 
autoPtr< Tset (const label, T *)
 Set element. Return old element (can be NULL). More...
 
autoPtr< Tset (const label, const autoPtr< T > &)
 
autoPtr< Tset (const label, const tmp< T > &)
 
void reorder (const labelUList &)
 Reorders elements. Ordering does not have to be done in. More...
 
const Toperator[] (const label) const
 Return element const reference. More...
 
Toperator[] (const label)
 Return element reference. More...
 
const Toperator() (const label) const
 Return element const pointer. More...
 
PtrList< T > & operator= (const PtrList< T > &)
 Assignment. More...
 
iterator begin ()
 Return an iterator to begin traversing the PtrList. More...
 
iterator end ()
 Return an iterator to end traversing the PtrList. More...
 
const_iterator cbegin () const
 Return an const_iterator to begin traversing the PtrList. More...
 
const_iterator cend () const
 Return an const_iterator to end traversing the PtrList. More...
 
const_iterator begin () const
 Return an const_iterator to begin traversing the PtrList. More...
 
const_iterator end () const
 Return an const_iterator to end traversing the PtrList. More...
 

Static Public Member Functions

static void verbose (const bool on=true)
 Enable/disable verbose information about the progress. More...
 

Additional Inherited Members

- Public Types inherited from PtrList< T >
typedef T value_type
 Type of values the PtrList contains. More...
 
typedef Treference
 Type that can be used for storing into PtrList::value_type objects. More...
 
typedef const Tconst_reference
 Type that can be used for storing into constant PtrList::value_type. More...
 
- Protected Member Functions inherited from PtrList< T >
template<class INew >
void read (Istream &, const INew &inewt)
 Read from Istream using given Istream constructor class. More...
 

Detailed Description

A multi-block mesh generator.

Note
The vertices, cells and patches for filling the blocks are demand-driven.
Source files

Definition at line 58 of file blockMesh.H.

Constructor & Destructor Documentation

blockMesh ( const IOdictionary dict,
const word regionName 
)

Construct from IOdictionary.

Definition at line 41 of file blockMesh.C.

References dictionary::lookupOrDefault().

Here is the call graph for this function:

~blockMesh ( )

Destructor.

Definition at line 62 of file blockMesh.C.

Member Function Documentation

ClassName ( "blockMesh"  )
const Foam::pointField & blockPointField ( ) const

Reference to point field defining the block mesh.

these points have not been scaled by scaleFactor

Definition at line 76 of file blockMesh.C.

const Foam::polyMesh & topology ( ) const

Return the blockMesh topology as a polyMesh.

Definition at line 82 of file blockMesh.C.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

Referenced by blockMesh::patchDicts(), blockMesh::patchNames(), and blockMesh::writeTopology().

Here is the call graph for this function:

Here is the caller graph for this function:

const curvedEdgeList& edges ( ) const
inline

Return the curved edges.

Definition at line 180 of file blockMesh.H.

References blockMesh::cells(), blockMesh::clearGeom(), blockMesh::numZonedBlocks(), blockMesh::patchDicts(), blockMesh::patches(), blockMesh::patchNames(), blockMesh::points(), blockMesh::scaleFactor(), blockMesh::verbose(), and blockMesh::writeTopology().

Referenced by blockMesh::writeTopology().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar scaleFactor ( ) const

The scaling factor used to convert to metres.

Definition at line 112 of file blockMesh.C.

Referenced by blockMesh::edges().

Here is the caller graph for this function:

const Foam::pointField & points ( ) const

The points for the entire mesh.

these points have been scaled by scaleFactor

Definition at line 118 of file blockMesh.C.

References UList< T >::empty().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::cellShapeList & cells ( ) const

Return cell shapes list.

Definition at line 129 of file blockMesh.C.

References UList< T >::empty().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::faceListList & patches ( ) const

Return the patch face lists.

Definition at line 140 of file blockMesh.C.

References UList< T >::empty().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::PtrList< Foam::dictionary > patchDicts ( ) const

Get patch information from the topology mesh.

Definition at line 95 of file blockMesh.C.

References polyMesh::boundaryMesh(), forAll, PtrList< T >::size(), OStringStream::str(), and blockMesh::topology().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::wordList patchNames ( ) const

Return patch names.

Definition at line 151 of file blockMesh.C.

References polyMesh::boundaryMesh(), polyBoundaryMesh::names(), and blockMesh::topology().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label numZonedBlocks ( ) const

Number of blocks with specified zones.

Definition at line 169 of file blockMesh.C.

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

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearGeom ( )

Clear geometry (internal points, cells, boundaryPatches)

Definition at line 283 of file blockMeshCreate.C.

References forAll.

Referenced by blockMesh::edges().

Here is the caller graph for this function:

void verbose ( const bool  on = true)
static

Enable/disable verbose information about the progress.

Definition at line 70 of file blockMesh.C.

Referenced by blockMesh::edges().

Here is the caller graph for this function:

void writeTopology ( Ostream os) const

Writes edges of blockMesh in OBJ format.

Definition at line 185 of file blockMesh.C.

References Foam::e, blockMesh::edges(), primitiveMesh::edges(), edge::end(), Foam::endl(), forAll, polyMesh::points(), edge::start(), blockMesh::topology(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Referenced by blockMesh::edges().

Here is the call graph for this function:

Here is the caller graph for this function:


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