34bool Foam::faMesh::hasSystemFiles
45 const fileName relativeDir
50 DebugInfo<<
"check system files: " << relativeDir <<
nl;
52 IOobject systemIOobject
55 pMesh.time().system(),
65 bool looksValid =
true;
78 systemIOobject.resetHeader(expect);
103bool Foam::faMesh::hasMeshFiles
105 const word& areaName,
119 bool looksValid =
true;
129 DebugInfo<<
"check mesh files: " << relativeDir <<
nl;
136 const word instance = pMesh.time().findInstance
139 pMesh.regionName()/relativeDir,
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& areaName,
197 const polyMesh& pMesh
200 if (faMesh::hasMeshFiles(areaName, pMesh))
211 const polyMesh& pMesh
@ NO_REGISTER
Do not request registration (bool: false).
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static void reduceAnd(bool &value, const int communicator=worldComm)
Logical (and) reduction (MPI_AllReduce).
@ broadcast
broadcast [MPI]
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir).
static autoPtr< faMesh > TryNew(const word &areaName, const polyMesh &pMesh)
Read construction from polyMesh if all files are available.
static const word & prefix() noexcept
The prefix to the parent registry name: finite-area.
A class for handling file names.
An encapsulation of filesystem-related operations.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
const word & regionName() const
The mesh region name or word::null if polyMesh::defaultRegion.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define DebugInfo
Report an information message using Foam::Info.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler().
Pair< word > wordPair
A pair of words.
constexpr char nl
The newline '\n' character (0x0a).