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

directMappedPatchBase Class Reference

Determines a mapping between patch face centres and mesh cell or face centres and processors they're on. More...

Inheritance diagram for directMappedPatchBase:
Collaboration diagram for directMappedPatchBase:

List of all members.


Classes

class  nearestEqOp

Public Types

enum  sampleMode { NEARESTCELL, NEARESTPATCHFACE, NEARESTFACE }
 Mesh items to sample. More...

Public Member Functions

 TypeName ("directMappedPatchBase")
 Runtime type information.
 directMappedPatchBase (const polyPatch &)
 Construct from components.
 directMappedPatchBase (const polyPatch &, const dictionary &)
 Construct from dictionary.
 directMappedPatchBase (const polyPatch &, const directMappedPatchBase &)
 Construct as copy, resetting patch.
virtual ~directMappedPatchBase ()
 Destructor.
void clearOut ()
const sampleModemode () const
 What to sample.
const wordsampleRegion () const
 Region to sample.
const wordsamplePatch () const
 Patch (only if NEARESTBOUNDARY).
const vectoroffset () const
 Offset vector (from patch faces to destination mesh objects).
const mapDistributemap () const
 Return reference to the parallel distribution map.
bool sameRegion () const
 Cached sampleRegion != mesh.name().
const polyMeshsampleMesh () const
 Get the region mesh.
const polyPatchsamplePolyPatch () const
 Get the patch on the region.
virtual void write (Ostream &) const
 Write as a dictionary.

Detailed Description

Determines a mapping between patch face centres and mesh cell or face centres and processors they're on.

Note:
Storage is not optimal. It temporary collects all (patch)face centres on all processors to keep the addressing calculation simple.
Source files

Definition at line 56 of file directMappedPatchBase.H.


Member Enumeration Documentation

enum sampleMode

Mesh items to sample.

Enumerator:
NEARESTCELL 
NEARESTPATCHFACE 
NEARESTFACE 

Definition at line 62 of file directMappedPatchBase.H.


Constructor & Destructor Documentation

directMappedPatchBase ( const polyPatch pp  ) 

Construct from components.

Definition at line 539 of file directMappedPatchBase.C.

directMappedPatchBase ( const polyPatch pp,
const dictionary dict 
)

Construct from dictionary.

Definition at line 554 of file directMappedPatchBase.C.

directMappedPatchBase ( const polyPatch pp,
const directMappedPatchBase dmp 
)

Construct as copy, resetting patch.

Definition at line 577 of file directMappedPatchBase.C.

~directMappedPatchBase (  )  [virtual]

Destructor.

Definition at line 594 of file directMappedPatchBase.C.


Member Function Documentation

TypeName ( "directMappedPatchBase"   ) 

Runtime type information.

const sampleMode& mode (  )  const [inline]

What to sample.

Definition at line 188 of file directMappedPatchBase.H.

const word& sampleRegion (  )  const [inline]

Region to sample.

Definition at line 194 of file directMappedPatchBase.H.

const word& samplePatch (  )  const [inline]

Patch (only if NEARESTBOUNDARY).

Definition at line 200 of file directMappedPatchBase.H.

const vector& offset (  )  const [inline]

Offset vector (from patch faces to destination mesh objects).

Definition at line 206 of file directMappedPatchBase.H.

const mapDistribute& map (  )  const [inline]

Return reference to the parallel distribution map.

Definition at line 212 of file directMappedPatchBase.H.

References autoPtr< T >::empty().

Here is the call graph for this function:

bool sameRegion (  )  const [inline]

Cached sampleRegion != mesh.name().

Definition at line 222 of file directMappedPatchBase.H.

const Foam::polyMesh & sampleMesh (  )  const

Get the region mesh.

Definition at line 608 of file directMappedPatchBase.C.

References autoPtr< T >::clear().

Here is the call graph for this function:

const Foam::polyPatch & samplePolyPatch (  )  const

Get the patch on the region.

Definition at line 617 of file directMappedPatchBase.C.

References polyPatch::boundaryMesh(), objectRegistry::lookupObject(), polyBoundaryMesh::mesh(), and objectRegistry::time().

Here is the call graph for this function:

void write ( Ostream os  )  const [virtual]

Write as a dictionary.

Reimplemented in directMappedPolyPatch, and directMappedWallPolyPatch.

Definition at line 636 of file directMappedPatchBase.C.


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