34 bool Foam::faMesh::hasSystemFiles
45 const fileName relativeDir
50 DebugInfo<<
"check system files: " << relativeDir <<
nl;
55 pMesh.time().system(),
65 bool looksValid =
true;
78 systemIOobject.resetHeader(expect);
103 bool Foam::faMesh::hasMeshFiles
105 const word& meshName,
106 const polyMesh& pMesh
119 bool looksValid =
true;
122 const fileName relativeDir
129 DebugInfo<<
"check mesh files: " << relativeDir <<
nl;
136 const word instance = pMesh.time().findInstance
139 pMesh.regionName()/relativeDir,
144 IOobject meshIOobject
160 {
"faceLabels",
"labelList"},
161 {
"faBoundary",
"faBoundaryMesh"}
165 const word& dataFile = expect.first();
166 const word& dataClass = expect.second();
168 meshIOobject.resetHeader(dataFile);
196 const word& meshName,
197 const polyMesh& pMesh
200 if (faMesh::hasMeshFiles(meshName, pMesh))
211 const polyMesh& pMesh
const word & regionName() const
The mesh region name or word::null if polyMesh::defaultRegion.
constexpr char nl
The newline '\n' character (0x0a)
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
Ignore writing from objectRegistry::writeObject()
static void broadcast(Type &value, const label comm=UPstream::worldComm)
Broadcast content (contiguous or non-contiguous) to all communicator ranks. Does nothing in non-paral...
static void reduceAnd(bool &value, const label communicator=worldComm)
Logical (and) reduction (MPI_AllReduce)
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
static word defaultRegion
Return the default region name.
Reading is optional [identical to LAZY_READ].
static const word null
An empty word.
Pair< word > wordPair
A pair of words.
#define DebugInfo
Report an information message using Foam::Info.
static autoPtr< faMesh > TryNew(const word &meshName, const polyMesh &pMesh)
Read construction from polyMesh if all files are available.
IOobject(const IOobject &)=default
Copy construct.
bool found(const word &name, bool recursive=false) const
Same as contains()
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
static const word & prefix() noexcept
The prefix to the parent registry name: finite-area.
Do not request registration (bool: false)