Go to the documentation of this file.
53 while ((
line.empty() ||
line[0] == comment) && is.
good());
78 Foam::fileName Foam::fileFormats::surfaceFormatsCore::localMeshFileName
93 Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshInstance
99 fileName localName = localMeshFileName(surfName);
107 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
120 for (label i = instanceI; i >= 0; --i)
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 "
293 fName = relativeFilePath(io, rawFName, isGlobal);
298 <<
"Cannot find surface " << rawFName
315 <<
"Cannot find surface starting from "
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
scalar timeOutputValue() const
Return current time value.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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?
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName localFilePath(const word &typeName, const bool search=true) const
Helper for filePath that searches locally.
A class for handling words, derived from Foam::string.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
A class for handling file names.
virtual fileName filePath(const bool checkGlobal, const IOobject &, const word &typeName, const bool search=true) const =0
Search for an object. checkGlobal : also check undecomposed case.
Generic input stream using a standard (STL) stream.
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist as a FILE in the file system?
const fileOperation & fileHandler()
Get current file handler.
A class for handling character strings derived from std::string.
List< instant > instantList
List of instants.
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
instantList times() const
Search the case for valid time directories.
Extract name (as a word) from an object, typically using its name() method.
labelList findMatching(const StringListType &input, const wordRes &whitelist, const wordRes &blacklist=wordRes(), AccessOp aop=noOp())
Return ids for items with matching names.
fileName globalFilePath(const word &typeName, const bool search=true) const
Helper for filePath that searches up if in parallel.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fileName path() const
Return path.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
static word defaultName
The default surface name: default.
string & expand(const bool allowEmpty=false)
A List of wordRe with additional matching capabilities.
static const word null
An empty word.
const polyBoundaryMesh & patches
Operations on lists of strings.
Various functions to operate on Lists.
static const word prefix
The prefix to local: surfaces.
bool good() const
Return true if next operation might succeed.
fileName objectPath() const
The complete path + object name.
bool found(const Key &key) const
Return true if hashed entry is found in table.
const word & constant() const
Return constant name.
static bool isAbsolute(const std::string &str)
Return true if string starts with a '/'.