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 labelList & | pointProcAddressing () const noexcept |
const labelList & | edgeProcAddressing () const noexcept |
const labelList & | faceProcAddressing () const noexcept |
const labelList & | boundaryProcAddressing () const noexcept |
const primitivePatch & | patch () const |
primitivePatch & | patch () |
const faMesh & | mesh () 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 |
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 60 of file faMeshReconstructor.H.
|
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().
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().
~faMeshReconstructor | ( | ) |
Definition at line 589 of file faMeshReconstructor.C.
void clearGeom | ( | ) |
Definition at line 595 of file faMeshReconstructor.C.
|
inlinenoexcept |
Definition at line 159 of file faMeshReconstructor.H.
|
inlinenoexcept |
Definition at line 165 of file faMeshReconstructor.H.
|
inlinenoexcept |
Definition at line 171 of file faMeshReconstructor.H.
|
inlinenoexcept |
Definition at line 177 of file faMeshReconstructor.H.
Foam::primitivePatch & patch | ( | ) | const |
Definition at line 603 of file faMeshReconstructor.C.
primitivePatch& patch | ( | ) |
const Foam::faMesh & mesh | ( | ) | const |
Definition at line 625 of file faMeshReconstructor.C.
void writeAddressing | ( | ) | const |
Definition at line 636 of file faMeshReconstructor.C.
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().
void writeMesh | ( | ) | const |
Definition at line 675 of file faMeshReconstructor.C.
void writeMesh | ( | const word & | timeName | ) | const |
Definition at line 681 of file faMeshReconstructor.C.
References faMesh::boundary(), fileOperation::distributed(), Foam::fileHandler(), UPstream::master(), mesh, fileOperation::NewUncollated(), UPstream::parRun(), IOobject::rename(), and regIOobject::write().
|
static |
Definition at line 134 of file faMeshReconstructor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.