38 Foam::fileFormats::edgeMeshFormat::edgeMeshFormat
73 <<
"Cannot read file " << filename
77 const fileName fName(typeFilePath<featureEdgeMesh>(
io));
84 ok =
io.readHeader(is);
88 ok =
read(is, this->storedPoints(), this->storedEdges());
127 <<
"bad output stream " <<
os.name()
131 os <<
"\n// points:" <<
nl << pointLst <<
nl 132 <<
"\n// edges:" <<
nl << edgeLst <<
nl;
169 <<
"Cannot open file for writing " << filename
174 bool ok =
io.writeHeader(
os, featureEdgeMesh::typeName);
179 <<
"Cannot write header"
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Output to file stream, using an OSstream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
static Ostream & writeDivider(Ostream &os)
Write the standard file section divider.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A simple container for options an IOstream can normally have.
Ignore writing from objectRegistry::writeObject()
bool read(const char *buf, int32_t &val)
Same as readInt32.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
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)...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Area discretisation.
Input from file stream, using an ISstream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool good() const noexcept
True if next operation might succeed.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Defines the attributes of an object for which implicit objectRegistry management is supported...
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...