68 const label tableId =
readLabel(groups.str(1));
71 if (!tableName.empty())
73 lookup.insert(tableId, tableName);
90 const word caseName =
os.name().nameLessExt();
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
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...
void size(const label n)
Older name for setAddressableSize.
static std::string dateTime()
virtual void validate()
Validate the turbulence fields after construction.
Lookup type of boundary radiation properties.
Wrapper around C++11 regular expressions with some additional prefix-handling. The prefix-handling is...
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.
OBJstream os(runTime.globalPath()/outputName)
const labelList nFaces(UPstream::listGatherValues< label >(aMesh.nFaces()))
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.