26 aMesh.time().globalPath() /
"finiteArea" 32 globalIndex
procAddr(aMesh.nFaces());
35 if (Pstream::master())
49 writer.write(
"area", aMesh.S().field());
50 writer.write(
"normal", aMesh.faceAreaNormals());
54 writer.write(
"normal", aMesh.pointAreaNormals());
57 <<
"Wrote faMesh in vtk format: " <<
writer.output().name() <<
nl;
69 aMesh.time().globalPath() /
"finiteArea-edges" 82 faMeshTools::flattenEdgeField(aMesh.magLe(),
true)
89 writer.write(
"normal", aMesh.pointAreaNormals());
92 <<
"Wrote faMesh in vtk format: " <<
writer.output().name() <<
nl;
99 faMeshTools::flattenEdgeField(aMesh.edgeCentres(),
true)
111 aMesh.time().globalPath() /
"finiteArea-edgesCentres" 124 faMeshTools::flattenEdgeField(aMesh.Le(),
true)
132 faMeshTools::flattenEdgeField(aMesh.edgeAreaNormals(),
true)
138 <<
"Wrote faMesh in vtk format: " <<
writer.output().name() <<
nl;
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
constexpr char nl
The newline '\n' character (0x0a)
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ const Field< vector > edgeCentres(faMeshTools::flattenEdgeField(aMesh.edgeCentres(), true))
GenericPatchWriter< uindirectPrimitivePatch > uindirectPatchWriter
Write uindirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
globalIndex procAddr(aMesh.nFaces())
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< label > labelList
A List of labels.