78 Foam::fileName Foam::fileFormats::surfaceFormatsCore::localMeshFileName
88 /
name +
"." + nativeExt
93 Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshInstance
99 fileName localName = localMeshFileName(surfName);
107 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
109 if (ts[instanceI].value() <= t.timeOutputValue())
120 for (label i = instanceI; i >= 0; --i)
122 if (
isFile(t.path()/ts[i].name()/localName))
133 Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshFile
139 fileName localName = localMeshFileName(surfName);
147 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
149 if (ts[instanceI].value() <= t.timeOutputValue())
160 for (label i = instanceI; i >= 0; --i)
162 fileName testName(t.path()/ts[i].name()/localName);
172 return t.path()/t.constant()/localName;
235 fName = relativeFilePath(
io, fName, isGlobal);
272 <<
"Cannot find surface starting from " 273 <<
io.objectPath() <<
nl 293 fName = relativeFilePath(
io, rawFName, isGlobal);
298 <<
"Cannot find surface " << rawFName
299 <<
" starting from " <<
io.objectPath() <<
nl 315 <<
"Cannot find surface starting from " 316 <<
io.objectPath() <<
nl 328 const word& fileType,
330 const char* functionName
333 if (available.
found(fileType))
339 Info<<
"Unknown file type";
343 Info<<
" for " << functionName;
346 Info<<
" : " << fileType <<
nl
static const word prefix
The prefix to local: surfaces.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool found(const Key &key) const
Same as contains()
constexpr char nl
The newline '\n' character (0x0a)
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
Operations on lists of strings.
static bool isAbsolute(const std::string &str)
Return true if filename starts with a '/' or '\' or (windows-only) with a filesystem-root.
Extract name (as a word) from an object, typically using its name() method.
Various functions to operate on Lists.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
A class for handling words, derived from Foam::string.
labelList findMatching(const StringListType &input, const wordRes::filter &pred, AccessOp aop=identityOp())
Return ids for items with matching names.
static const word null
An empty word.
bool exists(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
A List of wordRe with additional matching capabilities.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist as a FILE in the file system?
Generic input stream using a standard (STL) stream.
string & expand(const bool allowEmpty=false)
Inplace expand initial tags, tildes, and all occurrences of environment variables as per stringOps::e...
bool good() const noexcept
True if next operation might succeed.
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
const polyBoundaryMesh & patches
static word defaultName
The default surface name: default.
messageStream Info
Information stream (stdout output on master, null elsewhere)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
List< instant > instantList
List of instants.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A class for handling character strings derived from std::string.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.