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");
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
Input from file stream, using an ISstream.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
The IOstreamOption is a simple container for options an IOstream can normally have.
bool good() const noexcept
True if next operation might succeed.
static unsigned int defaultPrecision() noexcept
Return the default precision.
virtual bool read()
Re-read model coefficients if they have changed.
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 list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Mesh data needed to do the Finite Area discretisation.
const pointField & points() const noexcept
Return points.
const edgeList & edges() const noexcept
Return edges.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling file names.
virtual bool write()
Write the output fields.
Registry of regIOobjects.
Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only.
const labelListList & lines() const noexcept
1D cells (=open lines)
const pointField & points() const noexcept
Points.
Write edge/points (optionally with fields) as a vtp file or a legacy vtk file.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
unsigned precision() const noexcept
Return the ASCII write precision.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelList nEdges(UPstream::listGatherValues< label >(aMesh.nEdges()))
@ LEGACY_ASCII
Legacy ASCII, legacyAsciiFormatter.
errorManipArg< error, int > exit(error &err, const int errNo=1)