53 while ((
line.empty() ||
line[0] == comment) && is.
good());
78Foam::fileName Foam::fileFormats::surfaceFormatsCore::localMeshFileName
88 /
name +
"." + nativeExt
93Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshInstance
99 fileName localName = localMeshFileName(surfName);
105 label instanceI = (ts.size()-1);
107 for (; instanceI >= 0; --instanceI)
109 if (ts[instanceI] <= t.timeOutputValue())
118 for (label i = instanceI; i >= 0; --i)
120 if (
isFile(t.path()/ts[i].name()/localName))
130Foam::fileName Foam::fileFormats::surfaceFormatsCore::findMeshFile
136 fileName localName = localMeshFileName(surfName);
142 label instanceI = (ts.size()-1);
144 for (; instanceI >= 0; --instanceI)
146 if (ts[instanceI] <= t.timeOutputValue())
155 for (label i = instanceI; i >= 0; --i)
157 fileName testName(t.path()/ts[i].name()/localName);
166 return t.path()/t.constant()/localName;
229 fName = relativeFilePath(
io, fName, isGlobal);
266 <<
"Cannot find surface starting from "
267 <<
io.objectPath() <<
nl
287 fName = relativeFilePath(
io, rawFName, isGlobal);
292 <<
"Cannot find surface " << rawFName
293 <<
" starting from " <<
io.objectPath() <<
nl
309 <<
"Cannot find surface starting from "
310 <<
io.objectPath() <<
nl
322 const word& fileType,
324 const char* functionName
327 if (available.found(fileType))
333 Info<<
"Unknown file type";
337 Info<<
" for " << functionName;
340 Info<<
" : " << fileType <<
nl
341 <<
"Valid types: " <<
flatOutput(available.sortedToc()) <<
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
Same as contains().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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 noexcept
Return constant name.
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion).
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
fileName path() const
The path for the case = rootPath/caseName.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
static std::string name(const std::string &str)
Return basename (part beyond last /), including its extension.
static bool isAbsolute(const std::string &str)
Return true if filename starts with a '/' or '\' or (windows-only) with a filesystem-root.
A class for handling character strings derived from std::string.
string & expand(const bool allowEmpty=false)
Inplace expand initial tags, tildes, and all occurrences of environment variables as per stringOps::e...
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 List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
const polyBoundaryMesh & patches
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
labelList findMatching(const StringListType &input, const wordRes::filter &pred, AccessOp aop=identityOp())
Return ids for items with matching names.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
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?
List< label > labelList
A List of labels.
List< surfZone > surfZoneList
List of surfZone.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler().
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?
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
Operations on lists of strings.
Extract name (as a word) from an object, typically using its name() method.