Loading...
Searching...
No Matches
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...

#include <faMeshReconstructor.H>

Public Member Functions

 faMeshReconstructor (const faMesh &procMesh, IOobjectOption::readOption readVolProcAddr=IOobjectOption::MUST_READ)
 Construct from components.
 faMeshReconstructor (const faMesh &procMesh, const labelUList &fvFaceProcAddressing)
 Construct from components.
 ~faMeshReconstructor ()
 Destructor.
void clearGeom ()
bool good () const noexcept
 True if no construct errors encountered.
const labelListpointProcAddressing () const noexcept
 Processor point addressing.
const labelListedgeProcAddressing () const noexcept
 Processor edge addressing.
const labelListfaceProcAddressing () const noexcept
 Processor face addressing.
const labelListboundaryProcAddressing () const noexcept
 Processor boundary addressing.
const primitivePatchpatch () const
 Serial equivalent patch.
primitivePatchpatch ()
 Serial equivalent patch.
const faMeshmesh () const
 Serial equivalent faMesh.
void writeAddressing () const
 Write proc addressing at the polyMesh faceInstances time.
void writeAddressing (const word &timeName) const
 Write proc addressing at the given time.
void writeMesh () const
 Write equivalent mesh information at the polyMesh faceInstances time.
void writeMesh (const word &timeName) const
 Write equivalent mesh information at the given time.

Static Public Member Functions

static void writeAddressing (const IOobject &io, const labelUList &faBoundaryProcAddr, const labelUList &faFaceProcAddr, const labelUList &faPointProcAddr, const labelUList &faEdgeProcAddr)
 Write proc addressing.
static void writeMesh (const word &timeName, const faMesh &fullMesh, const labelUList &singlePatchFaceLabels)
 Write mesh information.

Static Public Attributes

static int debug
 Debug flag.

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,
IOobjectOption::readOption readVolProcAddr = IOobjectOption::MUST_READ )
explicit

Construct from components.

References IOobjectOption::MUST_READ.

◆ faMeshReconstructor() [2/2]

faMeshReconstructor ( const faMesh & procMesh,
const labelUList & fvFaceProcAddressing )

Construct from components.

◆ ~faMeshReconstructor()

~faMeshReconstructor ( )

Destructor.

Member Function Documentation

◆ clearGeom()

void clearGeom ( )

◆ good()

bool good ( ) const
inlinenoexcept

True if no construct errors encountered.

Definition at line 217 of file faMeshReconstructor.H.

References Foam::noexcept.

◆ pointProcAddressing()

const labelList & pointProcAddressing ( ) const
inlinenoexcept

Processor point addressing.

Definition at line 222 of file faMeshReconstructor.H.

References Foam::noexcept.

◆ edgeProcAddressing()

const labelList & edgeProcAddressing ( ) const
inlinenoexcept

Processor edge addressing.

Definition at line 230 of file faMeshReconstructor.H.

References Foam::noexcept.

◆ faceProcAddressing()

const labelList & faceProcAddressing ( ) const
inlinenoexcept

Processor face addressing.

Definition at line 238 of file faMeshReconstructor.H.

References Foam::noexcept.

◆ boundaryProcAddressing()

const labelList & boundaryProcAddressing ( ) const
inlinenoexcept

Processor boundary addressing.

Definition at line 246 of file faMeshReconstructor.H.

References Foam::noexcept.

◆ patch() [1/2]

const primitivePatch & patch ( ) const

Serial equivalent patch.

◆ patch() [2/2]

primitivePatch & patch ( )

Serial equivalent patch.

◆ mesh()

const faMesh & mesh ( ) const

Serial equivalent faMesh.

◆ writeAddressing() [1/3]

void writeAddressing ( const IOobject & io,
const labelUList & faBoundaryProcAddr,
const labelUList & faFaceProcAddr,
const labelUList & faPointProcAddr,
const labelUList & faEdgeProcAddr )
static

Write proc addressing.

References io.

◆ writeAddressing() [2/3]

void writeAddressing ( ) const

Write proc addressing at the polyMesh faceInstances time.

◆ writeAddressing() [3/3]

void writeAddressing ( const word & timeName) const

Write proc addressing at the given time.

References timeName.

◆ writeMesh() [1/3]

void writeMesh ( const word & timeName,
const faMesh & fullMesh,
const labelUList & singlePatchFaceLabels )
static

Write mesh information.

References timeName.

◆ writeMesh() [2/3]

void writeMesh ( ) const

Write equivalent mesh information at the polyMesh faceInstances time.

◆ writeMesh() [3/3]

void writeMesh ( const word & timeName) const

Write equivalent mesh information at the given time.

References timeName.

Member Data Documentation

◆ debug

int debug
static

Debug flag.

Definition at line 179 of file faMeshReconstructor.H.


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