52 while ((
line.empty() ||
line[0] == comment) && is.
good());
59Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::localMeshFileName
69 /
name +
"." + nativeExt
74Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::findMeshInstance
80 fileName localName = localMeshFileName(meshName);
88 for (instanceI = ts.
size()-1; instanceI >= 0; --instanceI)
101 for (label i = instanceI; i >= 0; --i)
114Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::findMeshFile
120 fileName localName = localMeshFileName(meshName);
128 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
130 if (ts[instanceI].value() <= t.timeOutputValue())
141 for (label i = instanceI; i >= 0; --i)
143 fileName testName(t.path()/ts[i].name()/localName);
153 return t.path()/t.constant()/localName;
161 const word& fileType,
163 const char* functionName
166 if (available.
found(fileType))
172 Info<<
"Unknown file type";
176 Info<<
" for " << functionName;
179 Info<<
" : " << fileType <<
nl
Various functions to operate on Lists.
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
bool found(const Key &key) const
Return true if hashed entry is found in table.
bool good() const noexcept
True if next operation might succeed.
Generic input stream using a standard (STL) stream.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
instantList times() const
Search the case for valid time directories.
const word & constant() const
Return constant name.
scalar timeOutputValue() const
Return current time value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName path() const
Return path.
void size(const label n)
Older name for setAddressableSize.
bool checkSupport() const
Check if the patch is fully supported.
A class for handling file names.
static std::string name(const std::string &str)
Return basename (part beyond last /), including its extension.
A class for handling character strings derived from std::string.
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
static const word prefix
The prefix to local: surfaces.
static word defaultName
The default surface name: default.
A class for handling words, derived from Foam::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< instant > instantList
List of instants.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist as a FILE in the file system?
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)