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);
107 for (instanceI = ts.
size()-1; instanceI >= 0; --instanceI)
120 for (label i = instanceI; i >= 0; --i)
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
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.
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
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
static bool isAbsolute(const std::string &str)
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.
A class for handling character strings derived from std::string.
string & expand(const bool allowEmpty=false)
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.
const polyBoundaryMesh & patches
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
labelList findMatching(const StringListType &input, const wordRes::filter &pred, AccessOp aop=identityOp())
Return ids for items with matching names.
const fileOperation & fileHandler()
Get current file handler.
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?
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.
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.