42 bool parallel = Pstream::parRun();
46 ensightOutput::Detail::writeFaceLocalField
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
Encapsulation of area meshes for writing in ensight format.
const ensightFaces & areaPart() const noexcept
Face elements for finite-area.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
A collection of functions for writing areaField content in ensight format.
OBJstream os(runTime.globalPath()/outputName)
bool writeAreaField(ensightFile &os, const GeometricField< Type, faPatchField, areaMesh > &fld, const ensightFaMesh &ensMesh)
Write finite-area field component-wise.