57 <<
"Cannot read file " << filename
81 storedPoints().transfer(reader.points());
84 for (
const auto& lineVerts : reader.lines())
86 if (lineVerts.size() > 1)
88 nEdges += (lineVerts.size()-1);
91 storedEdges().resize(nEdges);
94 for (
const auto& lineVerts : reader.lines())
96 for (label i = 1; i < lineVerts.size(); ++i)
98 storedEdges()[nEdges++] = edge(lineVerts[i-1], lineVerts[i]);
108 const fileName& filename,
109 const edgeMesh& eMesh,
111 const dictionary& options
117 vtk::outputOptions opts(vtk::formatType::LEGACY_ASCII);
133 writer.beginFile(
"OpenFOAM edgeMesh");
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
Input from file stream as an ISstream, normally using std::ifstream for the actual input.
@ NO_REGISTER
Do not request registration (bool: false)
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject()
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static unsigned int defaultPrecision() noexcept
Return the default precision.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
Registry of regIOobjects.
Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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...