Public Member Functions | Static Public Attributes | List of all members
faMeshReconstructor Class Reference

A bare-bones reconstructor for finiteArea meshes when processor meshes are available (in parallel) but an equivalent serial faMesh is needed for reconstruction or decomposition. In these situations, a serial version of the faMesh is needed, but preferably without reconstructing the entire volume mesh. More...

Public Member Functions

 faMeshReconstructor (const faMesh &procMesh)
 
 faMeshReconstructor (const faMesh &procMesh, const labelUList &fvFaceProcAddressing)
 
 ~faMeshReconstructor ()
 
void clearGeom ()
 
const labelListpointProcAddressing () const noexcept
 
const labelListedgeProcAddressing () const noexcept
 
const labelListfaceProcAddressing () const noexcept
 
const labelListboundaryProcAddressing () const noexcept
 
const primitivePatchpatch () const
 
primitivePatchpatch ()
 
const faMeshmesh () const
 
void writeAddressing () const
 
void writeAddressing (const word &timeName) const
 
void writeMesh () const
 
void writeMesh (const word &timeName) const
 

Static Public Attributes

static int debug = 0
 

Detailed Description

A bare-bones reconstructor for finiteArea meshes when processor meshes are available (in parallel) but an equivalent serial faMesh is needed for reconstruction or decomposition. In these situations, a serial version of the faMesh is needed, but preferably without reconstructing the entire volume mesh.

It uses the finiteVolume faceProcAddressing in addition to the geometric information available from the underlying polyMesh.

The resulting equivalent faMesh can be used for basic operations, but caution should be exercised before attempting large operations.

Source files

Definition at line 60 of file faMeshReconstructor.H.

Constructor & Destructor Documentation

◆ faMeshReconstructor() [1/2]

faMeshReconstructor ( const faMesh procMesh)
explicit

Definition at line 526 of file faMeshReconstructor.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyMesh::meshSubDir, IOobject::MUST_READ, Foam::nl, IOobject::NO_WRITE, and UPstream::parRun().

Here is the call graph for this function:

◆ faMeshReconstructor() [2/2]

faMeshReconstructor ( const faMesh procMesh,
const labelUList fvFaceProcAddressing 
)

Definition at line 569 of file faMeshReconstructor.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and UPstream::parRun().

Here is the call graph for this function:

◆ ~faMeshReconstructor()

Definition at line 589 of file faMeshReconstructor.C.

Member Function Documentation

◆ clearGeom()

void clearGeom ( )

Definition at line 595 of file faMeshReconstructor.C.

◆ pointProcAddressing()

const labelList& pointProcAddressing ( ) const
inlinenoexcept

Definition at line 159 of file faMeshReconstructor.H.

◆ edgeProcAddressing()

const labelList& edgeProcAddressing ( ) const
inlinenoexcept

Definition at line 165 of file faMeshReconstructor.H.

◆ faceProcAddressing()

const labelList& faceProcAddressing ( ) const
inlinenoexcept

Definition at line 171 of file faMeshReconstructor.H.

◆ boundaryProcAddressing()

const labelList& boundaryProcAddressing ( ) const
inlinenoexcept

Definition at line 177 of file faMeshReconstructor.H.

◆ patch() [1/2]

Foam::primitivePatch & patch ( ) const

Definition at line 603 of file faMeshReconstructor.C.

◆ patch() [2/2]

primitivePatch& patch ( )

◆ mesh()

const Foam::faMesh & mesh ( ) const

Definition at line 625 of file faMeshReconstructor.C.

◆ writeAddressing() [1/2]

void writeAddressing ( ) const

Definition at line 636 of file faMeshReconstructor.C.

◆ writeAddressing() [2/2]

void writeAddressing ( const word timeName) const

Definition at line 642 of file faMeshReconstructor.C.

References faMesh::meshSubDir, IOobject::NO_READ, IOobject::NO_WRITE, IOobject::rename(), timeName, and regIOobject::write().

Here is the call graph for this function:

◆ writeMesh() [1/2]

void writeMesh ( ) const

Definition at line 675 of file faMeshReconstructor.C.

◆ writeMesh() [2/2]

void writeMesh ( const word timeName) const

Member Data Documentation

◆ debug

int debug = 0
static

Definition at line 134 of file faMeshReconstructor.H.


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