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 faMeshReconstructor &)=delete
 No copy construct. More...
 
void operator= (const faMeshReconstructor &)=delete
 No copy assignment. More...
 
 faMeshReconstructor (const faMesh &procMesh, IOobjectOption::readOption readVolProcAddr=IOobjectOption::MUST_READ)
 Construct from components. More...
 
 faMeshReconstructor (const faMesh &procMesh, const labelUList &fvFaceProcAddressing)
 Construct from components. More...
 
 ~faMeshReconstructor ()
 Destructor. More...
 
void clearGeom ()
 
bool good () const noexcept
 True if no construct errors encountered. More...
 
bool noEdgeEncoding () const noexcept
 Is edge encoding disabled. More...
 
bool noEdgeEncoding (bool on) noexcept
 Change the edge encoding flag. More...
 
const labelListpointProcAddressing () const noexcept
 Processor point addressing. More...
 
const labelListedgeProcAddressing () const noexcept
 Processor edge addressing. More...
 
const labelListfaceProcAddressing () const noexcept
 Processor face addressing. More...
 
const labelListboundaryProcAddressing () const noexcept
 Processor boundary addressing. More...
 
const primitivePatchpatch () const
 Serial equivalent patch. More...
 
primitivePatchpatch ()
 Serial equivalent patch. More...
 
const faMeshmesh () const
 Serial equivalent faMesh. More...
 
void writeAddressing () const
 Write proc addressing at the polyMesh faceInstances time. More...
 
void writeAddressing (const word &timeName) const
 Write proc addressing at the given time. More...
 
void writeMesh () const
 Write equivalent mesh information at the polyMesh faceInstances time. More...
 
void writeMesh (const word &timeName) const
 Write equivalent mesh information at the given time. More...
 

Static Public Member Functions

static bool allowEdgeEncoding () noexcept
 The enable/disable state for allowing encoding of edgeProcAddressing edge flips (default: true) More...
 
static bool allowEdgeEncoding (bool on) noexcept
 Set enable/disable state for allowing edge flip encoding. More...
 
static void writeAddressing (const IOobject &io, const labelUList &faBoundaryProcAddr, const labelUList &faFaceProcAddr, const labelUList &faPointProcAddr, const labelUList &faEdgeProcAddr, bool withoutEdgeEncoding=false)
 Write proc addressing. More...
 
static void writeMesh (const word &timeName, const faMesh &fullMesh, const labelUList &singlePatchFaceLabels)
 Write mesh information. More...
 

Static Public Attributes

static int debug
 Debug flag. More...
 

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/3]

No copy construct.

◆ faMeshReconstructor() [2/3]

faMeshReconstructor ( const faMesh procMesh,
IOobjectOption::readOption  readVolProcAddr = IOobjectOption::MUST_READ 
)
explicit

Construct from components.

◆ faMeshReconstructor() [3/3]

faMeshReconstructor ( const faMesh procMesh,
const labelUList fvFaceProcAddressing 
)

Construct from components.

◆ ~faMeshReconstructor()

Destructor.

Member Function Documentation

◆ allowEdgeEncoding() [1/2]

static bool allowEdgeEncoding ( )
inlinestaticnoexcept

The enable/disable state for allowing encoding of edgeProcAddressing edge flips (default: true)

Definition at line 192 of file faMeshReconstructor.H.

◆ allowEdgeEncoding() [2/2]

static bool allowEdgeEncoding ( bool  on)
inlinestaticnoexcept

Set enable/disable state for allowing edge flip encoding.

Definition at line 200 of file faMeshReconstructor.H.

◆ operator=()

void operator= ( const faMeshReconstructor )
delete

No copy assignment.

◆ clearGeom()

void clearGeom ( )

◆ good()

bool good ( ) const
inlinenoexcept

True if no construct errors encountered.

Definition at line 256 of file faMeshReconstructor.H.

◆ noEdgeEncoding() [1/2]

bool noEdgeEncoding ( ) const
inlinenoexcept

Is edge encoding disabled.

Definition at line 261 of file faMeshReconstructor.H.

◆ noEdgeEncoding() [2/2]

bool noEdgeEncoding ( bool  on)
inlinenoexcept

Change the edge encoding flag.

Definition at line 266 of file faMeshReconstructor.H.

◆ pointProcAddressing()

const labelList& pointProcAddressing ( ) const
inlinenoexcept

Processor point addressing.

Definition at line 276 of file faMeshReconstructor.H.

◆ edgeProcAddressing()

const labelList& edgeProcAddressing ( ) const
inlinenoexcept

Processor edge addressing.

Definition at line 284 of file faMeshReconstructor.H.

◆ faceProcAddressing()

const labelList& faceProcAddressing ( ) const
inlinenoexcept

Processor face addressing.

Definition at line 292 of file faMeshReconstructor.H.

◆ boundaryProcAddressing()

const labelList& boundaryProcAddressing ( ) const
inlinenoexcept

Processor boundary addressing.

Definition at line 300 of file faMeshReconstructor.H.

◆ 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]

static void writeAddressing ( const IOobject io,
const labelUList faBoundaryProcAddr,
const labelUList faFaceProcAddr,
const labelUList faPointProcAddr,
const labelUList faEdgeProcAddr,
bool  withoutEdgeEncoding = false 
)
static

Write proc addressing.

Parameters
withoutEdgeEncodingWithout edge encoding (legacy)

◆ 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.

◆ writeMesh() [1/3]

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

Write mesh information.

◆ 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.

Member Data Documentation

◆ debug

int debug
static

Debug flag.

Definition at line 183 of file faMeshReconstructor.H.


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