59 if (ctnameRE.
match(line, groups))
61 const label tableId = atoi(groups[0].c_str());
64 string::stripInvalid<word>(groups[1]);
66 if (!groups[1].empty())
68 lookup.
insert(tableId, groups[1]);
87 os <<
"! STAR-CD file written " << clock::dateTime().c_str() <<
nl 88 <<
"! " << pointLst.
size() <<
" points, " << nFaces <<
" faces" <<
nl 89 <<
"! case " << caseName <<
nl 90 <<
"! ------------------------------" <<
nl;
94 os <<
"ctable " << zoneI + 1 <<
" shell" <<
" ,,,,,," << nl
95 <<
"ctname " << zoneI + 1 <<
" " 96 << zoneLst[zoneI].name() <<
nl;
99 os <<
"! ------------------------------" << nl
100 <<
"*set icvo mxv - 1" << nl
101 <<
"vread " << caseName <<
".vrt icvo,,,coded" << nl
102 <<
"cread " << caseName <<
".cel icvo,,,add,coded" << nl
word name() const
Return file name (part beyond last /)
static void writeCase(Ostream &, const pointField &, const label nFaces, const UList< surfZone > &)
bool insert(const label &, const T &newElmt)
Insert a new hashedEntry.
A HashTable to objects of type <T> with a label key.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
bool match(const std::string &) const
Return true if it matches the entire string.
static Map< word > readInpCellTable(IFstream &)
stressControl lookup("compactNormalStress") >> compactNormalStress
bool good() const
Return true if next operation might succeed.
ISstream & getLine(string &)
Raw, low-level getline into a string function.
virtual void flush()=0
Flush stream.
virtual const fileName & name() const
Return the name of the stream.
Wrapper around POSIX extended regular expressions.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
fileName lessExt() const
Return file name without extension (part before last .)
An Ostream is an abstract base class for all output systems (streams, files, token lists...