71 if (!tableName.empty())
73 lookup.insert(tableId, tableName);
90 const word caseName =
os.name().stem();
93 <<
"! " <<
pts.size() <<
" points, " << nFaces <<
" faces" <<
nl 94 <<
"! case " << caseName <<
nl 95 <<
"! ------------------------------" <<
nl;
99 os <<
"ctable " << zoneI + 1 <<
" shell" <<
" ,,,,,," <<
nl 100 <<
"ctname " << zoneI + 1 <<
" " 101 << zoneLst[zoneI].name() <<
nl;
104 os <<
"! ------------------------------" <<
nl 105 <<
"*set icvo mxv - 1" <<
nl 106 <<
"vread " << caseName <<
".vrt icvo,,,coded" <<
nl 107 <<
"cread " << caseName <<
".cel icvo,,,add,coded" <<
nl
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
constexpr char nl
The newline '\n' character (0x0a)
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
Lookup type of boundary radiation properties.
Sub-ranges of a string with a structure similar to std::match_results, but without the underlying reg...
#define forAll(list, i)
Loop across all elements in list.
StringType str(size_t pos) const
Get element at pos, converted to a string type.
A class for handling words, derived from Foam::string.
static std::string dateTime()
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss)...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
OBJstream os(runTime.globalPath()/outputName)
bool match(const std::string &text) const
True if the regex matches the entire text.
Wrapper around POSIX extended regular expressions with some additional prefix-handling. The prefix-handling is loosely oriented on PCRE regular expressions and provides a simple means of tuning the expressions.
Generic input stream using a standard (STL) stream.
bool good() const noexcept
True if next operation might succeed.
A HashTable to objects of type <T> with a label key.