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]);
133 writer.beginFile(
"OpenFOAM edgeMesh");
A class for handling file names.
const pointField & points() const noexcept
Return points.
errorManipArg< error, int > exit(error &err, const int errNo=1)
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
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.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static unsigned int defaultPrecision() noexcept
Return the default precision.
Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only...
A simple container for options an IOstream can normally have.
Ignore writing from objectRegistry::writeObject()
Encapsulated combinations of output format options. This is primarily useful when defining the output...
unsigned precision() const noexcept
Return the ASCII write precision.
Write edge/points (optionally with fields) as a vtp file or a legacy vtk file.
Mesh data needed to do the Finite Area discretisation.
Input from file stream, using an ISstream.
const edgeList & edges() const noexcept
Return edges.
Legacy ASCII, legacyAsciiFormatter.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
Registry of regIOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)