60 cellDist[celli] = procIds[celli];
63 cellDist.correctBoundaryConditions();
66 Info<<
nl <<
"Wrote decomposition to "
67 << cellDist.objectRelPath()
68 <<
" (volScalarField) for visualization."
84 Info<<
"Wrote decomposition to "
86 <<
" for visualization."
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
fileName relativePath(const fileName &input, const bool caseTag=false) const
Return the input relative to the globalPath by stripping off a leading value of the globalPath.
const fvMesh & mesh() const noexcept
The mesh.
void writeVTK(const fileName &file) const
Write cell distribution as VTU file (binary).
const labelList & cellToProc() const noexcept
Cell-processor decomposition labels.
void writeVolField(const word &timeName) const
Write decomposition as volScalarField for visualization.
A class for handling file names.
const Time & time() const
Return the top-level database.
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
const fileName & output() const noexcept
The current output file name.
Write an OpenFOAM volume (internal) geometry and internal fields as a vtu file or a legacy vtk file.
virtual bool writeGeometry()
Write patch topology.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
A deep-copy description of an OpenFOAM volume mesh in data structures suitable for VTK UnstructuredGr...
static const word null
An empty word.
const dimensionSet dimless
Dimensionless.
List< label > labelList
A List of labels.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.