67 const label tableId =
readLabel(groups.str(1));
70 if (!tableName.empty())
72 lookup.insert(tableId, tableName);
84 const UList<point>&
pts,
86 const UList<surfZone>& zoneLst
89 const word caseName =
os.name().stem();
92 <<
"! " <<
pts.size() <<
" points, " << nFaces <<
" faces" <<
nl
93 <<
"! case " << caseName <<
nl
94 <<
"! ------------------------------" <<
nl;
98 os <<
"ctable " << zoneI + 1 <<
" shell" <<
" ,,,,,," <<
nl
99 <<
"ctname " << zoneI + 1 <<
" "
100 << zoneLst[zoneI].name() <<
nl;
103 os <<
"! ------------------------------" <<
nl
104 <<
"*set icvo mxv - 1" <<
nl
105 <<
"vread " << caseName <<
".vrt icvo,,,coded" <<
nl
106 <<
"cread " << caseName <<
".cel icvo,,,add,coded" <<
nl
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.
A HashTable to objects of type <T> with a label key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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)...
Lookup type of boundary radiation properties.
std::smatch results_type
Type for matches.
bool match(const std::string &text) const
True if the regex matches the entire text.
A class for handling words, derived from Foam::string.
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
OBJstream os(runTime.globalPath()/outputName)
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
regExpCxx regExp
Selection of preferred regular expression implementation.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.