A collection of tools for operating on an faMesh. More...
Public Member Functions | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | flattenEdgeField (const GeometricField< Type, faePatchField, edgeMesh > &fld, const bool primitiveOrdering) |
Static Public Member Functions | |
static void | unregisterMesh (const faMesh &mesh) |
Unregister the faMesh from its associated polyMesh to prevent triggering on polyMesh changes etc. More... | |
static void | forceDemandDriven (faMesh &mesh) |
Force creation of everything that might vaguely be used by patches. More... | |
static autoPtr< faMesh > | newMesh (const IOobject &io, const polyMesh &pMesh, const bool masterOnlyReading, const bool verbose=false) |
Read mesh or create dummy mesh (0 faces, >0 patches). More... | |
static autoPtr< faMesh > | loadOrCreateMesh (const IOobject &io, const polyMesh &pMesh, const bool decompose, const bool verbose=false) |
static autoPtr< faMesh > | loadOrCreateMesh (const IOobject &io, const polyMesh &pMesh, refPtr< fileOperation > &readHandler, const bool verbose=false) |
static mapDistributePolyMesh | readProcAddressing (const faMesh &mesh, const autoPtr< faMesh > &baseMeshPtr) |
Read decompose/reconstruct addressing. More... | |
static void | writeProcAddressing (const faMesh &mesh, const mapDistributePolyMesh &faDistMap, const bool decompose, refPtr< fileOperation > &writeHandler, const faMesh *procMesh=nullptr) |
Write decompose/reconstruct addressing. More... | |
template<class Type > | |
static tmp< Field< Type > > | flattenEdgeField (const GeometricField< Type, faePatchField, edgeMesh > &fld, const bool primitiveOrdering=false) |
Flatten an edge field into linear addressing. More... | |
static void | printMeshChecks (const faMesh &mesh, const int verbose=1) |
Report mesh information. More... | |
A collection of tools for operating on an faMesh.
Definition at line 57 of file faMeshTools.H.
|
static |
Unregister the faMesh from its associated polyMesh to prevent triggering on polyMesh changes etc.
Definition at line 33 of file faMeshTools.C.
References objectRegistry::checkOut(), and mesh.
|
static |
Force creation of everything that might vaguely be used by patches.
This is fairly horrible.
Definition at line 45 of file faMeshTools.C.
References polyMesh::globalData(), and mesh.
|
static |
Read mesh or create dummy mesh (0 faces, >0 patches).
Works in two modes according to masterOnlyReading: true : create a dummy mesh for all procs false: checks locally for mesh directories and only creates dummy mesh if not present
Definition at line 66 of file faMeshTools.C.
References fvMesh::boundary(), Pstream::broadcasts(), Foam::constant::electromagnetic::e, UPtrList< T >::empty(), HashTable< T, Key, Hash >::empty(), faceLabels(), IOobject::fileModificationChecking, Time::findInstance(), forAll, polyMesh::globalData(), dynamicFvMesh::init(), IOobject::instance(), io(), Foam::isDir(), UPstream::master(), mesh, faMesh::meshDir(), meshPtr, IOobjectOption::MUST_READ, Foam::name(), autoPtr< T >::New(), faPatch::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, nPatches, word::null, UPstream::parRun(), patches, Time::path(), IOobjectOption::READ_IF_PRESENT, IOobjectOption::readOpt(), PtrList< T >::resize(), Foam::returnReduceOr(), PtrList< T >::set(), dictionary::set(), UPtrList< T >::size(), IOobject::time(), IOobject::timeStamp, Foam::type(), and UPstream::worldComm.
|
static |
Definition at line 576 of file faMeshTools.C.
References io().
|
static |
io | The IOobject describes the base polyMesh |
readHandler | Non-null reference if a mesh exists on given processor |
Definition at line 596 of file faMeshTools.C.
References io().
|
static |
Read decompose/reconstruct addressing.
Definition at line 221 of file faMeshToolsProcAddr.C.
References Foam::createReconstructMap(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, mesh, Foam::nl, IOobject::objectRelPath(), UList< T >::size(), and Foam::Zero.
|
static |
Write decompose/reconstruct addressing.
mesh | |
faDistMap | |
decompose | running in decompose vs reconstruct mode |
writeHandler | file handler |
procMesh | (optional) processor mesh in reconstruct mode |
Definition at line 301 of file faMeshToolsProcAddr.C.
References mapDistributePolyMesh::cellMap(), mapDistributeBase::constructSize(), mapDistribute::distribute(), mapDistributePolyMesh::distributePointData(), Foam::endl(), Foam::faceMap(), mapDistributePolyMesh::faceMap(), Foam::fileHandler, Foam::identity(), Foam::Info, mesh, mapDistributePolyMesh::nOldCells(), mapDistributePolyMesh::nOldFaces(), mapDistributePolyMesh::nOldPoints(), IOobject::objectRelPath(), mapDistributePolyMesh::oldPatchSizes(), mapDistributePolyMesh::patchMap(), mapDistributePolyMesh::pointMap(), IOobject::rename(), mapDistribute::reverseDistribute(), UList< T >::size(), faMesh::thisDb(), WarningInFunction, regIOobject::write(), and Foam::Zero.
|
static |
Flatten an edge field into linear addressing.
Optionally use primitive patch edge ordering
|
static |
Report mesh information.
Definition at line 29 of file faMeshToolsChecks.C.
References Foam::flatOutput(), Foam::gMinMax(), Foam::Info, Foam::MULES::limit(), mesh, Foam::minMax(), Foam::nl, nPatches, nPoints, p, patches, Foam::reduce(), returnReduce(), and Foam::sum().
Foam::tmp<Foam::Field<Type> > flattenEdgeField | ( | const GeometricField< Type, faePatchField, edgeMesh > & | fld, |
const bool | primitiveOrdering | ||
) |
Definition at line 27 of file faMeshToolsTemplates.C.
References fld, forAll, mesh, Foam::New(), UList< T >::size(), and Foam::Zero.