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
347 <<
"Valid types: " <<
flatOutput(available.sortedToc()) <<
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.
labelList findMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Extract list indices for all items with 'name()' that matches.
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")
bool good() const noexcept
True if next operation might succeed.
messageStream Info
Information stream (stdout output on master, null elsewhere)
instantList times() const
Search the case for valid time directories.
Extract name (as a word) from an object, typically using its name() method.
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,...
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fileName path() const
Return path.
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
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Operations on lists of strings.
Various functions to operate on Lists.
static const word prefix
The prefix to local: surfaces.
fileName objectPath() const
The complete path + object name.
const word & constant() const
Return constant name.
static bool isAbsolute(const std::string &str)