Go to the documentation of this file.
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]);
121 options.
getOrDefault(
"precision", IOstream::defaultPrecision())
133 writer.beginFile(
"OpenFOAM edgeMesh");
Encapsulated combinations of output format options. This is primarily useful when defining the output...
const pointField & points() const noexcept
Return points.
const pointField & points() const noexcept
Points.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
Input from file stream, using an ISstream.
unsigned precision() const
Return the ASCII write precision.
Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const labelListList & lines() const noexcept
1D cells (=open lines)
bool good() const noexcept
True if next operation might succeed.
Registry of regIOobjects.
The IOstreamOption is a simple container for options an IOstream can normally have.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for graphics format writing. Entry points are.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Write edge/points (optionally with fields) as a vtp file or a legacy vtk file.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const edgeList & edges() const noexcept
Return edges.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
Mesh data needed to do the Finite Area discretisation.