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) | |
Construct from components. More... | |
faMeshReconstructor (const faMesh &procMesh, const labelUList &fvFaceProcAddressing) | |
Construct from components. More... | |
~faMeshReconstructor () | |
Destructor. More... | |
void | clearGeom () |
const labelList & | pointProcAddressing () const noexcept |
Processor point addressing. More... | |
const labelList & | edgeProcAddressing () const noexcept |
Processor edge addressing. More... | |
const labelList & | faceProcAddressing () const noexcept |
Processor face addressing. More... | |
const labelList & | boundaryProcAddressing () const noexcept |
Processor boundary addressing. More... | |
const primitivePatch & | patch () const |
Serial equivalent patch. More... | |
primitivePatch & | patch () |
Serial equivalent patch. More... | |
const faMesh & | mesh () 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 Attributes | |
static int | debug = 0 |
Debug flag. More... | |
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.
Definition at line 64 of file faMeshReconstructor.H.
|
explicit |
Construct from components.
Definition at line 531 of file faMeshReconstructor.C.
References Foam::exit(), polyMesh::facesInstance(), Foam::FatalError, FatalErrorInFunction, faMesh::mesh(), polyMesh::meshSubDir, IOobject::MUST_READ, Foam::nl, IOobject::NO_WRITE, and UPstream::parRun().
faMeshReconstructor | ( | const faMesh & | procMesh, |
const labelUList & | fvFaceProcAddressing | ||
) |
Construct from components.
Definition at line 574 of file faMeshReconstructor.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and UPstream::parRun().
~faMeshReconstructor | ( | ) |
Destructor.
Definition at line 595 of file faMeshReconstructor.C.
void clearGeom | ( | ) |
Definition at line 601 of file faMeshReconstructor.C.
|
inlinenoexcept |
Processor point addressing.
Definition at line 163 of file faMeshReconstructor.H.
|
inlinenoexcept |
Processor edge addressing.
Definition at line 169 of file faMeshReconstructor.H.
|
inlinenoexcept |
Processor face addressing.
Definition at line 175 of file faMeshReconstructor.H.
|
inlinenoexcept |
Processor boundary addressing.
Definition at line 181 of file faMeshReconstructor.H.
const Foam::primitivePatch & patch | ( | ) | const |
Serial equivalent patch.
Definition at line 609 of file faMeshReconstructor.C.
Foam::primitivePatch & patch | ( | ) |
Serial equivalent patch.
Definition at line 620 of file faMeshReconstructor.C.
const Foam::faMesh & mesh | ( | ) | const |
Serial equivalent faMesh.
Definition at line 631 of file faMeshReconstructor.C.
void writeAddressing | ( | ) | const |
Write proc addressing at the polyMesh faceInstances time.
Definition at line 642 of file faMeshReconstructor.C.
void writeAddressing | ( | const word & | timeName | ) | const |
Write proc addressing at the given time.
Definition at line 648 of file faMeshReconstructor.C.
References faMesh::meshSubDir, IOobject::NO_READ, IOobject::NO_WRITE, IOobject::rename(), timeName, and regIOobject::write().
void writeMesh | ( | ) | const |
Write equivalent mesh information at the polyMesh faceInstances time.
Definition at line 681 of file faMeshReconstructor.C.
void writeMesh | ( | const word & | timeName | ) | const |
Write equivalent mesh information at the given time.
Definition at line 687 of file faMeshReconstructor.C.
References faMesh::boundary(), fileOperation::distributed(), Foam::fileHandler(), io(), splitCell::master(), mesh, fileOperation::NewUncollated(), UPstream::parRun(), IOobject::rename(), and regIOobject::write().
|
static |
Debug flag.
Definition at line 138 of file faMeshReconstructor.H.